@Immutable public class RangeComposite extends Object implements RangeIterator
Constructor and Description |
---|
RangeComposite(String name,
List<RangeIterator> ranges) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
List<RangeIterator> |
getRanges() |
Iterator<Integer> |
iterator() |
int |
length() |
RangeIterator |
setName(String name) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RangeComposite(String name, List<RangeIterator> ranges)
public String getName()
getName
in interface RangeIterator
public List<RangeIterator> getRanges()
public RangeIterator setName(String name)
setName
in interface RangeIterator
public Iterator<Integer> iterator()
iterator
in interface Iterable<Integer>
iterator
in interface RangeIterator
public int length()
length
in interface RangeIterator