public class EmptyArooaConverter extends Object implements ArooaConverter
| Constructor and Description |
|---|
EmptyArooaConverter() |
| Modifier and Type | Method and Description |
|---|---|
<F,T> T |
convert(F from,
Class<T> required)
Convert if possible from the given Object to an equivalent
object of the given type.
|
<F,T> ConversionPath<F,T> |
findConversion(Class<F> from,
Class<T> to)
Attempt to find a ConversionPath.
|
public <F,T> T convert(F from,
Class<T> required)
throws NoConversionAvailableException,
ConversionFailedException
ArooaConverterconvert in interface ArooaConverterfrom - 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(Class<F> from, Class<T> to)
ConversionLookupfindConversion in interface ConversionLookupfrom - The convert from class.to - The convert to class.Copyright © 2023. All rights reserved.