Package authorization
Record Class AuthorizedUserData
java.lang.Object
java.lang.Record
authorization.AuthorizedUserData
- All Implemented Interfaces:
Serializable
public record AuthorizedUserData(long userID, String name, String login, LocalDateTime lastLogin,
String registerIP, LocalDateTime registerDate)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthorizedUserData
(long userID, String name, String login, LocalDateTime lastLogin, String registerIP, LocalDateTime registerDate) Creates an instance of aAuthorizedUserData
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.Returns the value of thelastLogin
record component.login()
Returns the value of thelogin
record component.name()
Returns the value of thename
record component.Returns the value of theregisterDate
record component.Returns the value of theregisterIP
record component.toString()
Returns a string representation of this record class.long
userID()
Returns the value of theuserID
record component.
-
Constructor Details
-
AuthorizedUserData
public AuthorizedUserData(long userID, String name, String login, LocalDateTime lastLogin, String registerIP, LocalDateTime registerDate) Creates an instance of aAuthorizedUserData
record class.- Parameters:
userID
- the value for theuserID
record componentname
- the value for thename
record componentlogin
- the value for thelogin
record componentlastLogin
- the value for thelastLogin
record componentregisterIP
- the value for theregisterIP
record componentregisterDate
- the value for theregisterDate
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
userID
public long userID()Returns the value of theuserID
record component.- Returns:
- the value of the
userID
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
login
Returns the value of thelogin
record component.- Returns:
- the value of the
login
record component
-
lastLogin
Returns the value of thelastLogin
record component.- Returns:
- the value of the
lastLogin
record component
-
registerIP
Returns the value of theregisterIP
record component.- Returns:
- the value of the
registerIP
record component
-
registerDate
Returns the value of theregisterDate
record component.- Returns:
- the value of the
registerDate
record component
-