public class WeakPool<T> extends Object implements IPool<T>
Since WeakReference are not particularly light-weight, a client could use a StrongPool
if the pool will be short lived and explicitly nulled by the client.
| Constructor and Description |
|---|
WeakPool() |
| Modifier and Type | Method and Description |
|---|---|
T |
add(T newObject)
Returns the first object from this pool which is equal to the given object.
|
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.