|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.util.Iterators.Pair<E>
public static class Iterators.Pair<E>
An Iterators.Pair provides an iterator
over a sequence of exactly two elements.
| Constructor Summary | |
|---|---|
Iterators.Pair(E member1,
E member2)
Construct a pair iterator based on the containing pair set. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if there are more elements
left to return. |
E |
next()
Returns the next object in this pair iterator, or throws an exception if there aren't any more. |
void |
remove()
Throws an unsupported operation exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Iterators.Pair(E member1,
E member2)
| Method Detail |
|---|
public boolean hasNext()
true if there are more elements
left to return.
hasNext in interface Iterator<E>true if there are more elements
left to return.public E next()
next in interface Iterator<E>public void remove()
remove in interface Iterator<E>UnsupportedOperationException - Whenver called.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||