public enum IntervalRelation extends Enum<IntervalRelation>
Enum Constant and Description |
---|
AFTER
X takes place after Y.
|
BEFORE
X takes place before Y.
|
DURING
X during Y.
|
DURING_INVERSE
Y during X.
|
EQUAL
X is equal to Y.
|
FINISH
X finishes Y
|
FINISH_INVERSE
Y finishes X.
|
MEET
X meets Y.
|
MEET_INVERSE
Y meets X.
|
OVERLAP
X overlaps with Y.
|
OVERLAP_INVERSE
Y overlaps with X.
|
START
X starts Y.
|
START_INVERSE
Y starts X.
|
Modifier and Type | Method and Description |
---|---|
abstract <T extends Comparable<? super T>> |
isBetween(Interval<T> X,
Interval<T> Y)
Check if X and Y satisfy a certain relation.
|
static IntervalRelation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntervalRelation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntervalRelation BEFORE
public static final IntervalRelation AFTER
public static final IntervalRelation MEET
public static final IntervalRelation MEET_INVERSE
public static final IntervalRelation OVERLAP
public static final IntervalRelation OVERLAP_INVERSE
public static final IntervalRelation START
public static final IntervalRelation START_INVERSE
public static final IntervalRelation DURING
public static final IntervalRelation DURING_INVERSE
public static final IntervalRelation FINISH
public static final IntervalRelation FINISH_INVERSE
public static final IntervalRelation EQUAL
public static IntervalRelation[] values()
for (IntervalRelation c : IntervalRelation.values()) System.out.println(c);
public static IntervalRelation 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 abstract <T extends Comparable<? super T>> boolean isBetween(Interval<T> X, Interval<T> Y)
T
- a Comparable
typeX
- an intervalY
- an intervaltrue
is if X and Y satisfy the relationCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.