Record Class InheritanceModule.Transfer

java.lang.Object
java.lang.Record
simpaths.model.InheritanceModule.Transfer
Enclosing class:
InheritanceModule

public static record InheritanceModule.Transfer(int year, long deceasedId, Long recipientId, String asset, String timing, double value, String reason, String deathCause) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Transfer(int year, long deceasedId, Long recipientId, String asset, String timing, double value, String reason, String deathCause)
    Creates an instance of a Transfer record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the asset record component.
    Returns the value of the deathCause record component.
    long
    Returns the value of the deceasedId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the reason record component.
    Returns the value of the recipientId record component.
    Returns the value of the timing record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the value record component.
    int
    Returns the value of the year record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Transfer record class.
      Parameters:
      year - the value for the year record component
      deceasedId - the value for the deceasedId record component
      recipientId - the value for the recipientId record component
      asset - the value for the asset record component
      timing - the value for the timing record component
      value - the value for the value record component
      reason - the value for the reason record component
      deathCause - the value for the deathCause record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • year

      public int year()
      Returns the value of the year record component.
      Returns:
      the value of the year record component
    • deceasedId

      public long deceasedId()
      Returns the value of the deceasedId record component.
      Returns:
      the value of the deceasedId record component
    • recipientId

      public Long recipientId()
      Returns the value of the recipientId record component.
      Returns:
      the value of the recipientId record component
    • asset

      public String asset()
      Returns the value of the asset record component.
      Returns:
      the value of the asset record component
    • timing

      public String timing()
      Returns the value of the timing record component.
      Returns:
      the value of the timing record component
    • value

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

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • deathCause

      public String deathCause()
      Returns the value of the deathCause record component.
      Returns:
      the value of the deathCause record component