org.gnu.glib
Class Quark
A Quark is an association between a String and an integer
identifier. Given either the String or the Quark it is
possible to retrieve the other. This object is used primarily
inside of the bindings. The external interface should use a
standard java type like Property.
Quark(String string) - Create a Quark object.
|
Quark(Handle handle) - This is the method that allows one to construct a Quark
once a native peer has been provided.
|
Quark
public Quark(String string)
Create a Quark object.
string
- The string value associated with this Quark.
Quark
public Quark(Handle handle)
This is the method that allows one to construct a Quark
once a native peer has been provided.
handle
- The native peer that was returned from
a call to the native libraries.
findQuark
public static final Quark findQuark(String string)
Find a Quark that is associated with the given string.
If one is not found a null value is returned.
string
- The string value to use for the search
- The Quark value associated with the string or
null if one is not found.
g_quark_from_string
protected static final Handle g_quark_from_string(String str)
BEGINNING OF GENERATED CODE
g_quark_to_string
protected static final String g_quark_to_string(Handle quark)
g_quark_try_string
protected static final Handle g_quark_try_string(String str)
getString
public final String getString()
Retrieve the string value associated with this Quark.
- The string value