Class IntegerInterval
java.lang.Object
gw.lang.reflect.interval.AbstractInterval<Integer, IntegerInterval>
gw.lang.reflect.interval.IterableInterval<Integer, Integer, Void, IntegerInterval>
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 TypeClassDescriptionclassprivate 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 IterableInterval
equals, getStep, getUnit, hashCode, iterator, step, toString, unitMethods inherited from class AbstractInterval
contains, contains, getLeftEndpoint, getRightEndpoint, isLeftClosed, isReverse, isRightClosedMethods inherited from interface IInterval
contains, contains, getLeftEndpoint, getRightEndpoint, isLeftClosed, isReverse, isRightClosedMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
IntegerInterval
-
IntegerInterval
-
IntegerInterval
-
-
Method Details
-
iterateFromLeft
-
iterateFromRight
-
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.
-