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
public abstract class AbstractConverter<S,T> extends Object implements Converter<S,T>
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 Constructor Description AbstractConverter(Class<S> sourceClass, Class<T> targetClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<S>getSourceClass()Class<T>getTargetClass()Class<S>getWrappedSourceClass()Class<T>getWrappedTargetClass()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cdc.converters.Converter
adapt, andThen, andThenRaw, applyRaw, areCompliantSourceAndTargetClasses, areMatchingSourceAndTargetClasses, cast, compose, composeRaw, getParams, isCompliantSourceClass, isCompliantTargetClass, isMatchingSourceClass, isMatchingTargetClass, orElse, orElseRaw
-
-
-
-
Method Detail
-
getSourceClass
public final Class<S> getSourceClass()
- Specified by:
getSourceClassin interfaceConverter<S,T>- Returns:
- The class of source objects.
-
getWrappedSourceClass
public final Class<S> 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
public final Class<T> getTargetClass()
- Specified by:
getTargetClassin interfaceConverter<S,T>- Returns:
- The class of target objects.
-
getWrappedTargetClass
public final Class<T> 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.
-
-