Package org.robovm.apple.foundation
Class NSMeasurement<T extends NSUnit>
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSMeasurement<T>
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSMeasurement<T extends NSUnit> extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 10.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSMeasurement.NSMeasurementPtr
-
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
NSMeasurement()
NSMeasurement(double doubleValue, T unit)
NSMeasurement(NSCoder decoder)
protected
NSMeasurement(NSObject.Handle h, long handle)
protected
NSMeasurement(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NSMeasurement<T>
add(NSMeasurement<T> measurement)
boolean
canBeConvertedToUnit(NSUnit unit)
NSMeasurement
convertToUnit(NSUnit unit)
void
encode(NSCoder coder)
double
getDoubleValue()
T
getUnit()
protected long
init(double doubleValue, T unit)
protected long
init(NSCoder decoder)
NSMeasurement<T>
substract(NSMeasurement<T> measurement)
static boolean
supportsSecureCoding()
-
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
-
NSMeasurement
protected NSMeasurement()
-
NSMeasurement
protected NSMeasurement(NSObject.Handle h, long handle)
-
NSMeasurement
protected NSMeasurement(NSObject.SkipInit skipInit)
-
NSMeasurement
public NSMeasurement(double doubleValue, T unit)
-
NSMeasurement
public NSMeasurement(NSCoder decoder)
-
-
Method Detail
-
getUnit
public T getUnit()
-
getDoubleValue
public double getDoubleValue()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
init
protected long init(double doubleValue, T unit)
-
canBeConvertedToUnit
public boolean canBeConvertedToUnit(NSUnit unit)
-
convertToUnit
public NSMeasurement convertToUnit(NSUnit unit)
-
add
public NSMeasurement<T> add(NSMeasurement<T> measurement)
-
substract
public NSMeasurement<T> substract(NSMeasurement<T> measurement)
-
init
protected long init(NSCoder decoder)
-
-