Enum Class Drinks

java.lang.Object
java.lang.Enum<Drinks>
org.apache.camel.component.dummy.Drinks
All Implemented Interfaces:
Serializable, Comparable<Drinks>, Constable

public enum Drinks extends Enum<Drinks>
  • Enum Constant Details

    • Beer

      public static final Drinks Beer
    • GinTonic

      public static final Drinks GinTonic
    • Wine

      public static final Drinks Wine
  • Method Details

    • values

      public static Drinks[] 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 Drinks 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