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 Details

    • AuthorizedUserData

      public AuthorizedUserData (long userID, String name, String login, LocalDateTime lastLogin, String registerIP, LocalDateTime registerDate)
      Creates an instance of a AuthorizedUserData record class.
      Parameters:
      userID - the value for the userID record component
      name - the value for the name record component
      login - the value for the login record component
      lastLogin - the value for the lastLogin record component
      registerIP - the value for the registerIP record component
      registerDate - the value for the registerDate record component
  • Method Details

    • equals

      public boolean equals (Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • userID

      public long userID()
      Returns the value of the userID record component.
      Returns:
      the value of the userID record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • login

      public String login()
      Returns the value of the login record component.
      Returns:
      the value of the login record component
    • lastLogin

      public LocalDateTime lastLogin()
      Returns the value of the lastLogin record component.
      Returns:
      the value of the lastLogin record component
    • registerIP

      public String registerIP()
      Returns the value of the registerIP record component.
      Returns:
      the value of the registerIP record component
    • registerDate

      public LocalDateTime registerDate()
      Returns the value of the registerDate record component.
      Returns:
      the value of the registerDate record component