Class GenericConverter

java.lang.Object
com.norconex.commons.lang.convert.GenericConverter
All Implemented Interfaces:
Converter

public final class GenericConverter extends Object implements Converter

Converts strings to objects and objects to strings. Supported object types are guaranteed to be convertible both ways if converted by this class.

Can only be initialized at construction time or the default instance can be obtained statically.

Converted string values are NOT locale-specific. This class favors consistency over format and string values are not always appropriate for human-consumption.

Default instance has converters for the following types:

By default ConverterException is thrown when conversion fails.

Since:
3.0.0 (renamed from 2.x "Converter")
See Also: