|
Eclipse Platform Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPool<T>
A Pool allows semantically equivalent objects to be shared. To be useful, objects added to the pool should implement a meaningful equals() method.
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.
Method Summary | |
---|---|
T |
add(T newObject)
Returns the first object from this pool which is equal to the given object. |
Method Detail |
---|
T add(T newObject)
null
,
null
is returned.
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.