Record Class LegalPerson
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.cases.LegalPerson
public record LegalPerson(Name name, ContactInformation contactInfo, UUID efmId, String role, LegalPerson.PersonEnum personType)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLegalPerson(Name name, ContactInformation contactInfo, UUID efmId, String role, LegalPerson.PersonEnum personType) Creates an instance of aLegalPersonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontactInforecord component.efmId()Returns the value of theefmIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepersonTyperecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LegalPerson
public LegalPerson(Name name, ContactInformation contactInfo, UUID efmId, String role, LegalPerson.PersonEnum personType) Creates an instance of aLegalPersonrecord class.- Parameters:
name- the value for thenamerecord componentcontactInfo- the value for thecontactInforecord componentefmId- the value for theefmIdrecord componentrole- the value for therolerecord componentpersonType- the value for thepersonTyperecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
contactInfo
Returns the value of thecontactInforecord component.- Returns:
- the value of the
contactInforecord component
-
efmId
Returns the value of theefmIdrecord component.- Returns:
- the value of the
efmIdrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
personType
Returns the value of thepersonTyperecord component.- Returns:
- the value of the
personTyperecord component
-