org.apache.felix.framework.util
Class ShrinkableCollection
Object
org.apache.felix.framework.util.ShrinkableCollection
- All Implemented Interfaces:
- Iterable, Collection
public class ShrinkableCollection
- extends Object
- implements Collection
This collection wraps any other collection but prohibits calls to add
elements to the collection.
Methods inherited from class Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ShrinkableCollection
public ShrinkableCollection(Collection delegate)
add
public boolean add(Object o)
- Specified by:
add
in interface Collection
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interface Collection
clear
public void clear()
- Specified by:
clear
in interface Collection
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll
in interface Collection
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection
- Overrides:
hashCode
in class Object
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll
in interface Collection
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll
in interface Collection
size
public int size()
- Specified by:
size
in interface Collection
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interface Collection