Package org.robovm.apple.foundation
Class NSEnergyFormatter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSFormatter
-
- org.robovm.apple.foundation.NSEnergyFormatter
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSEnergyFormatter extends NSFormatter
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSEnergyFormatter.NSEnergyFormatterPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSFormatter
NSFormatter.NSFormatterPtr
-
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 NSEnergyFormatter()
protected
NSEnergyFormatter(NSObject.Handle h, long handle)
protected
NSEnergyFormatter(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(double value, NSEnergyFormatterUnit unit)
java.lang.String
formatJoules(double numberInJoules)
java.lang.String
formatUnit(double value, NSEnergyFormatterUnit unit)
java.lang.String
formatUnitJoules(double numberInJoules)
protected java.lang.String
formatUnitJoules(double numberInJoules, org.robovm.rt.bro.ptr.MachineSizedSIntPtr unitp)
NSNumberFormatter
getNumberFormatter()
NSFormattingUnitStyle
getUnitStyle()
boolean
isForFoodEnergyUse()
void
setForFoodEnergyUse(boolean v)
void
setNumberFormatter(NSNumberFormatter v)
void
setUnitStyle(NSFormattingUnitStyle v)
-
Methods inherited from class org.robovm.apple.foundation.NSFormatter
encode, init
-
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
-
NSEnergyFormatter
public NSEnergyFormatter()
-
NSEnergyFormatter
protected NSEnergyFormatter(NSObject.Handle h, long handle)
-
NSEnergyFormatter
protected NSEnergyFormatter(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getNumberFormatter
public NSNumberFormatter getNumberFormatter()
-
setNumberFormatter
public void setNumberFormatter(NSNumberFormatter v)
-
getUnitStyle
public NSFormattingUnitStyle getUnitStyle()
-
setUnitStyle
public void setUnitStyle(NSFormattingUnitStyle v)
-
isForFoodEnergyUse
public boolean isForFoodEnergyUse()
-
setForFoodEnergyUse
public void setForFoodEnergyUse(boolean v)
-
formatUnitJoules
public java.lang.String formatUnitJoules(double numberInJoules)
-
format
public java.lang.String format(double value, NSEnergyFormatterUnit unit)
-
formatJoules
public java.lang.String formatJoules(double numberInJoules)
-
formatUnit
public java.lang.String formatUnit(double value, NSEnergyFormatterUnit unit)
-
formatUnitJoules
protected java.lang.String formatUnitJoules(double numberInJoules, org.robovm.rt.bro.ptr.MachineSizedSIntPtr unitp)
-
-