@Immutable public class RangeScatter extends Object implements RangeIterator
Constructor and Description |
---|
RangeScatter(String name,
int... val)
Ctor
|
Modifier and Type | Method and Description |
---|---|
RangeIterator |
copyWithName(String name)
Make a copy with a different name.
|
boolean |
equals(Object o) |
String |
getName()
The name of this Range iterator.
|
int |
hashCode() |
Iterator<Integer> |
iterator() |
int |
length()
The number of index in this iterator.
|
String |
toString() |
forEach, spliterator
public RangeScatter(String name, int... val)
name
- optional nameval
- should be sortedpublic RangeIterator copyWithName(String name)
RangeIterator
copyWithName
in interface RangeIterator
public String getName()
RangeIterator
getName
in interface RangeIterator
public Iterator<Integer> iterator()
iterator
in interface Iterable<Integer>
iterator
in interface RangeIterator
public int length()
RangeIterator
length
in interface RangeIterator