Record Class StudentInfo.Member
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.models.StudentInfo.Member
- Record Components:
email- the member's email as stored on the rosterfirstName- the shortest unique name for the memberlegalFirstName- the roster's first name field, unchangedgithubLogin- the member's GitHub login, or null if they have not linked GitHub yet
- Enclosing class:
StudentInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstNamerecord component.Returns the value of thegithubLoginrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelegalFirstNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Member
Creates an instance of aMemberrecord class.- Parameters:
email- the value for theemailrecord componentfirstName- the value for thefirstNamerecord componentlegalFirstName- the value for thelegalFirstNamerecord componentgithubLogin- the value for thegithubLoginrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
email
-
firstName
-
legalFirstName
Returns the value of thelegalFirstNamerecord component.- Returns:
- the value of the
legalFirstNamerecord component
-
githubLogin
Returns the value of thegithubLoginrecord component.- Returns:
- the value of the
githubLoginrecord component
-