public static enum Interval.Units extends Enum<Interval.Units>
| Modifier and Type | Method and Description |
|---|---|
static Interval.Units |
fromCode(String code) |
String |
getCode() |
static Interval.Units |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Interval.Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Interval.Units MINUTES
public static final Interval.Units HOURS
public static final Interval.Units DAYS
public static Interval.Units[] values()
for (Interval.Units c : Interval.Units.values()) System.out.println(c);
public static Interval.Units valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getCode()
public static Interval.Units fromCode(String code)
Copyright © 2015 Red Hat, Inc.. All rights reserved.