Class GenericUtils

java.lang.Object
net.elytrium.serializer.utils.GenericUtils

public class GenericUtils extends Object
  • Constructor Details

    • GenericUtils

      public GenericUtils()
  • Method Details

    • unwrapClassParameterizedType

      public static Class<?> unwrapClassParameterizedType(Type type)
    • getParameterTypeFromSuperclass

      public static Type getParameterTypeFromSuperclass(Class<?> parent, Type type, Type superclass, int searchIndex)
    • getParameterType

      public static Type getParameterType(Class<?> parent, Type type, int index)
    • getParameterIndex

      public static int getParameterIndex(TypeVariable<?>[] variables, TypeVariable<?> expected)