|
SynSoft Java Standard Library |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.synsoft.base.InOutParameter
This class represents a proxy to a reference for an object, providing a simple generic mechanism for implementing true call-by-reference semantics with Java class methods.
Field Summary | |
protected java.lang.Object |
m_object
The actual reference to the object. |
static Version |
scm_version
Constant instance of version information for class. |
Constructor Summary | |
InOutParameter()
Constructs an empty object InOutParameter. |
|
InOutParameter(java.lang.Object object)
Constructs the object InOutParameter on the given object |
Method Summary | |
java.lang.Object |
getReference()
Gets the object reference |
int |
hashCode()
Returns a hash code value for the object This function actually returns the hashCode() result of the referent |
void |
setReference(java.lang.Object object)
Sets the object reference |
static void |
swap(InOutParameter p1,
InOutParameter p2)
Swaps the reference of two InOutParameter objects |
java.lang.Object |
swapReference(java.lang.Object object)
Sets the object reference, and returns the previous reference |
java.lang.String |
toString()
Returns a string representation of the object This function actually returns the toString() result of the referent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object m_object
public static final Version scm_version
Constructor Detail |
public InOutParameter()
public InOutParameter(java.lang.Object object)
object
- The object on which to hold a InOutParameterMethod Detail |
public void setReference(java.lang.Object object)
object
- The object on which to hold a referencepublic final java.lang.Object getReference()
public java.lang.Object swapReference(java.lang.Object object)
object
- The object on which to hold a referencepublic static void swap(InOutParameter p1, InOutParameter p2)
p1
- The first object ref (its contents will be swapped with those of p2)p2
- The second object ref (its contents will be swapped with those of p1)public final java.lang.String toString()
toString
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
|
version 2.0.1.231 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |