org.oddjob.arooa.convert
Interface Joker<F>
- Type Parameters:
F
- The from type.
public interface Joker<F>
A Joker is used by types to offer a final conversion solution that trumps all
others. It is generally used by types that could be anything such
as ValueType
.
- Author:
- rob
lastStep
<T> ConversionStep<F,T> lastStep(Class<? extends F> from,
Class<T> to,
ConversionLookup conversions)
- Provide the final step. Will return null if there
is no conversion to the required type.
- Type Parameters:
T
- The to type.- Parameters:
from
- The from class.to
- The to class.conversions
- The conversions this Jokers is part of. Useful for
converting content type but be careful of recursion.
- Returns:
- The ConversionStep or null.