public final class Classes
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static boolean |
allAssignableFrom(java.lang.Class<?> sharedType,
java.lang.Iterable<? extends java.lang.Class<?>> types) |
static <T> T |
freshInstanceOf(java.lang.Class<T> clazz) |
static boolean |
isComparableType(java.lang.Class<?> clazz) |
static boolean |
isPrimitiveNumericType(java.lang.Class<?> clazz) |
static boolean |
isPrimitiveType(java.lang.Class<?> clazz) |
static boolean |
isPrimitiveWrapperType(java.lang.Class<?> clazz) |
static boolean |
isSimpleType(java.lang.Class<?> clazz) |
static java.lang.Class<?> |
mostSpecificSharedType(java.util.Collection<java.lang.Class<?>> types)
This method will not extract the interfaces of the given types, since there is no way to determine, which
interface is the most specific one (due to their compositional nature).
|
static java.util.Set<java.lang.Class<?>> |
typesOf(java.lang.Object... values) |
public static boolean isPrimitiveNumericType(java.lang.Class<?> clazz)
public static boolean isComparableType(java.lang.Class<?> clazz)
public static boolean isSimpleType(java.lang.Class<?> clazz)
public static boolean isPrimitiveType(java.lang.Class<?> clazz)
public static boolean isPrimitiveWrapperType(java.lang.Class<?> clazz)
public static <T> T freshInstanceOf(java.lang.Class<T> clazz)
public static java.util.Set<java.lang.Class<?>> typesOf(java.lang.Object... values)
public static boolean allAssignableFrom(java.lang.Class<?> sharedType, java.lang.Iterable<? extends java.lang.Class<?>> types)
public static java.lang.Class<?> mostSpecificSharedType(java.util.Collection<java.lang.Class<?>> types)