ObjectHandles. The handles returned by create are bound to the
creating handle set, i.e., the handle can only be accessed and destroyed using the exact same handle set used for creation.
| Modifier and Type | Method and Description |
|---|---|
| public static ObjectHandles | |
| public ObjectHandle | |
| public void | |
| public <T> T | |
| public static ObjectHandles |
| create | back to summary |
|---|---|
| public static ObjectHandles create() Creates a new set of handles. Objects are kept alive until the returned
| |
| create | back to summary |
|---|---|
| public ObjectHandle create(Object object) Creates a handle to the specified object. The object is kept alive by the garbage collector
at least until
| |
| destroy | back to summary |
|---|---|
| public void destroy(ObjectHandle handle) Destroys the given handle. After calling this method, the handle must not be used anymore.
| |
| get | back to summary |
|---|---|
| public <T> T get(ObjectHandle handle) Extracts the object from a given handle.
| |
| getGlobal | back to summary |
|---|---|
| public static ObjectHandles getGlobal() A set of handles that is kept alive globally.
| |