|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfabric.lang.Object._Proxy
public static class Object._Proxy
_Proxy objects behave like regular objects by delegating to _Impl objects, pointed to by a soft reference. This class abstracts away the code for maintaining that soft reference.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fabric.lang.Object |
---|
Object._Impl, Object._Proxy, Object._Static |
Constructor Summary | |
---|---|
Object._Proxy(Object._Impl impl)
|
|
Object._Proxy(Store store,
long onum)
|
Method Summary | |
---|---|
static void |
_npe(Label lbl)
A dummy method. |
void |
$forceRenumber(long onum)
Deprecated. |
long |
$getOnum()
The object's onum. |
Object._Proxy |
$getProxy()
A proxy for this object. |
static java.lang.Object |
$getProxy(java.lang.Object o)
|
Store |
$getStore()
The store where the object resides. |
java.lang.Object |
$unwrap()
Unwraps a wrapped Java inlineable. |
Statistics |
createStatistics()
Creates a Statistics object to determine promises for this Object. |
boolean |
equals(java.lang.Object arg1)
A delegate for the default equals implementation. |
boolean |
equals(Object arg1)
A delegate for the default equals implementation. |
Object._Impl |
fetch()
Fetches the object if this is a proxy; returns itself if it's an impl. |
Label |
get$label()
Label for this object |
int |
hashCode()
A delegate for the default hashcode implementation. |
boolean |
idEquals(Object other)
Whether this object has the same identity as another object. |
static boolean |
idEquals(java.lang.Object o1,
java.lang.Object o2)
return true if o1 and o2 are objects with the same identity. |
java.lang.String |
toString()
A delegate for the default toString implementation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Object._Proxy(Store store, long onum)
public Object._Proxy(Object._Impl impl)
Method Detail |
---|
public final Object._Impl fetch()
Object
fetch
in interface Object
public final Store $getStore()
Object
$getStore
in interface Object
public final long $getOnum()
Object
$getOnum
in interface Object
public final boolean idEquals(Object other)
Object
idEquals
in interface Object
public final Label get$label()
Object
get$label
in interface Object
public final Object._Proxy $getProxy()
Object
$getProxy
in interface Object
public final java.lang.Object $unwrap()
Object
$unwrap
in interface Object
public static final java.lang.Object $getProxy(java.lang.Object o)
public static final boolean idEquals(java.lang.Object o1, java.lang.Object o2)
public boolean equals(java.lang.Object arg1)
equals
in class java.lang.Object
public boolean equals(Object arg1)
equals
in interface Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final void $forceRenumber(long onum)
This method changes the onum of the object. Unless if you really know what you're doing, you should not call this, as it leaves the system in an inconsistent state.
This method is used to initialize object databases with objects at well-known onums (e.g., naming map and store principal).
$forceRenumber
in interface Object
public Statistics createStatistics()
Object
createStatistics
in interface Object
public static void _npe(Label lbl) throws java.lang.NullPointerException
java.lang.NullPointerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |