public final class PrimitiveUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
comparePrimitive(Class<?> class1,
Class<?> class2) |
static Object |
createReserved(String className)
Creates a reserved class instance.
|
static Object |
getSimpleObject(Class<?> targetClass,
String valueText)
Gets a simple object from a String.
|
static boolean |
testPrimitive(Class<?> clazz)
Test if class is convertible in a primitive type or String.
|
static boolean |
verifyNotReserved(String className)
Verify that the class is not reserved.
|
static boolean |
verifyNotReservedContainer(String className)
Verify the class is not a reserved container.
|
public static boolean testPrimitive(Class<?> clazz)
clazz - the class to analyzepublic static Object createReserved(String className)
className - the class namepublic static boolean verifyNotReserved(String className)
className - the class namepublic static boolean verifyNotReservedContainer(String className)
className - the class namepublic static Object getSimpleObject(Class<?> targetClass, String valueText)
targetClass - the class for the returned objectvalueText - the value as a StringCopyright © 2020 Alantea. All rights reserved.