public class TypeFns
extends java.lang.Object
Constructor and Description |
---|
TypeFns() |
Modifier and Type | Method and Description |
---|---|
static java.beans.PropertyDescriptor |
findPropertyDescriptor(java.lang.Class clazz,
java.lang.String propertyName)
Finds a PropertyDescriptor for the given propertyName on the Class
|
static boolean |
isPrimitive(java.lang.Object value)
Returns whether the specified object is a instance of a primitive type ( or a wrapper over a primitive type).
|
static boolean |
isPrimitiveOrString(java.lang.Object value) |
static boolean |
isWrapperType(java.lang.Class<?> clazz) |
public static boolean isPrimitive(java.lang.Object value)
public static boolean isPrimitiveOrString(java.lang.Object value)
public static boolean isWrapperType(java.lang.Class<?> clazz)
public static java.beans.PropertyDescriptor findPropertyDescriptor(java.lang.Class clazz, java.lang.String propertyName)
clazz
- propertyName
- java.lang.RuntimeException
- if property is not found