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