|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.util.gnu.trove.TDoubleIterator
public class TDoubleIterator
Iterator for double collections.
Field Summary | |
---|---|
protected int |
_expectedSize
the number of elements this iterator believes are in the data structure it accesses. |
protected int |
_index
the index used for iteration. |
Constructor Summary | |
---|---|
TDoubleIterator(TDoubleHash hash)
Creates a TDoubleIterator for the elements in the specified collection. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iterator can be advanced past its current location. |
protected void |
moveToNextIndex()
Sets the internal index so that the `next' object can be returned. |
double |
next()
Advances the iterator to the next element in the underlying collection and returns it. |
protected int |
nextIndex()
Returns the index of the next value in the data structure or a negative value if the iterator is exhausted. |
void |
remove()
Removes the last entry returned by the iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int _expectedSize
protected int _index
Constructor Detail |
---|
public TDoubleIterator(TDoubleHash hash)
Method Detail |
---|
public double next()
NoSuchElementException
- if the iterator is already exhaustedprotected final int nextIndex()
int
value
java.util.ConcurrentModificationException
- if the underlying collection's
size has been modified since the iterator was created.public boolean hasNext()
boolean
valuepublic void remove()
protected final void moveToNextIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |