T - Given typepublic interface ValueMapper<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
handles(Class<?> type,
Class<?>... parameters)
Checks if given type is supported by this handler
|
T |
transform(String value)
Returns converted value from a string
|
boolean handles(Class<?> type, Class<?>... parameters)
type - Type to be supportedparameters - Types that have to match in case type is generic typetrue if this is supported, false otherwiseT transform(String value) throws IllegalArgumentException
value - String value to be convertedIllegalArgumentException - If conversion was not possibleCopyright © 2017 JBoss by Red Hat. All rights reserved.