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