Package org.apache.felix.framework.util
Class ShrinkableCollection<T>
java.lang.Object
org.apache.felix.framework.util.ShrinkableCollection<T>
- All Implemented Interfaces:
 Iterable<T>,Collection<T>
A collection wrapper that only permits clients to shrink the collection.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<A> A[]toArray(A[] a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray 
- 
Constructor Details
- 
ShrinkableCollection
 
 - 
 - 
Method Details
- 
add
- Specified by:
 addin interfaceCollection<T>
 - 
addAll
- Specified by:
 addAllin interfaceCollection<T>
 - 
clear
public void clear()- Specified by:
 clearin interfaceCollection<T>
 - 
contains
- Specified by:
 containsin interfaceCollection<T>
 - 
containsAll
- Specified by:
 containsAllin interfaceCollection<T>
 - 
equals
- Specified by:
 equalsin interfaceCollection<T>- Overrides:
 equalsin classObject
 - 
hashCode
public int hashCode()- Specified by:
 hashCodein interfaceCollection<T>- Overrides:
 hashCodein classObject
 - 
isEmpty
public boolean isEmpty()- Specified by:
 isEmptyin interfaceCollection<T>
 - 
iterator
 - 
remove
- Specified by:
 removein interfaceCollection<T>
 - 
removeAll
- Specified by:
 removeAllin interfaceCollection<T>
 - 
retainAll
- Specified by:
 retainAllin interfaceCollection<T>
 - 
size
public int size()- Specified by:
 sizein interfaceCollection<T>
 - 
toArray
- Specified by:
 toArrayin interfaceCollection<T>
 - 
toArray
public <A> A[] toArray(A[] a) - Specified by:
 toArrayin interfaceCollection<T>
 
 -