org.apache.commons.collections
Class FastHashMap.CollectionView

java.lang.Object
  |
  +--org.apache.commons.collections.FastHashMap.CollectionView
All Implemented Interfaces:
java.util.Collection
Direct Known Subclasses:
FastHashMap.EntrySet, FastHashMap.KeySet, FastHashMap.Values
Enclosing class:
FastHashMap

private abstract class FastHashMap.CollectionView
extends java.lang.Object
implements java.util.Collection

Abstract collection implementation shared by keySet(), values() and entrySet().


Nested Class Summary
private  class FastHashMap.CollectionView.CollectionViewIterator
           
 
Constructor Summary
FastHashMap.CollectionView()
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 boolean addAll(java.util.Collection c)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection o)
           
 boolean equals(java.lang.Object o)
           
protected abstract  java.util.Collection get(java.util.Map map)
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
protected abstract  java.lang.Object iteratorNext(java.util.Map.Entry entry)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection o)
           
 boolean retainAll(java.util.Collection o)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastHashMap.CollectionView

public FastHashMap.CollectionView()
Method Detail

get

protected abstract java.util.Collection get(java.util.Map map)

iteratorNext

protected abstract java.lang.Object iteratorNext(java.util.Map.Entry entry)

clear

public void clear()
Specified by:
clear in interface java.util.Collection

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection

removeAll

public boolean removeAll(java.util.Collection o)
Specified by:
removeAll in interface java.util.Collection

retainAll

public boolean retainAll(java.util.Collection o)
Specified by:
retainAll in interface java.util.Collection

size

public int size()
Specified by:
size in interface java.util.Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection

containsAll

public boolean containsAll(java.util.Collection o)
Specified by:
containsAll in interface java.util.Collection

toArray

public java.lang.Object[] toArray(java.lang.Object[] o)
Specified by:
toArray in interface java.util.Collection

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection
Overrides:
hashCode in class java.lang.Object

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Collection

addAll

public boolean addAll(java.util.Collection c)
Specified by:
addAll in interface java.util.Collection

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.Collection


Copyright (c) 2001-2004 - Apache Software Foundation