Package de.danielbechler.util
Class Classes
java.lang.Object
de.danielbechler.util.Classes
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallAssignableFrom(Class<?> sharedType, Iterable<? extends Class<?>> types) static <T> TfreshInstanceOf(Class<T> clazz) static booleanisComparableType(Class<?> clazz) static booleanisPrimitiveNumericType(Class<?> clazz) static booleanisPrimitiveType(Class<?> clazz) static booleanisPrimitiveWrapperType(Class<?> clazz) static booleanisSimpleType(Class<?> clazz) static Class<?>mostSpecificSharedType(Collection<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).
-
Method Details
-
isPrimitiveNumericType
-
isComparableType
-
isSimpleType
-
isPrimitiveType
-
isPrimitiveWrapperType
-
freshInstanceOf
-
typesOf
-
allAssignableFrom
-