Record Class InheritanceModule.SyntheticMatch

java.lang.Object
java.lang.Record
simpaths.model.InheritanceModule.SyntheticMatch
Enclosing class:
InheritanceModule

public static record InheritanceModule.SyntheticMatch(int year, long deceasedId, Long recipientId, String purpose, int intendedCount, int actualCount, int slot, int ageGap, String tier, double value, long referenceId, int targetAge, int actualAgeGap, String ageRule, int educationDistance, boolean sameRegion) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    SyntheticMatch(int year, long deceasedId, Long recipientId, String purpose, int intendedCount, int actualCount, int slot, int ageGap, String tier, double value, long referenceId, int targetAge, int actualAgeGap, String ageRule, int educationDistance, boolean sameRegion)
    Creates an instance of a SyntheticMatch record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the actualAgeGap record component.
    int
    Returns the value of the actualCount record component.
    int
    Returns the value of the ageGap record component.
    Returns the value of the ageRule record component.
    long
    Returns the value of the deceasedId record component.
    int
    Returns the value of the educationDistance record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the intendedCount record component.
    Returns the value of the purpose record component.
    Returns the value of the recipientId record component.
    long
    Returns the value of the referenceId record component.
    boolean
    Returns the value of the sameRegion record component.
    int
    Returns the value of the slot record component.
    int
    Returns the value of the targetAge record component.
    Returns the value of the tier record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the value record component.
    int
    Returns the value of the year record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SyntheticMatch

      public SyntheticMatch(int year, long deceasedId, Long recipientId, String purpose, int intendedCount, int actualCount, int slot, int ageGap, String tier, double value, long referenceId, int targetAge, int actualAgeGap, String ageRule, int educationDistance, boolean sameRegion)
      Creates an instance of a SyntheticMatch record class.
      Parameters:
      year - the value for the year record component
      deceasedId - the value for the deceasedId record component
      recipientId - the value for the recipientId record component
      purpose - the value for the purpose record component
      intendedCount - the value for the intendedCount record component
      actualCount - the value for the actualCount record component
      slot - the value for the slot record component
      ageGap - the value for the ageGap record component
      tier - the value for the tier record component
      value - the value for the value record component
      referenceId - the value for the referenceId record component
      targetAge - the value for the targetAge record component
      actualAgeGap - the value for the actualAgeGap record component
      ageRule - the value for the ageRule record component
      educationDistance - the value for the educationDistance record component
      sameRegion - the value for the sameRegion record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • year

      public int year()
      Returns the value of the year record component.
      Returns:
      the value of the year record component
    • deceasedId

      public long deceasedId()
      Returns the value of the deceasedId record component.
      Returns:
      the value of the deceasedId record component
    • recipientId

      public Long recipientId()
      Returns the value of the recipientId record component.
      Returns:
      the value of the recipientId record component
    • purpose

      public String purpose()
      Returns the value of the purpose record component.
      Returns:
      the value of the purpose record component
    • intendedCount

      public int intendedCount()
      Returns the value of the intendedCount record component.
      Returns:
      the value of the intendedCount record component
    • actualCount

      public int actualCount()
      Returns the value of the actualCount record component.
      Returns:
      the value of the actualCount record component
    • slot

      public int slot()
      Returns the value of the slot record component.
      Returns:
      the value of the slot record component
    • ageGap

      public int ageGap()
      Returns the value of the ageGap record component.
      Returns:
      the value of the ageGap record component
    • tier

      public String tier()
      Returns the value of the tier record component.
      Returns:
      the value of the tier record component
    • value

      public double value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • referenceId

      public long referenceId()
      Returns the value of the referenceId record component.
      Returns:
      the value of the referenceId record component
    • targetAge

      public int targetAge()
      Returns the value of the targetAge record component.
      Returns:
      the value of the targetAge record component
    • actualAgeGap

      public int actualAgeGap()
      Returns the value of the actualAgeGap record component.
      Returns:
      the value of the actualAgeGap record component
    • ageRule

      public String ageRule()
      Returns the value of the ageRule record component.
      Returns:
      the value of the ageRule record component
    • educationDistance

      public int educationDistance()
      Returns the value of the educationDistance record component.
      Returns:
      the value of the educationDistance record component
    • sameRegion

      public boolean sameRegion()
      Returns the value of the sameRegion record component.
      Returns:
      the value of the sameRegion record component