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
ConstructorsConstructorDescriptionSyntheticMatch(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 aSyntheticMatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactualAgeGaprecord component.intReturns the value of theactualCountrecord component.intageGap()Returns the value of theageGaprecord component.ageRule()Returns the value of theageRulerecord component.longReturns the value of thedeceasedIdrecord component.intReturns the value of theeducationDistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theintendedCountrecord component.purpose()Returns the value of thepurposerecord component.Returns the value of therecipientIdrecord component.longReturns the value of thereferenceIdrecord component.booleanReturns the value of thesameRegionrecord component.intslot()Returns the value of theslotrecord component.intReturns the value of thetargetAgerecord component.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.intyear()Returns the value of theyearrecord component.
-
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 aSyntheticMatchrecord class.- Parameters:
year- the value for theyearrecord componentdeceasedId- the value for thedeceasedIdrecord componentrecipientId- the value for therecipientIdrecord componentpurpose- the value for thepurposerecord componentintendedCount- the value for theintendedCountrecord componentactualCount- the value for theactualCountrecord componentslot- the value for theslotrecord componentageGap- the value for theageGaprecord componenttier- the value for thetierrecord componentvalue- the value for thevaluerecord componentreferenceId- the value for thereferenceIdrecord componenttargetAge- the value for thetargetAgerecord componentactualAgeGap- the value for theactualAgeGaprecord componentageRule- the value for theageRulerecord componenteducationDistance- the value for theeducationDistancerecord componentsameRegion- the value for thesameRegionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
year
public int year()Returns the value of theyearrecord component.- Returns:
- the value of the
yearrecord component
-
deceasedId
public long deceasedId()Returns the value of thedeceasedIdrecord component.- Returns:
- the value of the
deceasedIdrecord component
-
recipientId
Returns the value of therecipientIdrecord component.- Returns:
- the value of the
recipientIdrecord component
-
purpose
Returns the value of thepurposerecord component.- Returns:
- the value of the
purposerecord component
-
intendedCount
public int intendedCount()Returns the value of theintendedCountrecord component.- Returns:
- the value of the
intendedCountrecord component
-
actualCount
public int actualCount()Returns the value of theactualCountrecord component.- Returns:
- the value of the
actualCountrecord component
-
slot
public int slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
ageGap
public int ageGap()Returns the value of theageGaprecord component.- Returns:
- the value of the
ageGaprecord component
-
tier
Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
referenceId
public long referenceId()Returns the value of thereferenceIdrecord component.- Returns:
- the value of the
referenceIdrecord component
-
targetAge
public int targetAge()Returns the value of thetargetAgerecord component.- Returns:
- the value of the
targetAgerecord component
-
actualAgeGap
public int actualAgeGap()Returns the value of theactualAgeGaprecord component.- Returns:
- the value of the
actualAgeGaprecord component
-
ageRule
Returns the value of theageRulerecord component.- Returns:
- the value of the
ageRulerecord component
-
educationDistance
public int educationDistance()Returns the value of theeducationDistancerecord component.- Returns:
- the value of the
educationDistancerecord component
-
sameRegion
public boolean sameRegion()Returns the value of thesameRegionrecord component.- Returns:
- the value of the
sameRegionrecord component
-