Enum ColorId

  • All Implemented Interfaces:
    Serializable, Comparable<ColorId>

    public enum ColorId
    extends Enum<ColorId>
    Provides IDs for colors which are used within this plugin in order to separate the color palette from the logic.
    Author:
    Florian Orendi
    • Enum Constant Detail

      • INSUFFICIENT

        public static final ColorId INSUFFICIENT
      • VERY_BAD

        public static final ColorId VERY_BAD
      • BAD

        public static final ColorId BAD
      • INADEQUATE

        public static final ColorId INADEQUATE
      • AVERAGE

        public static final ColorId AVERAGE
      • GOOD

        public static final ColorId GOOD
      • VERY_GOOD

        public static final ColorId VERY_GOOD
      • EXCELLENT

        public static final ColorId EXCELLENT
      • BLACK

        public static final ColorId BLACK
      • WHITE

        public static final ColorId WHITE
    • Method Detail

      • values

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

        public static ColorId valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null