public final class NativeObjectHandles extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeObjectHandles.InvalidHandleException
An exception thrown when an invalid handle is resolved.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
create(Object object)
Creates a handle for the
object. |
static void |
remove(long handle)
Removes a handle.
|
static <T> T |
resolve(long handle,
Class<T> type)
Resolves a handle into an object.
|
public static long create(Object object)
public static <T> T resolve(long handle,
Class<T> type)
NativeObjectHandles.InvalidHandleException - if the handle is either already removed or invalid.public static void remove(long handle)
handle to be garbage collected.