|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.KeyIterator<T>
T
- the key classpublic class KeyIterator<T>
Key iterator provides an iteration method that wraps a keyed entry iterator and returns the keys of those entries.
Constructor Summary | |
---|---|
KeyIterator(java.util.Iterator<? extends KeyedEntry<? extends T>> delegateIterator)
Create a new key iterator that delegates to the supplied iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns whether another key is available. |
T |
next()
Returns tne next key. |
void |
remove()
Throws an UnsupportedOperationException if called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyIterator(java.util.Iterator<? extends KeyedEntry<? extends T>> delegateIterator)
delegateIterator
- a new key iterator that delegates to the supplied iterator.Method Detail |
---|
public final boolean hasNext()
true
if the delegated iterator has
another entry.
hasNext
in interface java.util.Iterator<T>
public final T next()
next
in interface java.util.Iterator<T>
public final void remove() throws java.lang.UnsupportedOperationException
UnsupportedOperationException
if called.
remove
in interface java.util.Iterator<T>
java.lang.UnsupportedOperationException
- if the method is invoked.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |