Package org.apache.tapestry5.internal.translator

# Class NumericFormatterImpl

java.lang.Object
org.apache.tapestry5.internal.translator.NumericFormatterImpl

All Implemented Interfaces:
  `NumericFormatter`

public class NumericFormatterImpl extends Object implements NumericFormatter
A wrapper around NumberFormat.

Since:
  5.1.0.1

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NumericFormatterImpl(NumberFormat format)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Number`
  `parse(String clientValue)`
  Parses a value from the client in a locale-specific way.
  `String`
  `toClient(Number value)`
  Formats a value for the client in a locale-specific way.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NumericFormatterImpl

    public NumericFormatterImpl(NumberFormat format)

- ## Method Details

  - ### parse

    public Number parse(String clientValue) throws ParseException
    Description copied from interface: `NumericFormatter`
    Parses a value from the client in a locale-specific way.
    Specified by:
      `parse` in interface `NumericFormatter`
    Throws:
      `ParseException`

  - ### toClient

    public String toClient(Number value)
    Description copied from interface: `NumericFormatter`
    Formats a value for the client in a locale-specific way.
    Specified by:
      `toClient` in interface `NumericFormatter`