| Constructor and Description |
|---|
LValue() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areEqual(Object a,
Object b)
Returns true iff a and b are equals, where (int) 1 is
equals to (double) 1.0
|
Object[] |
asArray(Object value)
Returns this value as an array.
|
boolean |
asBoolean(Object value)
Convert `value` to a boolean.
|
Number |
asNumber(Object value)
Returns `value` as a Number.
|
String |
asString(Object value)
Returns `value` as a String.
|
boolean |
isArray(Object value)
Returns true iff `value` is an array or a java.util.List.
|
boolean |
isInteger(Object value)
Returns true iff `value` is a whole number (Integer or Long).
|
boolean |
isNumber(Object value)
Returns true iff `value` is a Number.
|
boolean |
isString(Object value)
Returns true iff `value` is a String.
|
public static boolean areEqual(Object a, Object b)
a - the first object to compare.b - the second object to compare.public Object[] asArray(Object value)
value - the value to convert/cast to an array.public boolean asBoolean(Object value)
value - the value to convert.public Number asNumber(Object value) throws NumberFormatException
value - the value to cast to a Number.NumberFormatException - when `value` is a String which could
not be parsed as a Long or Double.public String asString(Object value)
value - the value to convert to a String.public boolean isArray(Object value)
value - the value to check.public boolean isInteger(Object value)
value - the value to check.public boolean isNumber(Object value)
value - the value to check.public boolean isString(Object value)
value - the value to check.Copyright © 2012–2016. All rights reserved.