Package cdc.converters
Class AbstractConverter<S,T>
java.lang.Object
cdc.converters.AbstractConverter<S,T>
- Type Parameters:
S- Source type.T- Target type.
- Direct Known Subclasses:
AbstractNoArgsConverter,AbstractNumberToString,AbstractSequenceConverter,AbstractStringToNumber,AbstractStringToTemporal,AbstractTemporalToString,ConverterAdapter,DateToString,ObjectToString,StringFiller,StringRandomizer,StringToDate,StringToEnum,ToLowerCase,ToUpperCase
Base implementation of typed converter.
- Author:
- Damien Carbonne
-
Field Summary
Fields inherited from interface cdc.converters.Converter
META_FARGS, SOURCE_CLASS, TARGET_CLASS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cdc.converters.Converter
adapt, andThen, andThenRaw, applyRaw, areCompliantSourceAndTargetClasses, areMatchingSourceAndTargetClasses, cast, compose, composeRaw, getParams, isCompliantSourceClass, isCompliantTargetClass, isMatchingSourceClass, isMatchingTargetClass, orElse, orElseRaw
-
Constructor Details
-
AbstractConverter
-
-
Method Details
-
getSourceClass
- Specified by:
getSourceClassin interfaceConverter<S,T> - Returns:
- The class of source objects.
-
getWrappedSourceClass
- Specified by:
getWrappedSourceClassin interfaceConverter<S,T> - Returns:
- The wrapped type of source class.
If source class is the class of a primitive type, returns the class of corresponding boxing type.
-
getTargetClass
- Specified by:
getTargetClassin interfaceConverter<S,T> - Returns:
- The class of target objects.
-
getWrappedTargetClass
- Specified by:
getWrappedTargetClassin interfaceConverter<S,T> - Returns:
- The wrapped type of target class. If target class is the class of a primitive type, returns the class of corresponding boxing type.
-
toString
-