Package org.eclipse.equinox.p2.core
Class StrongPool<T>
- java.lang.Object
-
- org.eclipse.equinox.p2.core.StrongPool<T>
-
- All Implemented Interfaces:
IPool<T>
public class StrongPool<T> extends Object implements IPool<T>
An object pool backed by strong references. Objects stored in this pool will not be garbage collected as they refer to themselves. The client is responsible for nulling all references to the pool instance when it is no longer needed so that the contained objects can be garbage collected.If a long lived, memory managed pool is required use
WeakPool
.- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor Description StrongPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
add(T newObject)
Returns the first object from this pool which is equal to the given object.
-