public interface ArooaConverter extends ConversionLookup
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.
|
findConversion
<F,T> T convert(F from, java.lang.Class<T> required) throws NoConversionAvailableException, ConversionFailedException
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.