Package edu.suffolk.litlab.efsp.model
Record Class Name
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.Name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstNamerecord component.final inthashCode()Returns a hash code value for this object.lastName()Returns the value of thelastNamerecord component.Returns the value of themaidenNamerecord component.The full name, with no extra spaces.If there's only a first name, then us it, otherwise take only the last name.Returns the value of themiddleNamerecord component.prefix()Returns the value of theprefixrecord component.suffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
makeFullName
The full name, with no extra spaces. -
getFirstName
-
getMiddleName
-
getLastName
-
makeTitleName
If there's only a first name, then us it, otherwise take only the last name. Used to create the titles of cases, i.e. Jones v. Discover, etc. -
getSuffix
-
getPrefix
-
getMaidenName
-
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). -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
middleName
Returns the value of themiddleNamerecord component.- Returns:
- the value of the
middleNamerecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
suffix
Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-
maidenName
Returns the value of themaidenNamerecord component.- Returns:
- the value of the
maidenNamerecord component
-