Enum Class Uptime

java.lang.Object
java.lang.Enum<Uptime>
com.janboerman.invsee.metrics.Uptime
All Implemented Interfaces:
Serializable, Comparable<Uptime>, Constable

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

    • LESS_THAN_ONE_DAY

      public static final Uptime LESS_THAN_ONE_DAY
    • ONE_DAY_2_ONE_WEEK

      public static final Uptime ONE_DAY_2_ONE_WEEK
    • ONE_WEEK_2_ONE_MONTH

      public static final Uptime ONE_WEEK_2_ONE_MONTH
    • ONE_MONTH_2_THREE_MONTHS

      public static final Uptime ONE_MONTH_2_THREE_MONTHS
    • THREE_MONTHS_2_HALF_A_YEAR

      public static final Uptime THREE_MONTHS_2_HALF_A_YEAR
    • HALF_A_YEAR_2_ONE_YEAR

      public static final Uptime HALF_A_YEAR_2_ONE_YEAR
    • ONE_YEAR_2_TWO_YEARS

      public static final Uptime ONE_YEAR_2_TWO_YEARS
    • TWO_YEARS_OR_MORE

      public static final Uptime TWO_YEARS_OR_MORE
  • Method Details

    • values

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