Record Class WealthNonPension.ResidualInitializationResult

java.lang.Object
java.lang.Record
simpaths.model.benefitunit.WealthNonPension.ResidualInitializationResult
Enclosing class:
WealthNonPension

public static record WealthNonPension.ResidualInitializationResult(boolean housingInitialized, double housingRawResidual, double housingStoredResidual, boolean mortgageInitialized, double mortgageRawResidual, double mortgageStoredResidual, boolean highCostDebtInitialized) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResidualInitializationResult(boolean housingInitialized, double housingRawResidual, double housingStoredResidual, boolean mortgageInitialized, double mortgageRawResidual, double mortgageStoredResidual, boolean highCostDebtInitialized)
    Creates an instance of a ResidualInitializationResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the highCostDebtInitialized record component.
    boolean
     
    boolean
    Returns the value of the housingInitialized record component.
    double
    Returns the value of the housingRawResidual record component.
    double
    Returns the value of the housingStoredResidual record component.
    boolean
     
    boolean
    Returns the value of the mortgageInitialized record component.
    double
    Returns the value of the mortgageRawResidual record component.
    double
    Returns the value of the mortgageStoredResidual record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ResidualInitializationResult

      public ResidualInitializationResult(boolean housingInitialized, double housingRawResidual, double housingStoredResidual, boolean mortgageInitialized, double mortgageRawResidual, double mortgageStoredResidual, boolean highCostDebtInitialized)
      Creates an instance of a ResidualInitializationResult record class.
      Parameters:
      housingInitialized - the value for the housingInitialized record component
      housingRawResidual - the value for the housingRawResidual record component
      housingStoredResidual - the value for the housingStoredResidual record component
      mortgageInitialized - the value for the mortgageInitialized record component
      mortgageRawResidual - the value for the mortgageRawResidual record component
      mortgageStoredResidual - the value for the mortgageStoredResidual record component
      highCostDebtInitialized - the value for the highCostDebtInitialized record component
  • Method Details

    • housingCapped

      public boolean housingCapped()
    • mortgageCapped

      public boolean mortgageCapped()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • housingInitialized

      public boolean housingInitialized()
      Returns the value of the housingInitialized record component.
      Returns:
      the value of the housingInitialized record component
    • housingRawResidual

      public double housingRawResidual()
      Returns the value of the housingRawResidual record component.
      Returns:
      the value of the housingRawResidual record component
    • housingStoredResidual

      public double housingStoredResidual()
      Returns the value of the housingStoredResidual record component.
      Returns:
      the value of the housingStoredResidual record component
    • mortgageInitialized

      public boolean mortgageInitialized()
      Returns the value of the mortgageInitialized record component.
      Returns:
      the value of the mortgageInitialized record component
    • mortgageRawResidual

      public double mortgageRawResidual()
      Returns the value of the mortgageRawResidual record component.
      Returns:
      the value of the mortgageRawResidual record component
    • mortgageStoredResidual

      public double mortgageStoredResidual()
      Returns the value of the mortgageStoredResidual record component.
      Returns:
      the value of the mortgageStoredResidual record component
    • highCostDebtInitialized

      public boolean highCostDebtInitialized()
      Returns the value of the highCostDebtInitialized record component.
      Returns:
      the value of the highCostDebtInitialized record component