Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.gnu.glib.Struct
org.gnu.glib.Boxed
public class Boxed
extends Struct
Constructor Summary | |
| |
Method Summary | |
boolean |
|
protected void |
|
static Boxed |
|
int |
|
Methods inherited from class org.gnu.glib.Struct | |
equals , getHandle , getNullHandle , hashCode , setHandle |
protected Boxed()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
This class is only instantiable via subclasses.
public boolean equals(Object other)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Check if two objects refer to the same (native) object.
- Parameters:
other
- the reference object with which to compare.
- Returns:
- true if both objects refer to the same object.
protected void finalize() throws Throwable
public static Boxed getBoxedFromHandle(Handle hndl)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets a Boxed instance for the given Handle. If no Java object currently exists for the given Handle, this method will return null. You should then instantiate the required Java class using the class' handle-constructor. For example:// 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 int hashCode()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns a hash code value for the object. This allows for using Boxed objects as keys in hashmaps.
- Returns:
- a hash code value for the object.