public class EmptyArooaConverter extends java.lang.Object implements ArooaConverter
Constructor and Description |
---|
EmptyArooaConverter() |
Modifier and Type | Method and Description |
---|---|
<F,T> T |
convert(F from,
java.lang.Class<T> required)
Convert if possible from the given Object to an equivalent
object of the given type.
|
<F,T> ConversionPath<F,T> |
findConversion(java.lang.Class<F> from,
java.lang.Class<T> to)
Attempt to find a ConversionPath.
|
public <F,T> T convert(F from, java.lang.Class<T> required) throws NoConversionAvailableException, ConversionFailedException
ArooaConverter
convert
in interface ArooaConverter
from
- The object to convert from.required
- The class the object is required to convert to.NoConversionAvailableException
- If there is no way to convert
the given type to the required type.ConversionFailedException
- If applying the conversion failed.public <F,T> ConversionPath<F,T> findConversion(java.lang.Class<F> from, java.lang.Class<T> to)
ConversionLookup
findConversion
in interface ConversionLookup
from
- The convert from class.to
- The convert to class.