public interface Caster
| Modifier and Type | Interface and Description |
|---|---|
static class |
Caster.NotRecognized |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStringRepresentable(Class<?> type) |
boolean |
toBoolean(Object i) |
double |
toDouble(Object i) |
float |
toFloat(Object i) |
int |
toInt(Object i) |
long |
toLong(Object i) |
Map |
toMap(Object o) |
String |
toString(Object o) |
<C> C |
toType(Class<C> type,
Object cloud,
Object value) |
Object |
unWrap(Object o) |
Object |
wrap(Object o,
CharTransformer escaper) |
<C> C toType(Class<C> type, Object cloud, Object value) throws Caster.NotRecognized
Caster.NotRecognizedObject wrap(Object o, CharTransformer escaper) throws Caster.NotRecognized
Caster.NotRecognizedObject unWrap(Object o) throws Caster.NotRecognized
Caster.NotRecognizedMap toMap(Object o) throws Caster.NotRecognized
Caster.NotRecognizedint toInt(Object i) throws Caster.NotRecognized
Caster.NotRecognizedlong toLong(Object i) throws Caster.NotRecognized
Caster.NotRecognizedfloat toFloat(Object i) throws Caster.NotRecognized
Caster.NotRecognizeddouble toDouble(Object i) throws Caster.NotRecognized
Caster.NotRecognizedboolean toBoolean(Object i) throws Caster.NotRecognized
Caster.NotRecognizedString toString(Object o) throws Caster.NotRecognized
Caster.NotRecognizedboolean isStringRepresentable(Class<?> type)
MMBase2 Utils 2.0.0 - 2019-08-08T23:20