Overview | Package | Class | Tree | Deprecated | Index | Help
| Qizx/Open v0.3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.xfra.qizxopen.util
Class DefaultNumberConverter

    java.lang.Object
      |
      +--net.xfra.qizxopen.util.DefaultNumberConverter

All Implemented Interfaces:
  NumberConverter

public class DefaultNumberConverter
extends java.lang.Object
implements NumberConverter

Converts a number using a locale or a Java NumberFormat.

Constructor Summary
`DefaultNumberConverter()` Uses the default locale.
`DefaultNumberConverter(java.text.NumberFormat format)` General case: use a NumberFormat.

Method Summary
`double` | `convert(java.lang.String value)` Converts the string to a double.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultNumberConverter

    public DefaultNumberConverter()

  Uses the default locale.

### DefaultNumberConverter

    public DefaultNumberConverter(java.text.NumberFormat format)

  General case: use a NumberFormat.

Method Detail

### convert

    public double convert(java.lang.String value)

  Description copied from interface: `NumberConverter`
  Converts the string to a double. If the conversion is not possible, returns NaN. The string passed has no leading whitespace.

  Specified by:
    `convert` in interface `NumberConverter`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright Xavier FRANC 2003-2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD