com.l2fprod.common.util.converter
Class NumberConverters
java.lang.Object
com.l2fprod.common.util.converter.NumberConverters
- All Implemented Interfaces:
- Converter
public class NumberConverters
- extends java.lang.Object
- implements Converter
Convert to and from numbers.
The following convertions are supported:
From |
To |
Reverse |
Number (and subclasses) |
Number (and subclasses) |
Yes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberConverters
public NumberConverters()
NumberConverters
public NumberConverters(java.text.NumberFormat format)
getDefaultFormat
public static java.text.NumberFormat getDefaultFormat()
register
public void register(ConverterRegistry registry)
convert
public java.lang.Object convert(java.lang.Class targetType,
java.lang.Object value)
- Description copied from interface:
Converter
- Converts
value
to an object of type
.
- Specified by:
convert
in interface Converter
- Returns:
value
converted to an object of type
.