net.sf.molae.pipe.genimpl
Class KeySetIteratorBasedMap.KeySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<K>
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.
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.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
KeySetIteratorBasedMap.KeySet
protected KeySetIteratorBasedMap.KeySet()
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.