Package com.norconex.commons.lang.convert

# Interface Converter

All Known Implementing Classes:
  `AbstractConverter`, `BooleanConverter`, `CharacterConverter`, `CharsetConverter`, `ClassConverter`, `ContentTypeConverter`, `DateConverter`, `DimensionConverter`, `DurationConverter`, `EnumConverter`, `FileConverter`, `GenericConverter`, `InstantConverter`, `LocalDateTimeConverter`, `LocaleConverter`, `NumberConverter`, `PathConverter`, `PatternConverter`, `StringConverter`, `UrlConverter`, `ZonedDateTimeConverter`, `ZoneIdConverter`

public interface Converter
Converts from Object to String and from String to Object.

Since:
  2.0.0 (renamed from IConverter in version 3.0.0)

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `toString(Object object)`
  `default String`
  `toString(Object object, String defaultValue)`
  `<T> T`
  `toType(String value, Class<T> type)`
  `default <T> T`
  `toType(String value, Class<T> type, T defaultValue)`

- ## Method Details

  - ### toType

    <T> T toType(String value, Class<T> type)

  - ### toType

    default <T> T toType(String value, Class<T> type, T defaultValue)

  - ### toString

    String toString(Object object)

  - ### toString

    default String toString(Object object, String defaultValue)