Package org.apache.commons.collections
Class FastTreeMap.CollectionView
- java.lang.Object
-
- org.apache.commons.collections.FastTreeMap.CollectionView
-
- All Implemented Interfaces:
java.lang.Iterable
,java.util.Collection
- Direct Known Subclasses:
FastTreeMap.EntrySet
,FastTreeMap.KeySet
,FastTreeMap.Values
- Enclosing class:
- FastTreeMap
private abstract class FastTreeMap.CollectionView extends java.lang.Object implements java.util.Collection
Abstract collection implementation shared by keySet(), values() and entrySet().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
FastTreeMap.CollectionView.CollectionViewIterator
-
Constructor Summary
Constructors Constructor Description CollectionView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 interfacejava.util.Collection
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Collection
-
removeAll
public boolean removeAll(java.util.Collection o)
- Specified by:
removeAll
in interfacejava.util.Collection
-
retainAll
public boolean retainAll(java.util.Collection o)
- Specified by:
retainAll
in interfacejava.util.Collection
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection
-
containsAll
public boolean containsAll(java.util.Collection o)
- Specified by:
containsAll
in interfacejava.util.Collection
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] o)
- Specified by:
toArray
in interfacejava.util.Collection
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Collection
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection
- Overrides:
hashCode
in classjava.lang.Object
-
add
public boolean add(java.lang.Object o)
- Specified by:
add
in interfacejava.util.Collection
-
addAll
public boolean addAll(java.util.Collection c)
- Specified by:
addAll
in interfacejava.util.Collection
-
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interfacejava.util.Collection
- Specified by:
iterator
in interfacejava.lang.Iterable
-
-