Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javolution.text.TextFormat

        javolution.text.TextFormat.Cursor
    • 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 current local format (default ParameterFormat.getSimpleFormatInstance()).
      static void setInstance​(ParameterFormat format)
      Sets the current local format.
      • Methods inherited from class javolution.text.TextFormat

        format, format, format, getInstance, parse, parse, setInstance
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setInstance

        public static void setInstance​(ParameterFormat format)
        Sets the current local 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.