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