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
parameterinstances.Modified by: Joseph A. Huwaldt
- Version:
- February 23, 2025
- Author:
- Joseph A. Huwaldt Date: November 15, 2008
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParameterFormatgetSimpleFormatInstance()Returns a simple ParameterFormat for which the value is stated using the current units; for example"1.34 m".static ParameterFormatnewInstance()Returns the currentlocalformat (defaultParameterFormat.getSimpleFormatInstance()).static voidsetInstance(ParameterFormat format)Sets the currentlocalformat.
-
-
-
Method Detail
-
newInstance
public static ParameterFormat newInstance()
Returns the currentlocalformat (defaultParameterFormat.getSimpleFormatInstance()).- Returns:
- the context local format.
- See Also:
getSimpleFormatInstance()
-
setInstance
public static void setInstance(ParameterFormat format)
Sets the currentlocalformat.- 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.- Returns:
- A simple ParameterFormat for which the value is stated using the current units.
-
-