Package package1

Enum Class MyEnum

All Implemented Interfaces:
Serializable, Comparable<MyEnum>, Constable

public enum MyEnum extends Enum<MyEnum>
Javadoc for MyEnum
  • Enum Constant Details

    • ONE

      public static final MyEnum ONE
      Javadoc for ONE
    • TWO

      public static final MyEnum TWO
      Javadoc for TWO
  • Method Details

    • values

      public static MyEnum[] 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 MyEnum 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
    • getPublicField

      public String getPublicField()
      Javadoc for getPublicField
      Returns:
      anything