| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private static final List | PRIMITIVE_WRAPPER_TYPES
Lists primitive wrapper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static List | Returns: theList of interfaces in order, null if null inputthe class to look up, may be cls)null
Gets a |
| pack-priv static void | getAllInterfaces(Class<?>
the class to look up, may be cls, HashSet<Class<?>> nullthe interfacesFound)Set of interfaces for the classGet the interfaces for the specified class. |
| public static List | Returns: theList of superclasses in order going up from this one
null if null inputthe class to look up, may be cls)nullGets a |
| public static boolean | Returns: true the giventype belongs to the java.lang package itself or one of its subpackage, false otherwise.The class to check or null. type)Returns whether the given |
| public static boolean | Returns: true if the giventype is a primitive or primitive wrapper (Optional, OptionalInt,
OptionalLong, OptionalDouble).The class to query or null. type)Returns whether the given |
| public static boolean |
| OPTIONAL_TYPES | back to summary |
|---|---|
| private static final List<Class<?>> OPTIONAL_TYPES | |
| PRIMITIVE_WRAPPER_TYPES | back to summary |
|---|---|
| private static final List<Class<?>> PRIMITIVE_WRAPPER_TYPES Lists primitive wrapper | |
| ClassUtils | back to summary |
|---|---|
| public ClassUtils() | |
| getAllInterfaces | back to summary |
|---|---|
| public static List
Gets a The order is determined by looking through each interface in turn as declared in the source file and following its hierarchy up. Then each superclass is considered in the same way. Later duplicates are ignored, so the order is maintained. | |
| getAllInterfaces | back to summary |
|---|---|
| pack-priv static void getAllInterfaces(Class<?> cls, HashSet<Class<?>> interfacesFound) Get the interfaces for the specified class. | |
| getAllSuperclasses | back to summary |
|---|---|
| public static List Gets a | |
| isInJavaLangPackage | back to summary |
|---|---|
| public static boolean isInJavaLangPackage(final Class<?> type) Returns whether the given
| |
| isOptionalOrPrimitiveOptional | back to summary |
|---|---|
| public static boolean isOptionalOrPrimitiveOptional(final Class<?> type) Returns whether the given Returns false if passed null since the method can't evaluate the class.
| |
| isPrimitiveOrWrapper | back to summary |
|---|---|
| public static boolean isPrimitiveOrWrapper(final Class<?> type) Returns whether the given Returns false if passed null since the method can't evaluate the class. Inspired from apache commons-lang ClassUtils | |