public interface ConversionRegistry
Convertlets to find
a ConversionPath between two classes.| Modifier and Type | Method and Description |
|---|---|
<F,T> void |
register(Class<F> from,
Class<T> to,
Convertlet<F,T> convertlet)
Register a Convertlet.
|
<F> void |
registerJoker(Class<F> from,
Joker<F> joker)
Register a joker which is a conversion that trumps all other
conversion.
|
<F,T> void register(Class<F> from, Class<T> to, Convertlet<F,T> convertlet)
from - The convert from class.to - The convert to class.convertlet - The Convertlet.<F> void registerJoker(Class<F> from, Joker<F> joker)
NoConversionAvailableException.F - The class of the from type.from - The from type.joker - The joker.Copyright © 2023. All rights reserved.