edu.indiana.iucbrf.feature.format
Class NumberFeatureValueFormat
java.lang.Object
edu.indiana.iucbrf.feature.format.NumberFeatureValueFormat
- All Implemented Interfaces:
- FeatureValueFormat, java.io.Serializable
public class NumberFeatureValueFormat
- extends java.lang.Object
- implements FeatureValueFormat
This implementation of FeatureValueFormat uses a NumberFormat object to format
a Feature that has a Number for a value (such as IntegerFeature or DoubleFeature).
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
format(java.lang.Object value)
Format the given feature value for visual presentation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
numberFormat
protected java.text.NumberFormat numberFormat
NumberFeatureValueFormat
protected NumberFeatureValueFormat()
NumberFeatureValueFormat
public NumberFeatureValueFormat(java.text.NumberFormat numberFormat)
- Creates a new instance of NumberFeatureValueFormat
format
public java.lang.String format(java.lang.Object value)
- Format the given feature value for visual presentation.
- Specified by:
format
in interface FeatureValueFormat
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object