Package org.robovm.apple.foundation
Class NSNumber
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSValue
-
- org.robovm.apple.foundation.NSNumber
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSPropertyList
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
NSDecimalNumber
public class NSNumber extends NSValue implements NSPropertyList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSNumber.NSNumberPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSValue
NSValue.NSValuePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NSNumber(NSObject.Handle h, long handle)
protected
NSNumber(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
booleanValue()
byte
byteValue()
char
charValue()
NSComparisonResult
compare(NSNumber otherNumber)
NSDecimal
decimalValue()
double
doubleValue()
boolean
equalsTo(NSNumber number)
float
floatValue()
int
intValue()
long
longValue()
short
shortValue()
java.lang.String
stringValue()
java.lang.String
toString(NSLocale locale)
static NSNumber
valueOf(boolean value)
static NSNumber
valueOf(byte value)
static NSNumber
valueOf(char value)
static NSNumber
valueOf(double value)
static NSNumber
valueOf(float value)
static NSNumber
valueOf(int value)
static NSNumber
valueOf(long value)
static NSNumber
valueOf(short value)
static NSNumber
valueOf(java.lang.Number value)
-
Methods inherited from class org.robovm.apple.foundation.NSValue
affineTransformValue, coordinateValue, edgeInsetsValue, encode, equalsTo, getCoordinateSpanValue, getObjCType, getValue, getValue, getValue, init, objectValue, offsetValue, pointerValue, pointValue, rangeValue, rectValue, SCNMatrix4Value, SCNVector3Value, SCNVector4Value, sizeValue, supportsSecureCoding, timeMappingValue, timeRangeValue, timeValue, transform3DValue, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSNumber
protected NSNumber(NSObject.Handle h, long handle)
-
NSNumber
protected NSNumber(NSObject.SkipInit skipInit)
-
-
Method Detail
-
byteValue
public byte byteValue()
-
shortValue
public short shortValue()
-
charValue
public char charValue()
-
intValue
public int intValue()
-
longValue
public long longValue()
-
floatValue
public float floatValue()
-
doubleValue
public double doubleValue()
-
booleanValue
public boolean booleanValue()
-
stringValue
public java.lang.String stringValue()
-
decimalValue
public NSDecimal decimalValue()
-
valueOf
public static NSNumber valueOf(java.lang.Number value)
-
compare
public NSComparisonResult compare(NSNumber otherNumber)
-
equalsTo
public boolean equalsTo(NSNumber number)
-
toString
public java.lang.String toString(NSLocale locale)
-
valueOf
public static NSNumber valueOf(byte value)
-
valueOf
public static NSNumber valueOf(short value)
-
valueOf
public static NSNumber valueOf(char value)
-
valueOf
public static NSNumber valueOf(int value)
-
valueOf
public static NSNumber valueOf(long value)
-
valueOf
public static NSNumber valueOf(float value)
-
valueOf
public static NSNumber valueOf(double value)
-
valueOf
public static NSNumber valueOf(boolean value)
-
-