E
- The type of the endpoint used in the FuzzyInterval.public class FuzzyInterval<E extends FuzzyInterval.FuzzyComparable<E>> extends Interval<E>
Modifier and Type | Class and Description |
---|---|
static interface |
FuzzyInterval.FuzzyComparable<T>
Interface with a looser ordering than Comparable.
|
Interval.RelType
Pair.ByFirstPairComparator<T1,T2>, Pair.ByFirstReversePairComparator<T1,T2>, Pair.BySecondPairComparator<T1,T2>, Pair.BySecondReversePairComparator<T1,T2>
INTERVAL_OPEN_BEGIN, INTERVAL_OPEN_END, LENGTH_SCORER, REL_FLAGS_AFTER, REL_FLAGS_BEFORE, REL_FLAGS_EE_AFTER, REL_FLAGS_EE_BEFORE, REL_FLAGS_EE_SAME, REL_FLAGS_EE_SHIFT, REL_FLAGS_EE_UNKNOWN, REL_FLAGS_ES_AFTER, REL_FLAGS_ES_BEFORE, REL_FLAGS_ES_SAME, REL_FLAGS_ES_SHIFT, REL_FLAGS_ES_UNKNOWN, REL_FLAGS_INTERVAL_AFTER, REL_FLAGS_INTERVAL_ALMOST_AFTER, REL_FLAGS_INTERVAL_ALMOST_BEFORE, REL_FLAGS_INTERVAL_ALMOST_SAME, REL_FLAGS_INTERVAL_BEFORE, REL_FLAGS_INTERVAL_CONTAIN, REL_FLAGS_INTERVAL_FUZZY, REL_FLAGS_INTERVAL_INSIDE, REL_FLAGS_INTERVAL_OVERLAP, REL_FLAGS_INTERVAL_SAME, REL_FLAGS_INTERVAL_UNKNOWN, REL_FLAGS_SAME, REL_FLAGS_SE_AFTER, REL_FLAGS_SE_BEFORE, REL_FLAGS_SE_SAME, REL_FLAGS_SE_SHIFT, REL_FLAGS_SE_UNKNOWN, REL_FLAGS_SS_AFTER, REL_FLAGS_SS_BEFORE, REL_FLAGS_SS_SAME, REL_FLAGS_SS_SHIFT, REL_FLAGS_SS_UNKNOWN, REL_FLAGS_UNKNOWN
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_ENDPOINTS_COMPARATOR, LENGTH_GT_COMPARATOR, LENGTH_LT_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
Modifier and Type | Method and Description |
---|---|
Interval.RelType |
getRelation(Interval<E> other)
Returns the relationship of this interval to the other interval
The most specific relationship from the following is returned.
|
int |
getRelationFlags(Interval<E> other)
Return set of flags indicating possible relationships between
this interval and another interval.
|
static <E extends FuzzyInterval.FuzzyComparable<E>> |
toInterval(E a,
E b) |
static <E extends FuzzyInterval.FuzzyComparable<E>> |
toInterval(E a,
E b,
int flags) |
static <E extends FuzzyInterval.FuzzyComparable<E>> |
toValidInterval(E a,
E b) |
static <E extends FuzzyInterval.FuzzyComparable<E>> |
toValidInterval(E a,
E b,
int flags) |
addIntervalRelationFlags, checkFlagExclusiveSet, checkFlagSet, checkMultipleBitSet, compareIntervalOrder, contains, contains, containsOpen, equals, expand, extractRelationSubflags, getBegin, getEnd, getInterval, getMidPoint, getRadius, hashCode, includesBegin, includesEnd, intersect, isIntervalComparable, lengthEndpointsComparator, lengthScorer, max, min, overlaps, toRelFlags
public static <E extends FuzzyInterval.FuzzyComparable<E>> FuzzyInterval<E> toInterval(E a, E b)
public static <E extends FuzzyInterval.FuzzyComparable<E>> FuzzyInterval<E> toInterval(E a, E b, int flags)
public static <E extends FuzzyInterval.FuzzyComparable<E>> FuzzyInterval<E> toValidInterval(E a, E b)
public static <E extends FuzzyInterval.FuzzyComparable<E>> FuzzyInterval<E> toValidInterval(E a, E b, int flags)
public int getRelationFlags(Interval<E> other)
Interval
getRelationFlags
in class Interval<E extends FuzzyInterval.FuzzyComparable<E>>
other
- Interval with which to compare withpublic Interval.RelType getRelation(Interval<E> other)
Interval
getRelation
in class Interval<E extends FuzzyInterval.FuzzyComparable<E>>
other
- The other interval with which to compare with