Package org.usf.java.jinterval.core
Class ImmutableInterval<T extends Comparable<? super T>>
- java.lang.Object
-
- org.usf.java.jinterval.core.ImmutableInterval<T>
-
- All Implemented Interfaces:
Interval<T>
public final class ImmutableInterval<T extends Comparable<? super T>> extends Object implements Interval<T>
-
-
Constructor Summary
Constructors Constructor Description ImmutableInterval(T start, T endExclusive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
endExclusive()
int
intervalDirection()
static <U extends Comparable<? super U>>
ImmutableInterval<U>regularInterval(U startInclusive, U endExclusive)
ImmutableInterval<T>
reverseInterval()
T
startInclusive()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.usf.java.jinterval.core.Interval
containsField, containsInterval, containsInterval, equalInterval, equalInterval, fullInterval, inInterval, intersectInterval, intersectInterval, invertedInterval, notInInterval, regularInterval, symmetrical
-
-
-
-
Method Detail
-
startInclusive
public T startInclusive()
- Specified by:
startInclusive
in interfaceInterval<T extends Comparable<? super T>>
-
endExclusive
public T endExclusive()
- Specified by:
endExclusive
in interfaceInterval<T extends Comparable<? super T>>
-
intervalDirection
public int intervalDirection()
- Specified by:
intervalDirection
in interfaceInterval<T extends Comparable<? super T>>
-
reverseInterval
public ImmutableInterval<T> reverseInterval()
-
regularInterval
public static <U extends Comparable<? super U>> ImmutableInterval<U> regularInterval(U startInclusive, U endExclusive)
-
-