|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eaio.nativecall.Holder
Holder is a class that encapsulates another Object. Use this class for output parameters.
Constructor Summary | |
Holder(Object o)
Constructor for Holder. |
Method Summary | |
boolean |
equals(Object obj)
Returns if this Object is equal to another Object. |
Object |
get()
Returns the referenced Object. |
int |
hashCode()
Returns the hashCode of the encapsulated Object or Object.hashCode() if the Object is null . |
String |
toString()
Returns a String representation of this Object. |
StringBuffer |
toStringBuffer(StringBuffer in)
Appends a String representation of this Object to the given StringBuffer or creates a new one if none is given. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Holder(Object o)
o
- the Object to encapsulate, may be null
, but cannot
be of type Holder
ClassCastException
- if o is of type HolderMethod Detail |
public final Object get()
public int hashCode()
Object.hashCode()
if the Object is null
.
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
obj
- the other Object, may be null
Object.equals(java.lang.Object)
public final String toString()
toString
in class Object
null
Object.toString()
,
toStringBuffer(StringBuffer)
public StringBuffer toStringBuffer(StringBuffer in)
StringBuffer
or creates a new one if none is given.
in
- the StringBuffer to append to, may be null
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |