Class GenericsSupport


  • public class GenericsSupport
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericsSupport()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static GenericsClassContext contextFor​(java.lang.Class<?> contextClass)
      Return a context object which can resolve generic types for a given contextClass.
      static GenericsClassContext contextFor​(net.jqwik.api.providers.TypeUsage typeUsage)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericsSupport

        public GenericsSupport()
    • Method Detail

      • contextFor

        public static GenericsClassContext contextFor​(java.lang.Class<?> contextClass)
        Return a context object which can resolve generic types for a given contextClass.

        Must be synchronized because of caching.

        Parameters:
        contextClass - The class to wrap in a context
        Returns:
        a potentially cached context object
      • contextFor

        public static GenericsClassContext contextFor​(net.jqwik.api.providers.TypeUsage typeUsage)