net.sf.molae.pipe.basic
Class AbstractMapWithSet.EntrySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<Map.Entry<K,V>>
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.
Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
AbstractMapWithSet.EntrySet
protected AbstractMapWithSet.EntrySet()
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.