public static class CoreFoundation.CFNumberRef extends CoreFoundation.CFTypeRef
CFNumber
object.Constructor and Description |
---|
CFNumberRef() |
CFNumberRef(Pointer p) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Convert this
CFNumber to a byte . |
double |
doubleValue()
Convert this
CFNumber to a double . |
float |
floatValue()
Convert this
CFNumber to a float . |
int |
intValue()
Convert this
CFNumber to an int . |
long |
longValue()
Convert this
CFNumber to a long . |
short |
shortValue()
Convert this
CFNumber to a short . |
getTypeID, isTypeID, release, retain
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
public CFNumberRef()
public CFNumberRef(Pointer p)
public long longValue()
CFNumber
to a long
.
This method assumes a 64-bit integer is stored and does not do type checking.
Users should use CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type
conversion. If this object's type differs from the return type, and the
conversion is lossy or the return value is out of range, then this method
returns an approximate value.
long
public int intValue()
CFNumber
to an int
.
This method assumes a 32-bit integer is stored and does not do type checking.
Users should use CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type
conversion. If this object's type differs from the return type, and the
conversion is lossy or the return value is out of range, then this method
returns an approximate value.
int
public short shortValue()
CFNumber
to a short
.
This method assumes a 16-bit integer is stored and does not do type checking.
Users should use CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type
conversion. If this object's type differs from the return type, and the
conversion is lossy or the return value is out of range, then this method
returns an approximate value.
short
public byte byteValue()
CFNumber
to a byte
.
This method assumes an 8-bit integer is stored and does not do type checking.
Users should use CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the appropriate type
conversion. If this object's type differs from the return type, and the
conversion is lossy or the return value is out of range, then this method
returns an approximate value.
byte
public double doubleValue()
CFNumber
to a double
.
This method assumes a 64-bit floating point value is stored and does not do
type checking. Users should use CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the
appropriate type conversion. If this object's type differs from the return
type, and the conversion is lossy or the return value is out of range, then
this method returns an approximate value.
double
public float floatValue()
CFNumber
to a float
.
This method assumes a 32-bit floating point value is stored and does not do
type checking. Users should use CoreFoundation.CFNumberGetType(com.sun.jna.platform.mac.CoreFoundation.CFNumberRef)
to determine the
appropriate type conversion. If this object's type differs from the return
type, and the conversion is lossy or the return value is out of range, then
this method returns an approximate value.
float