Class LongInterval
java.lang.Object
- All Implemented Interfaces:
IInterval<Long, LongInterval>, IIterableInterval<Long, Long, Void, LongInterval>, Iterable<Long>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassprivate class -
Constructor Summary
ConstructorsConstructorDescriptionLongInterval(Long left, Long right) LongInterval(Long left, Long right, long lStep, 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
-
LongInterval
-
LongInterval
-
-
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.
-