MetaDone
|
Classes | |
class | ClassKeyIterator< E > |
Public Member Functions | |
KeyIterator (K cl, Map< K, V > map) | |
boolean | hasNext () |
V | next () |
void | remove () |
Protected Member Functions | |
final void | addNext (K key) |
abstract void | findNext (K key) |
Private Attributes | |
final Map< K, V > | map |
final LinkedList< K > | todo = new LinkedList<K>() |
K | next = null |
K | last = null |
A collection of elements extracted from a map using the given class and all its super-types and iterfaces.
<K> | The type of the keys |
<V> | The type of the elements |
metadone.util.KeyIterator< K, V >.KeyIterator | ( | K | cl, |
Map< K, V > | map | ||
) |
Initializes the collection.
cl | The class |
map | The map from which the values are taken |
final void metadone.util.KeyIterator< K, V >.addNext | ( | K | key | ) | [protected] |
Adds a next key to check to this iterator.
key | The key to add |
abstract void metadone.util.KeyIterator< K, V >.findNext | ( | K | key | ) | [protected, pure virtual] |
Finds the next keys to add.
key | The currently used key |
boolean metadone.util.KeyIterator< K, V >.hasNext | ( | ) |
V metadone.util.KeyIterator< K, V >.next | ( | ) |
void metadone.util.KeyIterator< K, V >.remove | ( | ) |
K metadone.util.KeyIterator< K, V >.last = null [private] |
final Map<K, V> metadone.util.KeyIterator< K, V >.map [private] |
K metadone.util.KeyIterator< K, V >.next = null [private] |
final LinkedList<K> metadone.util.KeyIterator< K, V >.todo = new LinkedList<K>() [private] |