Package gw.lang.reflect.interval
Class IntegerInterval
java.lang.Object
gw.lang.reflect.interval.AbstractInterval<E,ME>
gw.lang.reflect.interval.IterableInterval<E,E,Void,ME>
gw.lang.reflect.interval.NumberInterval<Integer,IntegerInterval>
gw.lang.reflect.interval.IntegerInterval
- All Implemented Interfaces:
IInterval<Integer,
,IntegerInterval> IIterableInterval<Integer,
,Integer, Void, IntegerInterval> Iterable<Integer>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
private class
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerInterval
(Integer left, Integer right) IntegerInterval
(Integer left, Integer right, int iStep) IntegerInterval
(Integer left, Integer right, int iStep, boolean bLeftClosed, boolean bRightClosed, boolean bReverse) -
Method Summary
Methods inherited from class gw.lang.reflect.interval.IterableInterval
equals, getStep, getUnit, hashCode, iterator, step, toString, unit
Methods inherited from class gw.lang.reflect.interval.AbstractInterval
contains, contains, getLeftEndpoint, getRightEndpoint, isLeftClosed, isReverse, isRightClosed
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface gw.lang.reflect.interval.IInterval
contains, contains, getLeftEndpoint, getRightEndpoint, isLeftClosed, isReverse, isRightClosed
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IntegerInterval
-
IntegerInterval
-
IntegerInterval
-
-
Method Details
-
iterateFromLeft
- Returns:
- An iterator that visits the elements in this interval in order, from left to right. Returns null if this interval does not support iteration.
- See Also:
-
iterateFromRight
- Returns:
- An iterator that visits the elements in this interval in reverse order, from right to left. Returns null if this interval does not support iteration.
- See Also:
-
getFromLeft
- Parameters:
iStepIndex
- The index of the step from the left endpoint- Returns:
- The nth step from the left endpoint. Returns null if iStepIndex is out of bounds.
-
getFromRight
- Parameters:
iStepIndex
- The index of the step from the right endpoint- Returns:
- The nth step from the right endpoint. Returns null if iStepIndex is out of bounds.
-