|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.runtime.EntityRef
public class EntityRef
Stores a reference to a (possibly remote) Entity object. A reference consists of a serialized reference to a Controller and an index within that Controller.
| Field Summary | |
|---|---|
static EntityRef |
NULL
NULL reference constant. |
| Constructor Summary | |
|---|---|
EntityRef(int index)
Initialise a new entity reference with given Controller and Entity IDs. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Test object equality. |
java.lang.Class |
getClassRef()
Return class of referenced entity. |
ControllerRemote |
getController()
Return controller of referenced entity. |
int |
getIndex()
Return index of referenced entity. |
int |
hashCode()
Return entity reference hashcode. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Called whenever a proxy entity reference is invoked. |
java.lang.String |
toString()
Return toString of referenced entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final EntityRef NULL
| Constructor Detail |
|---|
public EntityRef(int index)
index - entity ID| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object to test equality
public ControllerRemote getController()
public int getIndex()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class getClassRef()
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerproxy - proxy entity reference object whose method was invokedmethod - method invoked on entity reference objectargs - arguments of the method invocation
java.lang.Throwable - whatever was thrown by blocking events; never for non-blocking events
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||