org.rococoa
Class ID
java.lang.Object
java.lang.Number
com.sun.jna.IntegerType
com.sun.jna.NativeLong
org.rococoa.ID
- All Implemented Interfaces:
- com.sun.jna.NativeMapped, java.io.Serializable
- Direct Known Subclasses:
- Rococoa.ProxyID
public class ID
- extends com.sun.jna.NativeLong
Represents an Objective-C ID.
This extends NativeLong for efficiency, but you should really think of it
as opaque.
Technically, this should be Native.POINTER_SIZE
not Native.LONG_SIZE
,
but as they are both 32 on 32-bit and 64 on 64-bit we'll gloss over that. Ideally
it would be Pointer, but they have no protected constructors.
- See Also:
- Serialized Form
Fields inherited from class com.sun.jna.NativeLong |
SIZE |
Constructor Summary |
|
ID()
|
protected |
ID(ID anotherID)
|
protected |
ID(long value)
|
Methods inherited from class com.sun.jna.IntegerType |
doubleValue, equals, floatValue, fromNative, hashCode, intValue, longValue, nativeType, setValue, toNative |
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ID
public ID()
ID
protected ID(long value)
ID
protected ID(ID anotherID)
fromLong
public static ID fromLong(long value)
toString
public java.lang.String toString()
- Overrides:
toString
in class com.sun.jna.IntegerType
isNull
public boolean isNull()
getGlobal
public static ID getGlobal(java.lang.String libraryName,
java.lang.String globalVarName)
Copyright © 2009. All Rights Reserved.