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

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

protected static class AbstractHashedMap.KeySet<K,V>
extends AbstractSet<K>

KeySet implementation.


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

Field Detail

parent

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

Constructor Detail

AbstractHashedMap.KeySet

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

size

public int size()
Specified by:
size in interface Collection<K>
Specified by:
size in interface Set<K>
Specified by:
size in class AbstractCollection<K>

clear

public void clear()
Specified by:
clear in interface Collection<K>
Specified by:
clear in interface Set<K>
Overrides:
clear in class AbstractCollection<K>

contains

public boolean contains(Object key)
Specified by:
contains in interface Collection<K>
Specified by:
contains in interface Set<K>
Overrides:
contains in class AbstractCollection<K>

remove

public boolean remove(Object key)
Specified by:
remove in interface Collection<K>
Specified by:
remove in interface Set<K>
Overrides:
remove in class AbstractCollection<K>

iterator

public Iterator<K> iterator()
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>


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