Enum Class ColorName

java.lang.Object
java.lang.Enum<ColorName>
io.github.cjstehno.testthings.fixtures.ColorName
All Implemented Interfaces:
Serializable, Comparable<ColorName>, Constable

public enum ColorName extends Enum<ColorName>
An enumeration of some color names.
  • Enum Constant Details

    • WHITE

      public static final ColorName WHITE
      White.
    • YELLOW

      public static final ColorName YELLOW
      Yellow.
    • BLUE

      public static final ColorName BLUE
      Blue.
    • RED

      public static final ColorName RED
      Red.
    • GREEN

      public static final ColorName GREEN
      Green.
    • BLACK

      public static final ColorName BLACK
      Black.
    • BROWN

      public static final ColorName BROWN
      Brown.
    • AZURE

      public static final ColorName AZURE
      Azure.
    • IVORY

      public static final ColorName IVORY
      Ivory.
    • TEAL

      public static final ColorName TEAL
      Teal.
    • SILVER

      public static final ColorName SILVER
      Silver.
    • PURPLE

      public static final ColorName PURPLE
      Purple.
    • PEA_GREEN

      public static final ColorName PEA_GREEN
      Pea Green.
    • GRAY

      public static final ColorName GRAY
      Gray.
    • ORANGE

      public static final ColorName ORANGE
      Orange.
    • MAROON

      public static final ColorName MAROON
      Maroon.
    • CHARCOAL

      public static final ColorName CHARCOAL
      Charcoal.
    • AQUAMARINE

      public static final ColorName AQUAMARINE
      Aquamarine.
    • CORAL

      public static final ColorName CORAL
      Coral (no, not Rick's son)
    • FUCHSIA

      public static final ColorName FUCHSIA
      Fuchsia.
    • WHEAT

      public static final ColorName WHEAT
      Wheat.
    • LIME

      public static final ColorName LIME
      Lime.
    • CRIMSON

      public static final ColorName CRIMSON
      Crimson.
    • KHAKI

      public static final ColorName KHAKI
      Khaki.
    • HOT_PINK

      public static final ColorName HOT_PINK
      Hot Pink.
    • MAGENTA

      public static final ColorName MAGENTA
      Magenta.
    • OLDEN

      public static final ColorName OLDEN
      Olden.
    • PLUM

      public static final ColorName PLUM
      Plum.
    • OLIVE

      public static final ColorName OLIVE
      Olive.
    • CYAN

      public static final ColorName CYAN
      Cyan.
  • Method Details

    • values

      public static ColorName[] 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 ColorName 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ColorName>