org.apache.expreval.expr
Enum NumericType
java.lang.Object
java.lang.Enum<NumericType>
org.apache.expreval.expr.NumericType
- All Implemented Interfaces:
- Serializable, Comparable<NumericType>
public enum NumericType
- extends Enum<NumericType>
ByteType
public static final NumericType ByteType
ShortType
public static final NumericType ShortType
IntegerType
public static final NumericType IntegerType
LongType
public static final NumericType LongType
FloatType
public static final NumericType FloatType
DoubleType
public static final NumericType DoubleType
NumberType
public static final NumericType NumberType
values
public static NumericType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (NumericType c : NumericType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NumericType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getTypeRanking
public static int getTypeRanking(Class clazz)
isAssignable
public static boolean isAssignable(Class parentClass,
Class childClass)
getHighestRankingNumericArg
public static Class getHighestRankingNumericArg(Object... vals)
useDecimalNumericArgs
public static boolean useDecimalNumericArgs(Class clazz)
isANumber
public static boolean isANumber(Class clazz)
isAByte
public static boolean isAByte(Class clazz)
isAShort
public static boolean isAShort(Class clazz)
isAnInteger
public static boolean isAnInteger(Class clazz)
isALong
public static boolean isALong(Class clazz)
isAFloat
public static boolean isAFloat(Class clazz)
isADouble
public static boolean isADouble(Class clazz)
Copyright © 2011. All Rights Reserved.