Record Class InheritanceModule.BalanceSnapshot
java.lang.Object
java.lang.Record
simpaths.model.InheritanceModule.BalanceSnapshot
- Enclosing class:
InheritanceModule
public static record InheritanceModule.BalanceSnapshot(int year, long benefitUnitId, double claimAssets, double claimLiabilities, double minorTrustAssets, double totalNetWealth)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBalanceSnapshot(int year, long benefitUnitId, double claimAssets, double claimLiabilities, double minorTrustAssets, double totalNetWealth) Creates an instance of aBalanceSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebenefitUnitIdrecord component.doubleReturns the value of theclaimAssetsrecord component.doubleReturns the value of theclaimLiabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theminorTrustAssetsrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetotalNetWealthrecord component.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
BalanceSnapshot
public BalanceSnapshot(int year, long benefitUnitId, double claimAssets, double claimLiabilities, double minorTrustAssets, double totalNetWealth) Creates an instance of aBalanceSnapshotrecord class.- Parameters:
year- the value for theyearrecord componentbenefitUnitId- the value for thebenefitUnitIdrecord componentclaimAssets- the value for theclaimAssetsrecord componentclaimLiabilities- the value for theclaimLiabilitiesrecord componentminorTrustAssets- the value for theminorTrustAssetsrecord componenttotalNetWealth- the value for thetotalNetWealthrecord 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. All components in this record class 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
-
benefitUnitId
public long benefitUnitId()Returns the value of thebenefitUnitIdrecord component.- Returns:
- the value of the
benefitUnitIdrecord component
-
claimAssets
public double claimAssets()Returns the value of theclaimAssetsrecord component.- Returns:
- the value of the
claimAssetsrecord component
-
claimLiabilities
public double claimLiabilities()Returns the value of theclaimLiabilitiesrecord component.- Returns:
- the value of the
claimLiabilitiesrecord component
-
minorTrustAssets
public double minorTrustAssets()Returns the value of theminorTrustAssetsrecord component.- Returns:
- the value of the
minorTrustAssetsrecord component
-
totalNetWealth
public double totalNetWealth()Returns the value of thetotalNetWealthrecord component.- Returns:
- the value of the
totalNetWealthrecord component
-