|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSimpleIterator<K>
K
- The type of the keys.public class SimpleIterator<K>
A SimpleIterator only iterates over the keys, but hides the data associated to the keys.
Constructor Summary | |
---|---|
SimpleIterator(Iterator<K,?> i)
Creates a new SimpleIterator from an Iterator . |
Method Summary | |
---|---|
K |
key()
The method is the same as in Iterator.key() . |
boolean |
more()
The method is the same as in Iterator.more() . |
void |
step()
The method is the same as in Iterator.step() . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleIterator(Iterator<K,?> i)
Iterator
.
i
- The iterator that will provide the keys for
the newly created SimpleIterator.Method Detail |
---|
public void step()
Iterator.step()
.
public boolean more()
Iterator.more()
.
public K key()
Iterator.key()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |