Class DateInterval
java.lang.Object
gw.lang.reflect.interval.AbstractInterval<Date, DateInterval>
gw.lang.reflect.interval.IterableInterval<Date, Integer, DateUnit, DateInterval>
gw.lang.reflect.interval.DateInterval
- All Implemented Interfaces:
IInterval<Date, DateInterval>, IIterableInterval<Date, Integer, DateUnit, DateInterval>, Iterable<Date>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate class -
Constructor Summary
ConstructorsConstructorDescriptionDateInterval(Date left, Date right, int iStep, DateUnit unit, boolean bLeftClosed, boolean bRightClosed, boolean bReverse) DateInterval(Date left, Date right, Integer step, DateUnit unit) -
Method Summary
Modifier and TypeMethodDescriptionprivate Dateprivate DategetFromLeft(int iStepIndex) getFromRight(int iStepIndex) private Dateprivate DateMethods 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
-
DateInterval
-
DateInterval
-
-
Method Details
-
iterateFromLeft
-
iterateFromRight
-
add
-
add
-
subtract
-
subtract
-
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.
-