Class CoreFoundation.CFNumberRef
- java.lang.Object
- 
- com.sun.jna.PointerType
- 
- com.sun.jna.platform.mac.CoreFoundation.CFTypeRef
- 
- com.sun.jna.platform.mac.CoreFoundation.CFNumberRef
 
 
 
- 
- All Implemented Interfaces:
- NativeMapped
 - Enclosing interface:
- CoreFoundation
 
 public static class CoreFoundation.CFNumberRef extends CoreFoundation.CFTypeRef A reference to aCFNumberobject.
- 
- 
Constructor SummaryConstructors Constructor Description CFNumberRef()CFNumberRef(Pointer p)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue()Convert thisCFNumberto abyte.doubledoubleValue()Convert thisCFNumberto adouble.floatfloatValue()Convert thisCFNumberto afloat.intintValue()Convert thisCFNumberto anint.longlongValue()Convert thisCFNumberto along.shortshortValue()Convert thisCFNumberto ashort.- 
Methods inherited from class com.sun.jna.platform.mac.CoreFoundation.CFTypeRefgetTypeID, isTypeID, release, retain
 - 
Methods inherited from class com.sun.jna.PointerTypeequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
CFNumberRefpublic CFNumberRef() 
 - 
CFNumberRefpublic CFNumberRef(Pointer p) 
 
- 
 - 
Method Detail- 
longValuepublic long longValue() Convert thisCFNumberto along.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.- Returns:
- The corresponding long
 
 - 
intValuepublic int intValue() Convert thisCFNumberto anint.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.- Returns:
- The corresponding int
 
 - 
shortValuepublic short shortValue() Convert thisCFNumberto ashort.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.- Returns:
- The corresponding short
 
 - 
byteValuepublic byte byteValue() Convert thisCFNumberto abyte.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.- Returns:
- The corresponding byte
 
 - 
doubleValuepublic double doubleValue() Convert thisCFNumberto adouble.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.- Returns:
- The corresponding double
 
 - 
floatValuepublic float floatValue() Convert thisCFNumberto afloat.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.- Returns:
- The corresponding float
 
 
- 
 
-