Package org.flasby.login2.entity
Record Class LoginRecord
java.lang.Object
java.lang.Record
org.flasby.login2.entity.LoginRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalias()
Returns the value of thealias
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpiresAt
record component.final int
hashCode()
Returns a hash code value for this object.loginId()
Returns the value of theloginId
record component.roles()
Returns the value of theroles
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LoginRecord
Creates an instance of aLoginRecord
record class.- Parameters:
loginId
- the value for theloginId
record componentalias
- the value for thealias
record componentroles
- the value for theroles
record componentexpiresAt
- the value for theexpiresAt
record 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)
. -
loginId
Returns the value of theloginId
record component.- Returns:
- the value of the
loginId
record component
-
alias
Returns the value of thealias
record component.- Returns:
- the value of the
alias
record component
-
roles
Returns the value of theroles
record component.- Returns:
- the value of the
roles
record component
-
expiresAt
Returns the value of theexpiresAt
record component.- Returns:
- the value of the
expiresAt
record component
-