public class IterableRange<T> extends java.lang.Object implements java.lang.Iterable<Range<T>>, java.util.Iterator<Range<T>>
Constructor and Description |
---|
IterableRange(java.util.Iterator<T> iterator,
boolean shift)
Lists of T's to put into the Iterator.
|
IterableRange(java.util.List<T> data,
boolean shiftByOne)
Lists of T's to put into the Iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
java.util.Iterator<Range<T>> |
iterator() |
Range<T> |
next()
the Range
|
void |
remove() |
public IterableRange(java.util.Iterator<T> iterator, boolean shift)
iterator
- shift
- if true, the first date is skipped to create an offset patternpublic IterableRange(java.util.List<T> data, boolean shiftByOne)
data
- shiftByOne
- if true, the first date is skipped to create an offset pattern