Package org.apache.johnzon.mapper
Interface Converter<T>
-
- Type Parameters:
T
- the Java type that needs to be converted
- All Superinterfaces:
MapperConverter
- All Known Subinterfaces:
MapperConfig.CustomEnumConverter<A>
- All Known Implementing Classes:
BigDecimalConverter
,BigIntegerConverter
,BooleanConverter
,ByteConverter
,CachedDelegateConverter
,CharacterConverter
,ClassConverter
,DateConverter
,DoubleConverter
,EnumConverter
,FloatConverter
,IntegerConverter
,JsonbDateConverter
,JsonbDateConverterBase
,JsonbEnumAdapter
,JsonbLocalDateConverter
,JsonbLocalDateTimeConverter
,JsonbLocaleParserConverterBase
,JsonbNumberConverter
,JsonbOffsetDateTimeConverter
,JsonbValueConverter
,JsonbZonedDateTimeConverter
,LongConverter
,ShortConverter
,StringConverter
,URIConverter
,URLConverter
public interface Converter<T> extends MapperConverter
Convert a given Java Type to it's JSON String representation. And the other way around. An example would be to convert joda LocalDate into Strings and back.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Converter.TypeAccess
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
fromString(String text)
String
toString(T instance)
-