public class ELSupport extends Object
Constructor and Description |
---|
ELSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
checkType(Object obj,
Class<?> type) |
static Boolean |
coerceToBoolean(Object obj) |
static Character |
coerceToCharacter(Object obj) |
static Enum |
coerceToEnum(Object obj,
Class type) |
protected static Number |
coerceToNumber(Number number,
Class type) |
static Number |
coerceToNumber(Object obj) |
static Number |
coerceToNumber(Object obj,
Class type) |
protected static Number |
coerceToNumber(String val,
Class type) |
static String |
coerceToString(Object obj) |
static Object |
coerceToType(Object obj,
Class<?> type) |
static Object |
coerceToType(Object obj,
Class<?> type,
boolean isEL22Compatible) |
static int |
compare(Object obj0,
Object obj1) |
static boolean |
containsNulls(Object[] obj) |
static boolean |
equals(Object obj0,
Object obj1) |
static boolean |
isBigDecimalOp(Object obj0,
Object obj1) |
static boolean |
isBigIntegerOp(Object obj0,
Object obj1) |
static boolean |
isDoubleOp(Object obj0,
Object obj1) |
static boolean |
isDoubleStringOp(Object obj0,
Object obj1) |
static boolean |
isLongOp(Object obj0,
Object obj1) |
static boolean |
isStringFloat(String str) |
static void |
throwUnhandled(Object base,
Object property) |
static Number |
toFloat(String value) |
static Number |
toNumber(String value) |
public static final void throwUnhandled(Object base, Object property) throws ELException
ELException
public static final int compare(Object obj0, Object obj1) throws ELException
obj0
- First object to be comparedobj1
- Second object to be comparedEvaluationException
ELException
public static final boolean equals(Object obj0, Object obj1) throws ELException
obj0
- Fisrt object to be comparedobj1
- Second object to be comparedEvaluationException
ELException
public static final Boolean coerceToBoolean(Object obj) throws IllegalArgumentException
obj
- Object to be coercedIllegalArgumentException
public static final Character coerceToCharacter(Object obj) throws IllegalArgumentException
IllegalArgumentException
protected static final Number coerceToNumber(Number number, Class type) throws IllegalArgumentException
IllegalArgumentException
public static final Number coerceToNumber(Object obj, Class type) throws IllegalArgumentException
IllegalArgumentException
protected static final Number coerceToNumber(String val, Class type) throws IllegalArgumentException
IllegalArgumentException
public static final String coerceToString(Object obj)
obj
- Object to be coercedpublic static final void checkType(Object obj, Class<?> type) throws IllegalArgumentException
IllegalArgumentException
public static final Object coerceToType(Object obj, Class<?> type) throws IllegalArgumentException
IllegalArgumentException
public static final Object coerceToType(Object obj, Class<?> type, boolean isEL22Compatible) throws IllegalArgumentException
IllegalArgumentException
public static final boolean containsNulls(Object[] obj)
obj
- An array of objectspublic static final boolean isStringFloat(String str)
Copyright © 2016. All rights reserved.