public enum RelativeTime extends Enum<RelativeTime> implements org.eclipse.emf.common.util.Enumerator
Modifier and Type | Field and Description |
---|---|
static int |
AFTER_VALUE |
static int |
BEFORE_VALUE |
static int |
DURING_VALUE |
static int |
ON_VALUE |
static List<RelativeTime> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static RelativeTime |
get(int value) |
static RelativeTime |
get(String literal) |
static RelativeTime |
getByName(String name) |
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString() |
static RelativeTime |
valueOf(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 List<RelativeTime> VALUES
public static RelativeTime[] values()
for (RelativeTime c : RelativeTime.values()) System.out.println(c);
public static RelativeTime 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 static RelativeTime get(String literal)
public static RelativeTime getByName(String name)
public static RelativeTime get(int value)
public int getValue()
getValue
in interface org.eclipse.emf.common.util.Enumerator
public String getName()
getName
in interface org.eclipse.emf.common.util.Enumerator
public String getLiteral()
getLiteral
in interface org.eclipse.emf.common.util.Enumerator
public String toString()
toString
in class Enum<RelativeTime>