org.rococoa
Class ID

java.lang.Object
  extended by java.lang.Number
      extended by com.sun.jna.IntegerType
          extended by com.sun.jna.NativeLong
              extended by 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

Field Summary
 
Fields inherited from class com.sun.jna.NativeLong
SIZE
 
Constructor Summary
  ID()
           
protected ID(ID anotherID)
           
protected ID(long value)
           
 
Method Summary
static ID fromLong(long value)
           
static ID getGlobal(java.lang.String libraryName, java.lang.String globalVarName)
           
 boolean isNull()
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

ID

public ID()

ID

protected ID(long value)

ID

protected ID(ID anotherID)
Method Detail

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.