public interface ValueConverter
Typically, a ValueConverter will select a particular
TypeConverter
to perform the conversion. The
ValueConverterImpl
implementation also makes use of built-in
PropertyEditor
s.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
coerceValue(java.lang.Object value,
java.lang.Class desiredType)
Performs a conversion of a value to a particular type.
|
java.lang.Object coerceValue(java.lang.Object value, java.lang.Class desiredType)
value
- The value to be converted (may be null)desiredType
- the type that will be converted toorg.apache.hivemind.ApplicationRuntimeException
- if the value can not be converted