Record Class TeamsController.TeamMemberMapping
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.controllers.TeamsController.TeamMemberMapping
- Enclosing class:
TeamsController
-
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.from(TeamMember member) Returns the value of thegithubLoginrecord component.final inthashCode()Returns a hash code value for this object.lastName()Returns the value of thelastNamerecord component.Returns the value of therosterStudentIdrecord component.teamId()Returns the value of theteamIdrecord component.teamName()Returns the value of theteamNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TeamMemberMapping
public TeamMemberMapping(Long teamId, String teamName, Long rosterStudentId, String email, String firstName, String lastName, String githubLogin) Creates an instance of aTeamMemberMappingrecord class.- Parameters:
teamId- the value for theteamIdrecord componentteamName- the value for theteamNamerecord componentrosterStudentId- the value for therosterStudentIdrecord componentemail- the value for theemailrecord componentfirstName- the value for thefirstNamerecord componentlastName- the value for thelastNamerecord componentgithubLogin- the value for thegithubLoginrecord component
-
-
Method Details
-
from
-
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). -
teamId
Returns the value of theteamIdrecord component.- Returns:
- the value of the
teamIdrecord component
-
teamName
Returns the value of theteamNamerecord component.- Returns:
- the value of the
teamNamerecord component
-
rosterStudentId
Returns the value of therosterStudentIdrecord component.- Returns:
- the value of the
rosterStudentIdrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
githubLogin
Returns the value of thegithubLoginrecord component.- Returns:
- the value of the
githubLoginrecord component
-