@Immutable public class RangeComposite extends Object implements RangeIterator
Constructor and Description |
---|
RangeComposite(String name,
List<RangeIterator> ranges) |
Modifier and Type | Method and Description |
---|---|
RangeIterator |
copyWithName(String name)
Make a copy with a different name.
|
String |
getName()
The name of this Range iterator.
|
List<RangeIterator> |
getRanges() |
Iterator<Integer> |
iterator() |
int |
length()
The number of index in this iterator.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RangeComposite(String name, List<RangeIterator> ranges)
public RangeIterator copyWithName(String name)
RangeIterator
copyWithName
in interface RangeIterator
public String getName()
RangeIterator
getName
in interface RangeIterator
public List<RangeIterator> getRanges()
public Iterator<Integer> iterator()
iterator
in interface Iterable<Integer>
iterator
in interface RangeIterator
public int length()
RangeIterator
length
in interface RangeIterator