Class SimpleIterator<K>

java.lang.Object
  extended by SimpleIterator<K>
Type Parameters:
K - The type of the keys.

public class SimpleIterator<K>
extends java.lang.Object

A SimpleIterator only iterates over the keys, but hides the data associated to the keys.

Author:
Rossmanith

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

SimpleIterator

public SimpleIterator(Iterator<K,?> i)
Creates a new SimpleIterator from an Iterator.

Parameters:
i - The iterator that will provide the keys for the newly created SimpleIterator.
Method Detail

step

public void step()
The method is the same as in Iterator.step().


more

public boolean more()
The method is the same as in Iterator.more().


key

public K key()
The method is the same as in Iterator.key().