public class Types extends Object
Modifier and Type | Method and Description |
---|---|
static Boolean |
asBoolean(Object value)
Tries to convert a value to a boolean.
|
static Double |
asDouble(Object value) |
static Float |
asFloat(Object value) |
static Integer |
asInt(Object value) |
static Long |
asLong(Object value) |
static String |
asString(Object value) |
static Boolean |
strictAsBoolean(Object value) |
static Double |
strictAsDouble(Object value) |
static Float |
strictAsFloat(Object value) |
static Integer |
strictAsInt(Object value) |
static Long |
strictAsLong(Object value) |
static String |
strictAsString(Object value) |
public static Boolean asBoolean(Object value)
value
- The value to convertCopyright © 2014–2017. All rights reserved.