Enum Class User.Status

java.lang.Object
java.lang.Enum<User.Status>
com.needleandstitch.pavuk.model.User.Status
All Implemented Interfaces:
Serializable, Comparable<User.Status>, Constable
Enclosing class:
User

public static enum User.Status extends Enum<User.Status>
Enum representing the status of a user.
Since:
15.12.2024
Version:
1.0.0
Author:
Needle & Stitch
  • Enum Constant Details

    • ONLINE

      public static final User.Status ONLINE
      The user is currently online and active.
    • IDLE

      public static final User.Status IDLE
      The user is idle and not actively interacting, but still logged in.
    • OFFLINE

      public static final User.Status OFFLINE
      The user is not online or logged in.
    • BANNED

      public static final User.Status BANNED
      The user has been banned and cannot access the platform.
  • Method Details

    • values

      public static User.Status[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static User.Status valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null