net.sf.molae.pipe.genimpl
Class KeySetIteratorBasedMap.KeySet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<K>
          extended by net.sf.molae.pipe.genimpl.KeySetIteratorBasedMap.KeySet
All Implemented Interfaces:
Iterable<K>, Collection<K>, Set<K>
Enclosing class:
KeySetIteratorBasedMap<K,V>

protected class KeySetIteratorBasedMap.KeySet
extends AbstractSet<K>

Provides a standard implementation of the key set of the map.


Constructor Summary
protected KeySetIteratorBasedMap.KeySet()
           
 
Method Summary
 Iterator<K> iterator()
          Returns an iterator over the elements in this set.
 int size()
          Returns the size of the enclosing class.
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Constructor Detail

KeySetIteratorBasedMap.KeySet

protected KeySetIteratorBasedMap.KeySet()
Method Detail

size

public int size()
Returns the size of the enclosing class.

Specified by:
size in interface Collection<K>
Specified by:
size in interface Set<K>
Specified by:
size in class AbstractCollection<K>
Returns:
the size of the enclosing class

iterator

public Iterator<K> iterator()
Returns an iterator over the elements in this set. This implementation calls KeySetIteratorBasedMap.getKeySetIterator() of the enclosing class.

Specified by:
iterator in interface Iterable<K>
Specified by:
iterator in interface Collection<K>
Specified by:
iterator in interface Set<K>
Specified by:
iterator in class AbstractCollection<K>
Returns:
an iterator over the elements in this set.