public abstract class AbstractCoercer<T> extends java.lang.Object implements Coercer<T>
| Constructor and Description |
|---|
AbstractCoercer(java.lang.Class toType) |
| Modifier and Type | Method and Description |
|---|---|
T |
coerce(java.lang.Object input)
Convert the given object into the coercer type.
|
protected abstract T |
doCoerce(java.lang.Object input) |
java.lang.Class<T> |
getToType()
Returns the type this coercer handles
|
public final T coerce(java.lang.Object input)
Coercerpublic final java.lang.Class<T> getToType()
Coercerprotected abstract T doCoerce(java.lang.Object input)