public enum RelativeTime extends java.lang.Enum<RelativeTime>
Modifier and Type | Field and Description |
---|---|
static int |
AFTER_VALUE |
static int |
BEFORE_VALUE |
static int |
DURING_VALUE |
static int |
ON_VALUE |
static java.util.List<RelativeTime> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static RelativeTime |
get(int value) |
static RelativeTime |
get(java.lang.String literal) |
static RelativeTime |
getByName(java.lang.String name) |
java.lang.String |
getLiteral() |
java.lang.String |
getName() |
int |
getValue() |
java.lang.String |
toString() |
static RelativeTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelativeTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeTime BEFORE
public static final RelativeTime DURING
public static final RelativeTime AFTER
public static final RelativeTime ON
public static final int BEFORE_VALUE
public static final int DURING_VALUE
public static final int AFTER_VALUE
public static final int ON_VALUE
public static final java.util.List<RelativeTime> VALUES
public static RelativeTime[] values()
for (RelativeTime c : RelativeTime.values()) System.out.println(c);
public static RelativeTime valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static RelativeTime get(java.lang.String literal)
public static RelativeTime getByName(java.lang.String name)
public static RelativeTime get(int value)
public int getValue()
public java.lang.String getName()
public java.lang.String getLiteral()
public java.lang.String toString()
toString
in class java.lang.Enum<RelativeTime>