org.apache.commons.collections.map
Class AbstractHashedMap.EntrySet<K,V>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<Map.Entry<K,V>>
          extended by org.apache.commons.collections.map.AbstractHashedMap.EntrySet<K,V>
All Implemented Interfaces:
Iterable<Map.Entry<K,V>>, Collection<Map.Entry<K,V>>, Set<Map.Entry<K,V>>
Enclosing class:
AbstractHashedMap<K,V>

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

EntrySet implementation.


Field Summary
protected  AbstractHashedMap<K,V> parent
          The parent map
 
Constructor Summary
protected AbstractHashedMap.EntrySet(AbstractHashedMap<K,V> parent)
           
 
Method Summary
 void clear()
           
 boolean contains(Map.Entry<K,V> entry)
           
 Iterator<Map.Entry<K,V>> iterator()
           
 boolean remove(Object obj)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, contains, containsAll, isEmpty, 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, contains, containsAll, isEmpty, retainAll, toArray, toArray
 

Field Detail

parent

protected final AbstractHashedMap<K,V> parent
The parent map

Constructor Detail

AbstractHashedMap.EntrySet

protected AbstractHashedMap.EntrySet(AbstractHashedMap<K,V> parent)
Method Detail

size

public int size()
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>>

clear

public void clear()
Specified by:
clear in interface Collection<Map.Entry<K,V>>
Specified by:
clear in interface Set<Map.Entry<K,V>>
Overrides:
clear in class AbstractCollection<Map.Entry<K,V>>

contains

public boolean contains(Map.Entry<K,V> entry)

remove

public boolean remove(Object obj)
Specified by:
remove in interface Collection<Map.Entry<K,V>>
Specified by:
remove in interface Set<Map.Entry<K,V>>
Overrides:
remove in class AbstractCollection<Map.Entry<K,V>>

iterator

public Iterator<Map.Entry<K,V>> iterator()
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>>


Copyright © 2005-2005 Apache Software Foundation, Matt Hall, John Watkinson. All Rights Reserved.