Class TypeUtils

java.lang.Object
org.dalesbred.internal.utils.TypeUtils

public final class TypeUtils extends Object
  • Method Details

    • rawType

      @NotNull public static @NotNull Class<?> rawType(@NotNull @NotNull Type type)
    • typeParameter

      @NotNull public static @NotNull Type typeParameter(@NotNull @NotNull Type type)
    • isEnum

      public static boolean isEnum(@NotNull @NotNull Type type)
    • isPrimitive

      public static boolean isPrimitive(@NotNull @NotNull Type type)
    • arrayType

      @NotNull public static @NotNull Class<?> arrayType(@NotNull @NotNull Class<?> type)
    • genericSuperClass

      @Nullable public static @Nullable Type genericSuperClass(@NotNull @NotNull Type type)
    • genericInterfaces

      @NotNull public static @NotNull Type[] genericInterfaces(@NotNull @NotNull Type type)
    • isAssignable

      public static boolean isAssignable(@NotNull @NotNull Type target, @NotNull @NotNull Type source)