|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.proxy.kit.SimpleReference<T>
public class SimpleReference<T>
Simple implementation for an ObjectReference
.
Constructor Summary | |
---|---|
SimpleReference(T reference)
Construct a SimpleReference. |
Method Summary | |
---|---|
T |
get()
Retrieve an actual reference to the object. |
void |
set(T item)
Assign an object to the reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleReference(T reference)
reference
- The referenced object.Method Detail |
---|
public T get()
ObjectReference
get
in interface ObjectReference<T>
public void set(T item)
ObjectReference
set
in interface ObjectReference<T>
item
- the object to assign to the reference. May be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |