Enum LoginState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LoginState>

    public enum LoginState
    extends java.lang.Enum<LoginState>
    This list various login states that user can be.
    • Enum Constant Detail

      • LOGIN_STATE_UNKNOWN

        public static final LoginState LOGIN_STATE_UNKNOWN
        State is unknown
      • LOGIN_STATE_LOGGED_IN

        public static final LoginState LOGIN_STATE_LOGGED_IN
        User is logged in
      • LOGIN_STATE_NOT_LOGGED_IN

        public static final LoginState LOGIN_STATE_NOT_LOGGED_IN
        User is not logged in
      • LOGIN_STATE_LOCKED

        public static final LoginState LOGIN_STATE_LOCKED
        State is locked
    • Method Detail

      • values

        public static LoginState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LoginState c : LoginState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LoginState valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getSTATEMessage

        public static java.lang.String getSTATEMessage​(LoginState STATE)
        Get details of the STATE.
        Parameters:
        STATE - LoginState - STATE object.
        Returns:
        A String message with STATE details.
      • getStateById

        public static LoginState getStateById​(int id)
      • getValue

        public int getValue()
      • getStateId

        public int getStateId()