|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface ReferenceHolder
provides an interface, or a handle,
to retrieving and setting the value of an object. Implementing this interface
is useful when multiple objects need a shared view of the same object. By
using a ReferenceHolder
, when one object manipulates its view of
the shared objects, all other objects, using a ReferenceHolder
,
will see that updated view of the object.
The ReferenceHolder
interface essentially provides support for
pass-by-reference.
Supported API: true
Extendable: true
Method Summary | |
Object |
getObject()
Implemented to get the value of the Object maintained by this reference. |
void |
setObject(Object obj)
Implemented to set the value of the Object maintained by this reference. |
Method Detail |
public void setObject(Object obj)
Object
maintained by this reference.
public Object getObject()
Object
maintained by this reference.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |