|
Eclipse Platform Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.equinox.p2.core.StrongPool<T>
public class StrongPool<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
.
Constructor Summary | |
---|---|
StrongPool()
|
Method Summary | |
---|---|
T |
add(T newObject)
Returns the first object from this pool which is equal to the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrongPool()
Method Detail |
---|
public T add(T newObject)
IPool
null
,
null
is returned.
add
in interface IPool<T>
newObject
- the object to add
null
|
Eclipse Platform Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.