public static enum TimeInterval.Comparison extends java.lang.Enum<TimeInterval.Comparison> implements ComparableElement.Comparison<TimeInterval>
Enum Constant and Description |
---|
CONTAINS |
ENDS_DURING |
EQUAL |
FOLLOWS |
FOLLOWS_IMMEDIATELY |
IS_CONTAINED |
PRECEDES |
PRECEDES_IMMEDIATELY |
STARTS_DURING |
Modifier and Type | Method and Description |
---|---|
static TimeInterval.Comparison |
comparison(TimeInterval a,
TimeInterval b)
Provides a comparsion of two time intervals.
|
int |
value()
Implements the required method.
|
static TimeInterval.Comparison |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeInterval.Comparison[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeInterval.Comparison PRECEDES
public static final TimeInterval.Comparison PRECEDES_IMMEDIATELY
public static final TimeInterval.Comparison ENDS_DURING
public static final TimeInterval.Comparison CONTAINS
public static final TimeInterval.Comparison IS_CONTAINED
public static final TimeInterval.Comparison EQUAL
public static final TimeInterval.Comparison STARTS_DURING
public static final TimeInterval.Comparison FOLLOWS_IMMEDIATELY
public static final TimeInterval.Comparison FOLLOWS
public static TimeInterval.Comparison[] values()
for (TimeInterval.Comparison c : TimeInterval.Comparison.values()) System.out.println(c);
public static TimeInterval.Comparison 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 int value()
value
in interface ComparableElement.Comparison<TimeInterval>
public static TimeInterval.Comparison comparison(TimeInterval a, TimeInterval b)