public interface ConversionPath<F,T>
| Modifier and Type | Method and Description |
|---|---|
<X> ConversionPath<F,X> |
append(ConversionStep<T,X> following)
Create a new ConversionPath by adding the given ConversionStep.
|
boolean |
contains(Class<?> from)
Test if this ConversionPath contains a conversion
from the given Class.
|
T |
convert(F from,
ArooaConverter converter) |
Class<F> |
getFromClass()
Get the from Class of this ConversionPath.
|
<X,Y> ConversionStep<X,Y> |
getStep(int index)
Get the conversion step for the given index.
|
Class<T> |
getToClass()
Get the to Class of this ConversionPath.
|
int |
length()
Get the number of Steps in this ConversionPath.
|
<X> ConversionPath<X,T> |
prepend(ConversionStep<X,F> preceeding)
Create a new ConversionPath by prepending the given ConversionStep.
|
<X> ConversionPath<F,X> append(ConversionStep<T,X> following)
following - <X> ConversionPath<X,T> prepend(ConversionStep<X,F> preceeding)
preceeding - int length()
<X,Y> ConversionStep<X,Y> getStep(int index)
index - The index.boolean contains(Class<?> from)
from - T convert(F from, ArooaConverter converter) throws ConversionFailedException
from - ConversionFailedExceptionCopyright © 2023. All rights reserved.