Enum Class CmdTargetComposition.Transition

java.lang.Object
java.lang.Enum<CmdTargetComposition.Transition>
com.ultikits.ultitools.abstracts.command.validation.CmdTargetComposition.Transition
All Implemented Interfaces:
Serializable, Comparable<CmdTargetComposition.Transition>, java.lang.constant.Constable
Enclosing class:
CmdTargetComposition

public static enum CmdTargetComposition.Transition extends Enum<CmdTargetComposition.Transition>
How a method-level @CmdTarget value relates to the class-level one.

CmdTargetType is not a total order: BOTH is a superset of PLAYER and of CONSOLE, but PLAYER and CONSOLE are not comparable to each other. That is why this is a four-way enum rather than a two-way "same or different" - collapsing PLAYER-to-CONSOLE into WIDENING would be an arbitrary choice with no basis in the type's own structure.

  • Enum Constant Details

  • Constructor Details

    • Transition

      private Transition()
  • Method Details

    • values

      public static CmdTargetComposition.Transition[] 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 CmdTargetComposition.Transition 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