|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moesol.bindings.platform_sdk.windows_api.HANDLE
public class HANDLE
An opaque HANDLE that represents a Win32 HANDLE. It is opaque from java side, only JNI can set the m_handle field, usually by calling the protected constructor. When assertions are turned on this class does leak detection.
| Constructor Summary | |
|---|---|
protected |
HANDLE(long handle)
Create a tracked handle that will report as leaked if it is finalized befre being detached. |
protected |
HANDLE(long handle,
boolean temporary)
Create a temporary handle that is not reported as leaked if finalize is called and m_handle is non-zero. |
| Method Summary | |
|---|---|
long |
_getHandle()
Returns the native handle. |
static long |
_safeGetHandle(HANDLE handle)
Returns the native handle of handle. |
void |
detach()
|
boolean |
equals(Object o)
|
static long |
getLeakCount()
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected HANDLE(long handle,
boolean temporary)
handle - temporary - - if false same as calling HANDLE(long)protected HANDLE(long handle)
handle - | Method Detail |
|---|
public long _getHandle()
public static long _safeGetHandle(HANDLE handle)
handle.
Safe to call for null handles, returns 0 in this case.
handle -
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void detach()
public static long getLeakCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||