Enum CommandManager.RegistrationState

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AFTER_REGISTRATION
      Once registration has been completed.
      BEFORE_REGISTRATION
      The point when no commands have been registered yet.
      REGISTERING
      When at least one command has been registered, and more commands have been registered.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CommandManager.RegistrationState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CommandManager.RegistrationState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • BEFORE_REGISTRATION

        public static final CommandManager.RegistrationState BEFORE_REGISTRATION
        The point when no commands have been registered yet.

        At this point, all configuration options can be changed.

      • REGISTERING

        public static final CommandManager.RegistrationState REGISTERING
        When at least one command has been registered, and more commands have been registered.

        In this state, some options that affect how commands are registered with the platform are frozen. Some platforms will remain in this state for their lifetime.

      • AFTER_REGISTRATION

        public static final CommandManager.RegistrationState AFTER_REGISTRATION
        Once registration has been completed.

        At this point, the command manager is effectively immutable. On platforms where command registration happens via callback, this state is achieved the first time the manager's callback is executed for registration.

    • Method Detail

      • values

        public static CommandManager.RegistrationState[] 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 (CommandManager.RegistrationState c : CommandManager.RegistrationState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CommandManager.RegistrationState 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