Package jahuwaldt.js.param
Class ParameterFormat
- java.lang.Object
-
- javolution.text.TextFormat<Parameter<?>>
-
- jahuwaldt.js.param.ParameterFormat
-
public abstract class ParameterFormat extends javolution.text.TextFormat<Parameter<?>>
This class provides the interface for formatting and parsing
parameter
instances.Modified by: Joseph A. Huwaldt
- Version:
- October 2, 2011
- Author:
- Joseph A. Huwaldt Date: November 15, 2008
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParameterFormat
getSimpleFormatInstance()
Returns a simple ParameterFormat for which the value is stated using the current units; for example"1.34 m"
.static ParameterFormat
newInstance()
Returns the currentlocal
format (defaultParameterFormat.getSimpleFormatInstance()
).static void
setInstance(ParameterFormat format)
Sets the currentlocal
format.
-
-
-
Method Detail
-
newInstance
public static ParameterFormat newInstance()
Returns the currentlocal
format (defaultParameterFormat.getSimpleFormatInstance()
).- Returns:
- the context local format.
- See Also:
getSimpleFormatInstance()
-
setInstance
public static void setInstance(ParameterFormat format)
Sets the currentlocal
format.- Parameters:
format
- the new format.
-
getSimpleFormatInstance
public static ParameterFormat getSimpleFormatInstance()
Returns a simple ParameterFormat for which the value is stated using the current units; for example"1.34 m"
. This format can be used for formatting as well as for parsing.
-
-