Class SpecimenType<T>


  • public class SpecimenType<T>
    extends Object
    • Constructor Detail

      • SpecimenType

        protected SpecimenType()
    • Method Detail

      • fromClass

        public static <T> SpecimenType<T> fromClass​(Type typeReference)
      • fromRawType

        public static <T> SpecimenType<T> fromRawType​(Class<?> rawType,
                                                      Type[] actualTypeArguments)
      • castToClass

        public static Class<?> castToClass​(Type type)
      • isParameterized

        public static boolean isParameterized​(Type type)
      • asClass

        public Class<T> asClass()
      • getGenericTypeArguments

        public Type[] getGenericTypeArguments()
      • getGenericTypeArgument

        public Type getGenericTypeArgument​(int index)
      • getTypeParameterNames

        public String[] getTypeParameterNames()
      • getTypeParameterName

        public String getTypeParameterName​(int index)
      • getComponentType

        public Class<?> getComponentType()
      • getEnumConstants

        public T[] getEnumConstants()
      • getName

        public String getName()
      • isParameterized

        public boolean isParameterized()
      • isCollection

        public boolean isCollection()
      • isMap

        public boolean isMap()
      • isTimeType

        public boolean isTimeType()
      • isPrimitive

        public boolean isPrimitive()
      • isBoxed

        public boolean isBoxed()
      • isEnum

        public boolean isEnum()
      • isArray

        public boolean isArray()
      • isInterface

        public boolean isInterface()
      • isAbstract

        public boolean isAbstract()
      • getDeclaredConstructors

        public List<Constructor<T>> getDeclaredConstructors()
      • getFactoryMethods

        public List<Method> getFactoryMethods()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object