Record Class MagdaResponsePerson
java.lang.Object
java.lang.Record
be.vlaanderen.vip.magda.client.domain.giveperson.MagdaResponsePerson
- All Implemented Interfaces:
Person
-
Nested Class Summary
Nested classes/interfaces inherited from interface be.vlaanderen.vip.magda.client.domain.giveperson.Person
Person.Address, Person.BeStAddId, Person.DetailedRelatedPerson, Person.FamilyMemberPerson, Person.LanguageString, Person.LegalHabitationAddress, Person.RelatedPerson, Person.SpecifiedAddress -
Constructor Summary
ConstructorsConstructorDescriptionMagdaResponsePerson(MagdaResponseWrapper response) Creates an instance of aMagdaResponsePersonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Information on the family members of the citizen.final inthashCode()Returns a hash code value for this object.partner()Information on the partner of the citizen (if any).Information on the reference person (as family member) of the citizen (if any).Information on the reference person of the citizen (if any).response()Returns the value of theresponserecord component.self()Information on the citizen themselves.final StringtoString()Returns a string representation of this record class.Information on the familially unrelated persons who are co-residents of the citizen.
-
Constructor Details
-
MagdaResponsePerson
Creates an instance of aMagdaResponsePersonrecord class.- Parameters:
response- the value for theresponserecord component
-
-
Method Details
-
self
Description copied from interface:PersonInformation on the citizen themselves. -
referencePerson
Description copied from interface:PersonInformation on the reference person of the citizen (if any).- Specified by:
referencePersonin interfacePerson
-
referenceFamilyMember
Description copied from interface:PersonInformation on the reference person (as family member) of the citizen (if any).- Specified by:
referenceFamilyMemberin interfacePerson
-
familyMembers
Description copied from interface:PersonInformation on the family members of the citizen.- Specified by:
familyMembersin interfacePerson
-
partner
Description copied from interface:PersonInformation on the partner of the citizen (if any). -
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. -
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. -
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 withObjects::equals(Object,Object). -
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-