er.extensions
Class ERXUnitAwareDecimalFormat.UnitPrefix
java.lang.Object
er.extensions.ERXUnitAwareDecimalFormat.UnitPrefix
- All Implemented Interfaces:
- NSKeyValueCoding
- Enclosing class:
- ERXUnitAwareDecimalFormat
- public static class ERXUnitAwareDecimalFormat.UnitPrefix
- extends Object
- implements NSKeyValueCoding
UnitPrefix is an inner class
Nested classes inherited from class com.webobjects.foundation.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.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
unitSymbol
protected final String unitSymbol
unitName
protected final String unitName
multiplyingFactor
protected final double multiplyingFactor
ERXUnitAwareDecimalFormat.UnitPrefix
public ERXUnitAwareDecimalFormat.UnitPrefix(String unitSymbol,
String unitName,
double multiplyingFactor)
unitSymbol
public String unitSymbol()
unitName
public String unitName()
multiplyingFactor
public double multiplyingFactor()
adjustScale
public double adjustScale(double number)
adjustScale
public double adjustScale(long number)
unitPrefixArrayForUnit
public static NSArray unitPrefixArrayForUnit(String unitName)
findAppropriatePrefix
public static ERXUnitAwareDecimalFormat.UnitPrefix findAppropriatePrefix(double number,
NSArray unitPrefixArray)
valueForKey
public Object valueForKey(String key)
- Specified by:
valueForKey
in interface NSKeyValueCoding
takeValueForKey
public void takeValueForKey(Object value,
String key)
- Specified by:
takeValueForKey
in interface NSKeyValueCoding
toString
public String toString()
Copyright © 2002 – 2004 Project Wonder.