Package org.dalesbred.internal.utils
Class TypeUtils
- java.lang.Object
-
- org.dalesbred.internal.utils.TypeUtils
-
public final class TypeUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull java.lang.Class<?>arrayType(@NotNull java.lang.Class<?> type)static @NotNull java.lang.reflect.Type[]genericInterfaces(@NotNull java.lang.reflect.Type type)static @Nullable java.lang.reflect.TypegenericSuperClass(@NotNull java.lang.reflect.Type type)static booleanisAssignable(@NotNull java.lang.reflect.Type target, @NotNull java.lang.reflect.Type source)static booleanisEnum(@NotNull java.lang.reflect.Type type)static booleanisPrimitive(@NotNull java.lang.reflect.Type type)static @NotNull java.lang.Class<?>rawType(@NotNull java.lang.reflect.Type type)static @NotNull java.lang.reflect.TypetypeParameter(@NotNull java.lang.reflect.Type type)
-
-
-
Method Detail
-
rawType
@NotNull public static @NotNull java.lang.Class<?> rawType(@NotNull @NotNull java.lang.reflect.Type type)
-
typeParameter
@NotNull public static @NotNull java.lang.reflect.Type typeParameter(@NotNull @NotNull java.lang.reflect.Type type)
-
isEnum
public static boolean isEnum(@NotNull @NotNull java.lang.reflect.Type type)
-
isPrimitive
public static boolean isPrimitive(@NotNull @NotNull java.lang.reflect.Type type)
-
arrayType
@NotNull public static @NotNull java.lang.Class<?> arrayType(@NotNull @NotNull java.lang.Class<?> type)
-
genericSuperClass
@Nullable public static @Nullable java.lang.reflect.Type genericSuperClass(@NotNull @NotNull java.lang.reflect.Type type)
-
genericInterfaces
@NotNull public static @NotNull java.lang.reflect.Type[] genericInterfaces(@NotNull @NotNull java.lang.reflect.Type type)
-
isAssignable
public static boolean isAssignable(@NotNull @NotNull java.lang.reflect.Type target, @NotNull @NotNull java.lang.reflect.Type source)
-
-