public class Value
extends org.freedesktop.bindings.Pointer
For use by bindings hackers only.
As with other classes in org.gnome.glib
, this is
implementation machinery and should not be needed by anyone developing
applications with java-gnome.
Ironically, Values are not actually type safe; if you happen to create one to hold Strings, and then call the getEnum() method on it, your program will explode (this is somewhat to the contrary of the spirit of java-gnome). These are therefore only for use from within strongly typed methods exposing a safe and sane public API. You've been warned.
Complementing the object oriented system supplied by the GLib library is
a set of foundation elements, GType
and GValue
,
the latter being defined as "a polymorphic type that can hold values of any
other type", which isn't much help, really.
Since instances of Java classes are their own identity, we do not need
to directly represent GType
and GValue
as
separate classes. We implement GType
as a characteristic that
any Value
or Object
has.