Record Class User

java.lang.Object
java.lang.Record
de.murmelmeister.murmelapi.user.User
Record Components:
firstLogin - Nullable

public record User(int id, UUID mojangId, String username, LocalDateTime firstLogin, boolean systemUser, boolean debugUser, boolean debugEnabled, int languageId) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the debugEnabled record component.
    private final boolean
    The field for the debugUser record component.
    private final LocalDateTime
    The field for the firstLogin record component.
    private final int
    The field for the id record component.
    private final int
    The field for the languageId record component.
    private final UUID
    The field for the mojangId record component.
    private final boolean
    The field for the systemUser record component.
    private final String
    The field for the username record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    User(int id, UUID mojangId, String username, LocalDateTime firstLogin, boolean systemUser, boolean debugUser, boolean debugEnabled, int languageId)
    Creates an instance of a User record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the debugEnabled record component.
    boolean
     
    boolean
    Returns the value of the debugUser record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the firstLogin record component.
    final int
    Returns a hash code value for this object.
    int
    id()
    Returns the value of the id record component.
    int
    Returns the value of the languageId record component.
    Returns the value of the mojangId record component.
    boolean
    Returns the value of the systemUser record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the username record component.
    withUpdateMeta(String username, LocalDateTime firstLogin, Boolean debugUser, Boolean debugEnabled, Integer languageId)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      private final int id
      The field for the id record component.
    • mojangId

      private final UUID mojangId
      The field for the mojangId record component.
    • username

      private final String username
      The field for the username record component.
    • firstLogin

      private final LocalDateTime firstLogin
      The field for the firstLogin record component.
    • systemUser

      private final boolean systemUser
      The field for the systemUser record component.
    • debugUser

      private final boolean debugUser
      The field for the debugUser record component.
    • debugEnabled

      private final boolean debugEnabled
      The field for the debugEnabled record component.
    • languageId

      private final int languageId
      The field for the languageId record component.
  • Constructor Details

    • User

      public User(int id, UUID mojangId, String username, LocalDateTime firstLogin, boolean systemUser, boolean debugUser, boolean debugEnabled, int languageId)
      Creates an instance of a User record class.
      Parameters:
      id - the value for the id record component
      mojangId - the value for the mojangId record component
      username - the value for the username record component
      firstLogin - the value for the firstLogin record component
      systemUser - the value for the systemUser record component
      debugUser - the value for the debugUser record component
      debugEnabled - the value for the debugEnabled record component
      languageId - the value for the languageId record component
  • Method Details

    • debugMode

      public boolean debugMode()
    • withUpdateMeta

      public User withUpdateMeta(String username, LocalDateTime firstLogin, Boolean debugUser, Boolean debugEnabled, Integer languageId)
    • toString

      public final 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
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final 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.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • mojangId

      public UUID mojangId()
      Returns the value of the mojangId record component.
      Returns:
      the value of the mojangId record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • firstLogin

      public LocalDateTime firstLogin()
      Returns the value of the firstLogin record component.
      Returns:
      the value of the firstLogin record component
    • systemUser

      public boolean systemUser()
      Returns the value of the systemUser record component.
      Returns:
      the value of the systemUser record component
    • debugUser

      public boolean debugUser()
      Returns the value of the debugUser record component.
      Returns:
      the value of the debugUser record component
    • debugEnabled

      public boolean debugEnabled()
      Returns the value of the debugEnabled record component.
      Returns:
      the value of the debugEnabled record component
    • languageId

      public int languageId()
      Returns the value of the languageId record component.
      Returns:
      the value of the languageId record component