Record Class InheritanceModule.OrphanExit
java.lang.Object
java.lang.Record
simpaths.model.InheritanceModule.OrphanExit
- Enclosing class:
InheritanceModule
-
Constructor Summary
ConstructorsConstructorDescriptionOrphanExit(int year, long personId, long benefitUnitId, int age, Long referenceParentId, String referenceReason) Creates an instance of aOrphanExitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintage()Returns the value of theagerecord component.longReturns the value of thebenefitUnitIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longpersonId()Returns the value of thepersonIdrecord component.Returns the value of thereferenceParentIdrecord component.Returns the value of thereferenceReasonrecord component.final StringtoString()Returns a string representation of this record class.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
OrphanExit
public OrphanExit(int year, long personId, long benefitUnitId, int age, Long referenceParentId, String referenceReason) Creates an instance of aOrphanExitrecord class.- Parameters:
year- the value for theyearrecord componentpersonId- the value for thepersonIdrecord componentbenefitUnitId- the value for thebenefitUnitIdrecord componentage- the value for theagerecord componentreferenceParentId- the value for thereferenceParentIdrecord componentreferenceReason- the value for thereferenceReasonrecord 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
-
personId
public long personId()Returns the value of thepersonIdrecord component.- Returns:
- the value of the
personIdrecord component
-
benefitUnitId
public long benefitUnitId()Returns the value of thebenefitUnitIdrecord component.- Returns:
- the value of the
benefitUnitIdrecord component
-
age
public int age()Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-
referenceParentId
Returns the value of thereferenceParentIdrecord component.- Returns:
- the value of the
referenceParentIdrecord component
-
referenceReason
Returns the value of thereferenceReasonrecord component.- Returns:
- the value of the
referenceReasonrecord component
-