S
- Source typeT
- Destination typepublic abstract class ConverterAdapter<S,T> extends Object implements Converter<S,T>
Constructor and Description |
---|
ConverterAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class aSourceClass,
Class aDestinationClass)
Returns true if this converter can convert instances of sourceClass to
destinationClass.
|
T |
convert(S source)
Converts instance of S to T.
|
protected abstract Class<T> |
destinationClass() |
protected abstract T |
doConvert(S source)
Converts instance of S to T.
|
protected abstract Class<S> |
sourceClass() |
public boolean canConvert(Class aSourceClass, Class aDestinationClass)
Converter
canConvert
in interface Converter<S,T>
aSourceClass
- source ClassaDestinationClass
- destination Classpublic T convert(S source)
Converter
Copyright © 2016 JavaLite. All rights reserved.