public static class ERXUnitAwareDecimalFormat.UnitPrefix extends Object implements NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
Modifier and Type | Field and Description |
---|---|
protected double |
multiplyingFactor |
protected String |
unitName |
protected String |
unitSymbol |
_CLASS, NullValue
Constructor and Description |
---|
UnitPrefix(String unitSymbol,
String unitName,
double multiplyingFactor) |
Modifier and Type | Method and Description |
---|---|
double |
adjustScale(double number) |
double |
adjustScale(long number) |
static ERXUnitAwareDecimalFormat.UnitPrefix |
findAppropriatePrefix(double number,
NSArray unitPrefixArray) |
double |
multiplyingFactor() |
void |
takeValueForKey(Object value,
String key) |
String |
toString() |
String |
unitName() |
static NSArray |
unitPrefixArrayForUnit(String unitName) |
String |
unitSymbol() |
Object |
valueForKey(String key) |
protected final String unitSymbol
protected final String unitName
protected final double multiplyingFactor
public String unitSymbol()
public String unitName()
public double multiplyingFactor()
public double adjustScale(double number)
public double adjustScale(long number)
public static ERXUnitAwareDecimalFormat.UnitPrefix findAppropriatePrefix(double number, NSArray unitPrefixArray)
public Object valueForKey(String key)
valueForKey
in interface NSKeyValueCoding
public void takeValueForKey(Object value, String key)
takeValueForKey
in interface NSKeyValueCoding
Copyright © 2002 – 2024 Project Wonder.