net.sf.molae.pipe.basic
Class AbstractMapWithSet.EntrySet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<Map.Entry<K,V>>
          extended by net.sf.molae.pipe.basic.AbstractMapWithSet.EntrySet
All Implemented Interfaces:
Iterable<Map.Entry<K,V>>, Collection<Map.Entry<K,V>>, Set<Map.Entry<K,V>>
Enclosing class:
AbstractMapWithSet<K,V>

protected class AbstractMapWithSet.EntrySet
extends AbstractSet<Map.Entry<K,V>>

Provides a standard implementation of an entry set for a map.


Constructor Summary
protected AbstractMapWithSet.EntrySet()
           
 
Method Summary
 Iterator<Map.Entry<K,V>> 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

AbstractMapWithSet.EntrySet

protected AbstractMapWithSet.EntrySet()
Method Detail

size

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

Specified by:
size in interface Collection<Map.Entry<K,V>>
Specified by:
size in interface Set<Map.Entry<K,V>>
Specified by:
size in class AbstractCollection<Map.Entry<K,V>>
Returns:
the size of the enclosing class

iterator

public Iterator<Map.Entry<K,V>> iterator()
Returns an iterator over the elements in this set. This implementation calls AbstractMapWithSet.getEntrySetIterator() of the enclosing class.

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