Record Class InheritanceModule.DeathEvent
java.lang.Object
java.lang.Record
simpaths.model.InheritanceModule.DeathEvent
- Enclosing class:
InheritanceModule
public static record InheritanceModule.DeathEvent(int year, long deceasedId, long benefitUnitId, SampleExit deathCause)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDeathEvent(int year, long deceasedId, long benefitUnitId, SampleExit deathCause) Creates an instance of aDeathEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebenefitUnitIdrecord component.Returns the value of thedeathCauserecord component.longReturns the value of thedeceasedIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
DeathEvent
Creates an instance of aDeathEventrecord class.- Parameters:
year- the value for theyearrecord componentdeceasedId- the value for thedeceasedIdrecord componentbenefitUnitId- the value for thebenefitUnitIdrecord componentdeathCause- the value for thedeathCauserecord 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
-
benefitUnitId
public long benefitUnitId()Returns the value of thebenefitUnitIdrecord component.- Returns:
- the value of the
benefitUnitIdrecord component
-
deathCause
Returns the value of thedeathCauserecord component.- Returns:
- the value of the
deathCauserecord component
-