Record Class MagdaResponsePerson

java.lang.Object
java.lang.Record
be.vlaanderen.vip.magda.client.domain.giveperson.MagdaResponsePerson
All Implemented Interfaces:
Person

public record MagdaResponsePerson(MagdaResponseWrapper response) extends Record implements Person
  • Constructor Details

    • MagdaResponsePerson

      public MagdaResponsePerson(MagdaResponseWrapper response)
      Creates an instance of a MagdaResponsePerson record class.
      Parameters:
      response - the value for the response record component
  • Method Details

    • self

      Description copied from interface: Person
      Information on the citizen themselves.
      Specified by:
      self in interface Person
    • referencePerson

      public Optional<Person.RelatedPerson> referencePerson()
      Description copied from interface: Person
      Information on the reference person of the citizen (if any).
      Specified by:
      referencePerson in interface Person
    • referenceFamilyMember

      public Optional<Person.FamilyMemberPerson> referenceFamilyMember()
      Description copied from interface: Person
      Information on the reference person (as family member) of the citizen (if any).
      Specified by:
      referenceFamilyMember in interface Person
    • familyMembers

      public List<Person.RelatedPerson> familyMembers()
      Description copied from interface: Person
      Information on the family members of the citizen.
      Specified by:
      familyMembers in interface Person
    • partner

      public Optional<Person.RelatedPerson> partner()
      Description copied from interface: Person
      Information on the partner of the citizen (if any).
      Specified by:
      partner in interface Person
    • unrelatedResidents

      public List<Person.RelatedPerson> unrelatedResidents()
      Description copied from interface: Person
      Information on the familially unrelated persons who are co-residents of the citizen.
      Specified by:
      unrelatedResidents in interface Person
    • 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 Objects::equals(Object,Object).
      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.
    • response

      public MagdaResponseWrapper response()
      Returns the value of the response record component.
      Returns:
      the value of the response record component