|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TimeInterval.Comparison>
com.caucho.util.TimeInterval.Comparison
public static enum TimeInterval.Comparison
Defines the set of relationships between two time intervals.
Enum Constant Summary | |
---|---|
CONTAINS
|
|
ENDS_DURING
|
|
EQUAL
|
|
FOLLOWS
|
|
FOLLOWS_IMMEDIATELY
|
|
IS_CONTAINED
|
|
PRECEDES
|
|
PRECEDES_IMMEDIATELY
|
|
STARTS_DURING
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic int value()
value
in interface ComparableElement.Comparison<TimeInterval>
public static TimeInterval.Comparison comparison(TimeInterval a, TimeInterval b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |