org.apache.commons.collections.bidimap
Class AbstractDualBidiMap.KeySet<K,V>

java.lang.Object
  extended by org.apache.commons.collections.collection.AbstractCollectionDecorator<E>
      extended by org.apache.commons.collections.bidimap.AbstractDualBidiMap.View<K,V,K>
          extended by org.apache.commons.collections.bidimap.AbstractDualBidiMap.KeySet<K,V>
All Implemented Interfaces:
Iterable<K>, Collection<K>, Set<K>
Enclosing class:
AbstractDualBidiMap<K,V>

protected static class AbstractDualBidiMap.KeySet<K,V>
extends AbstractDualBidiMap.View<K,V,K>
implements Set<K>

Inner class KeySet.


Field Summary
 
Fields inherited from class org.apache.commons.collections.bidimap.AbstractDualBidiMap.View
parent
 
Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator
collection
 
Constructor Summary
protected AbstractDualBidiMap.KeySet(AbstractDualBidiMap<K,V> parent)
          Constructs a new view of the BidiMap.
 
Method Summary
 boolean contains(Object key)
           
 Iterator<K> iterator()
           
 boolean remove(Object key)
           
 
Methods inherited from class org.apache.commons.collections.bidimap.AbstractDualBidiMap.View
clear, removeAll, retainAll
 
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator
add, addAll, containsAll, equals, getCollection, hashCode, isEmpty, size, 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, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

AbstractDualBidiMap.KeySet

protected AbstractDualBidiMap.KeySet(AbstractDualBidiMap<K,V> parent)
Constructs a new view of the BidiMap.

Parameters:
parent - the parent BidiMap
Method Detail

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>
Overrides:
iterator in class AbstractCollectionDecorator<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 AbstractCollectionDecorator<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 AbstractCollectionDecorator<K>


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