|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.Boxed
public class Boxed
A mechanism to wrap opaque structures registered by the type system.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Check if two objects refer to the same (native) object. |
static Boxed |
getBoxedFromHandle(org.gnu.glib.Handle hndl)
Gets a Boxed instance for the given Handle. |
int |
hashCode()
Returns a hash code value for the object. |
| Methods inherited from class org.gnu.glib.Struct |
|---|
getHandle, getNullHandle |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Boxed getBoxedFromHandle(org.gnu.glib.Handle hndl)
// Get a Handle from somewhere (typically as a parameter to a method
// used as a callback and invoked from the C JNI side).
SomeGtkClass finalobj = null;
Boxed obj = Boxed.getBoxedFromHandle(handle);
if (obj == null) {
finalobj = new SomeGtkClass(handle);
} else {
finalobj = (SomeGtkClass) obj;
}
NOTE: This is for internal use only and should never need to be used in
application code.
public boolean equals(java.lang.Object other)
equals in class org.gnu.glib.Structother - the reference object with which to compare.
public int hashCode()
hashCode in class org.gnu.glib.Struct
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||