org.gnu.glib

Class Boxed

Known Direct Subclasses:
AccelKey, AccelMap, ActionEntry, Atom, Attribute, AttrIterator, BindingSet, Border, Clipboard, Color, Color, Coverage, Cursor, Error, Event, EventAny, EventButton, EventClient, EventConfigure, EventCrossing, EventDND, EventExpose, EventFocus, EventKey, EventMotion, EventNoExpose, EventOwnerChange, EventProperty, EventProximity, EventScroll, EventSelection, EventSetting, EventVisibility, EventWindowState, FontDescription, FontMetrics, GlyphString, IconInfo, IconSet, IconSource, ImageAnimationData, ImageIconSetData, ImageImageData, ImagePixbufData, ImagePixmapData, ImageStockData, ItemFactoryEntry, KeymapKey, Language, LayoutLine, List, Pango, PixbufAnimation, PixbufAnimationIter, PixbufFormat, Point, Property, Quark, RadioActionEntry, Rc, RcProperty, Rectangle, Rectangle, Region, Requisition, RgbCmap, Segment, Span, State, TabArray, TargetEntry, TextAppearance, TextAttributes, TextIter, TextLine, TextLineData, ToggleActionEntry, ToolTipsData, TreeIter, TreePath, Value, WidgetAuxInfo

public class Boxed
extends java.lang.Object

Base class for all classes resulting from a define-boxed in a .defs file.

Field Summary

protected Handle
handle
holder for the raw GLib/GTK pointer

Constructor Summary

Boxed()
This class is only instantiable via subclasses.
Boxed(Handle handle)

Method Summary

boolean
equals(Object other)
Check if two objects refer to the same (native) object.
Handle
getHandle()
Get the raw handle value.
int
hashCode()
Returns a hash code value for the object.
protected void
setHandle(Handle handle)

Field Details

handle

protected Handle handle
holder for the raw GLib/GTK pointer

Constructor Details

Boxed

protected Boxed()
This class is only instantiable via subclasses.


Boxed

protected Boxed(Handle handle)

Method Details

equals

public boolean equals(Object other)
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.


getHandle

public final Handle getHandle()
Get the raw handle value.

Returns:
the handle value.


hashCode

public int hashCode()
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.


setHandle

protected void setHandle(Handle handle)