Record Class InheritanceModule.Transfer
java.lang.Object
java.lang.Record
simpaths.model.InheritanceModule.Transfer
- Enclosing class:
InheritanceModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasset()Returns the value of theassetrecord 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.reason()Returns the value of thereasonrecord component.Returns the value of therecipientIdrecord component.timing()Returns the value of thetimingrecord 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
-
Transfer
public Transfer(int year, long deceasedId, Long recipientId, String asset, String timing, double value, String reason, String deathCause) Creates an instance of aTransferrecord class.- Parameters:
year- the value for theyearrecord componentdeceasedId- the value for thedeceasedIdrecord componentrecipientId- the value for therecipientIdrecord componentasset- the value for theassetrecord componenttiming- the value for thetimingrecord componentvalue- the value for thevaluerecord componentreason- the value for thereasonrecord 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
-
recipientId
Returns the value of therecipientIdrecord component.- Returns:
- the value of the
recipientIdrecord component
-
asset
Returns the value of theassetrecord component.- Returns:
- the value of the
assetrecord component
-
timing
Returns the value of thetimingrecord component.- Returns:
- the value of the
timingrecord component
-
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
deathCause
Returns the value of thedeathCauserecord component.- Returns:
- the value of the
deathCauserecord component
-