|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bak.pcj.adapter.LongIteratorToIteratorAdapter
This class represents adaptions of primitive iterators over long values to Java Collections Framework iterators.
Constructor Summary | |
LongIteratorToIteratorAdapter(LongIterator iterator)
Creates a new adaption to an iterator from an iterator over long values. |
Method Summary | |
boolean |
hasNext()
Indicates whether more values can be returned by this iterator. |
Object |
next()
Returns the next value of this iterator. |
void |
remove()
Removes the last value returned from the underlying collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LongIteratorToIteratorAdapter(LongIterator iterator)
iterator
- the underlying iterator.
NullPointerException
- if iterator is null.Method Detail |
public boolean hasNext()
hasNext
in interface Iterator
next()
public Object next()
next
in interface Iterator
NoSuchElementException
- if no more elements are available from this
iterator.hasNext()
public void remove()
remove
in interface Iterator
UnsupportedOperationException
- if removal is not supported by this iterator.
IllegalStateException
- if no element has been returned by this iterator
yet.
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |