Class 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.Type genericSuperClass​(@NotNull java.lang.reflect.Type type)  
      static boolean isAssignable​(@NotNull java.lang.reflect.Type target, @NotNull java.lang.reflect.Type source)  
      static boolean isEnum​(@NotNull java.lang.reflect.Type type)  
      static boolean isPrimitive​(@NotNull java.lang.reflect.Type type)  
      static @NotNull java.lang.Class<?> rawType​(@NotNull java.lang.reflect.Type type)  
      static @NotNull java.lang.reflect.Type typeParameter​(@NotNull java.lang.reflect.Type type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)