public class AttributeUtil extends Object
| Constructor and Description |
|---|
AttributeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
compare(Object a,
Object b)
Compares the two elements like
Comparator.compare(Object, Object) but returns
null in case the two elements are not comparable. |
static boolean |
hasGenericDataType(PropertyKey key) |
static boolean |
isDecimal(Class<?> clazz) |
static boolean |
isDecimal(Number n) |
static boolean |
isString(Class<?> clazz) |
static boolean |
isString(Object o) |
static boolean |
isWholeNumber(Class<?> clazz) |
static boolean |
isWholeNumber(Number n) |
public static final boolean isWholeNumber(Number n)
public static final boolean isDecimal(Number n)
public static final boolean isWholeNumber(Class<?> clazz)
public static final boolean isDecimal(Class<?> clazz)
public static final boolean isString(Object o)
public static final boolean isString(Class<?> clazz)
public static final Integer compare(Object a, Object b)
Comparator.compare(Object, Object) but returns
null in case the two elements are not comparable.a - b - public static boolean hasGenericDataType(PropertyKey key)
Copyright © 2012–2015. All rights reserved.