Caster.NotRecognized| Constructor and Description |
|---|
BasicCaster() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStringRepresentable(Class<?> type) |
boolean |
toBoolean(Object o) |
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) |
public <C> C toType(Class<C> type, Object cloud, Object value) throws Caster.NotRecognized
toType in interface CasterCaster.NotRecognizedpublic Object wrap(Object o, CharTransformer escaper) throws Caster.NotRecognized
wrap in interface CasterCaster.NotRecognizedpublic Object unWrap(Object o) throws Caster.NotRecognized
unWrap in interface CasterCaster.NotRecognizedpublic Map toMap(Object o) throws Caster.NotRecognized
toMap in interface CasterCaster.NotRecognizedpublic int toInt(Object i) throws Caster.NotRecognized
toInt in interface CasterCaster.NotRecognizedpublic long toLong(Object i) throws Caster.NotRecognized
toLong in interface CasterCaster.NotRecognizedpublic float toFloat(Object i) throws Caster.NotRecognized
toFloat in interface CasterCaster.NotRecognizedpublic double toDouble(Object i) throws Caster.NotRecognized
toDouble in interface CasterCaster.NotRecognizedpublic String toString(Object o) throws Caster.NotRecognized
toString in interface CasterCaster.NotRecognizedpublic boolean toBoolean(Object o) throws Caster.NotRecognized
toBoolean in interface CasterCaster.NotRecognizedpublic boolean isStringRepresentable(Class<?> type)
isStringRepresentable in interface CasterMMBase2 Utils 2.0.0 - 2019-08-08T23:20