public interface ArgumentConverter<F,T>
| Modifier and Type | Method and Description |
|---|---|
T |
convert(F from)
Converts using a newly created instance
|
void |
convert(F from,
T to)
Converts using an existing instance
|
static ArgumentConverter |
getInstanceFor(Convert convertAnnotation) |
T convert(F from) throws AdapterException
from - instance from which to convertAdapterException - wraps throwables generated during conversionvoid convert(F from, T to) throws AdapterException
from - instance from which to convertto - existing instance of the target typeAdapterException - wraps throwables generated during conversionstatic ArgumentConverter getInstanceFor(Convert convertAnnotation) throws AdapterException
AdapterExceptionCopyright © 2020 shadow-invoke. All rights reserved.