Class SequenceableInterval<E extends ISequenceable<E,S,U> & Comparable<E> , S, U>
java.lang.Object
gw.lang.reflect.interval.AbstractInterval<E, SequenceableInterval<E,S,U>>
gw.lang.reflect.interval.IterableInterval<E, S, U, SequenceableInterval<E,S,U>>
gw.lang.reflect.interval.SequenceableInterval<E,S,U>
- All Implemented Interfaces:
IInterval<E, SequenceableInterval<E,S, U>>, IIterableInterval<E, S, U, SequenceableInterval<E, S, U>>, Iterable<E>
public class SequenceableInterval<E extends ISequenceable<E,S,U> & Comparable<E>, S, U>
extends IterableInterval<E, S, U, SequenceableInterval<E,S,U>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate class -
Constructor Summary
ConstructorsConstructorDescriptionSequenceableInterval(E left, E right, S step, U unit, 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
-
SequenceableInterval
-
-
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.
-