public interface IPool<T>
Care must be taken by users that object sharing is appropriate for their application. It is easy to "over share" objects leading to unexpected and difficult to debug behaviour.
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
T |
add(T newObject)
Returns the first object from this pool which is equal to the given object.
|
T add(T newObject)
null
,
null
is returned.newObject
- the object to addnull
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.