| java.lang.Object com.projity.util.ClassUtils
ClassUtils | public class ClassUtils (Code) | | Utility functions for manipulating primitive types
|
BOOLEAN_MULTIPLE_VALUES | final public static Boolean BOOLEAN_MULTIPLE_VALUES(Code) | | |
DOUBLE_MULTIPLE_VALUES | final public static Double DOUBLE_MULTIPLE_VALUES(Code) | | |
FLOAT_MULTIPLE_VALUES | final public static Float FLOAT_MULTIPLE_VALUES(Code) | | |
INTEGER_MULTIPLE_VALUES | final public static Integer INTEGER_MULTIPLE_VALUES(Code) | | |
LONG_MULTIPLE_VALUES | final public static Long LONG_MULTIPLE_VALUES(Code) | | |
PERCENT_MULTIPLE_VALUES | final public static Double PERCENT_MULTIPLE_VALUES(Code) | | |
RATE_MULTIPLE_VALUES | final public static Rate RATE_MULTIPLE_VALUES(Code) | | |
STRING_MULTIPLE_VALUES | final public static String STRING_MULTIPLE_VALUES(Code) | | |
defaultFloat | final public static Float defaultFloat(Code) | | |
defaultLong | final public static Long defaultLong(Code) | | |
defaultRate | final public static Rate defaultRate(Code) | | |
defaultUnitlessRate | final public static Rate defaultUnitlessRate(Code) | | |
doubleToObject | public static Object doubleToObject(Double value, Class clazz)(Code) | | Convert a Double to an Object of a given class
Parameters: value - Double value to convert Parameters: clazz - Class the class to convert to new object of the given class throws: IllegalArgumentException - if the value is not convertible to the class |
getDefaultValueForType | public static Object getDefaultValueForType(Class clazz)(Code) | | Given a type, return its default value. If type is unknown, a new one is constructed
Parameters: clazz - |
getMultipleValueForType | public static Object getMultipleValueForType(Class clazz)(Code) | | Given a type, return a value that signifies that there are multiple values. This can occur in a dialog which works on multile objects at once. If type is unknown, a new one is constructed
Parameters: clazz - |
isDefaultValue | public static boolean isDefaultValue(Object value)(Code) | | |
isMultipleValue | public static boolean isMultipleValue(Object value)(Code) | | |
isObjectFieldReadOnly | public static boolean isObjectFieldReadOnly(Object object, Field field)(Code) | | |
isObjectReadOnly | public static boolean isObjectReadOnly(Object object)(Code) | | |
primitiveToObjectClass | public static Class primitiveToObjectClass(Class clazz)(Code) | | Get the corresponding object class from a primitive class
Parameters: clazz - primitive class Object class. throws: ClassCastException - if class is unknown primitive |
setStaticField | public static void setStaticField(String field, int value)(Code) | | Set the array size of the custom field this applies to
Parameters: boundsField - |
staticVoidMethodFromFullName | public static Method staticVoidMethodFromFullName(String nameAndField)(Code) | | |
|
|