Enum ValueType

java.lang.Object
java.lang.Enum<ValueType>
yearreview.app.util.value.ValueType
All Implemented Interfaces:
Serializable, Comparable<ValueType>, java.lang.constant.Constable

public enum ValueType extends Enum<ValueType>
Enumeration of all ValueTypes currently allowed.
Author:
ColdStone37
  • Enum Constant Details

    • DISTANCE

      public static final ValueType DISTANCE
    • DURATION

      public static final ValueType DURATION
  • Constructor Details

    • ValueType

      private ValueType()
  • Method Details

    • values

      public static ValueType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ValueType 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