MetaDone
metadone.util.KeyIterator< K, V > Class Reference
Inheritance diagram for metadone.util.KeyIterator< K, V >:
Collaboration diagram for metadone.util.KeyIterator< K, V >:

List of all members.

Classes

class  ClassKeyIterator< E >

Public Member Functions

 KeyIterator (K cl, Map< K, V > map)
boolean hasNext ()
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>()
next = null
last = null

Detailed Description

A collection of elements extracted from a map using the given class and all its super-types and iterfaces.

Author:
Krzysztof Magusiak
Parameters:
<K>The type of the keys
<V>The type of the elements

Constructor & Destructor Documentation

metadone.util.KeyIterator< K, V >.KeyIterator ( cl,
Map< K, V >  map 
)

Initializes the collection.

Parameters:
clThe class
mapThe map from which the values are taken

Member Function Documentation

final void metadone.util.KeyIterator< K, V >.addNext ( key) [protected]

Adds a next key to check to this iterator.

Parameters:
keyThe key to add
abstract void metadone.util.KeyIterator< K, V >.findNext ( key) [protected, pure virtual]

Finds the next keys to add.

Parameters:
keyThe currently used key
boolean metadone.util.KeyIterator< K, V >.hasNext ( )
V metadone.util.KeyIterator< K, V >.next ( )
void metadone.util.KeyIterator< K, V >.remove ( )

Member Data Documentation

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]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations