Package com.io7m.cardant.model
Record Class CAUser
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAUser
- Record Components:
userId- The user IDname- The user namesubject- The user's security subject
public record CAUser(CAUserID userId, com.io7m.idstore.model.IdName name, com.io7m.medrina.api.MSubject subject)
extends Record
A snapshot of a user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.io7m.idstore.model.IdNamename()Returns the value of thenamerecord component.com.io7m.medrina.api.MSubjectsubject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
CAUser
public CAUser(CAUserID userId, com.io7m.idstore.model.IdName name, com.io7m.medrina.api.MSubject subject) A snapshot of a user.- Parameters:
userId- The user IDname- The user namesubject- The user's security subject
-
-
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). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
name
public com.io7m.idstore.model.IdName name()Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
subject
public com.io7m.medrina.api.MSubject subject()Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-