|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type that can be converted topublic interface Coercion<T>
Contract for a converter of strings to a define type.
| Method Summary | |
|---|---|
T |
coerce(CoercionTarget type,
String value)
Coerce the given string value into the type represented by this coercion. |
boolean |
isApplicableTo(CoercionTarget type)
Return true if this coercion is applicable for the given target type |
| Method Detail |
|---|
T coerce(CoercionTarget type,
String value)
throws AbstractFailedToCoerceValueException
value - The string value to convert. WILL NOT be null.
A - subtype of AbstractFailedToCoerceValueException if the value was not valid
AbstractFailedToCoerceValueExceptionboolean isApplicableTo(CoercionTarget type)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||