Class ClassInstancioApiImpl<T>

    • Constructor Detail

      • ClassInstancioApiImpl

        public ClassInstancioApiImpl​(Class<T> klass)
    • Method Detail

      • withTypeParameters

        public InstancioApi<T> withTypeParameters​(Class<?>... type)
        Description copied from interface: InstancioOfClassApi
        Method for supplying type parameters for generic classes.

        Example:

        
             List<Address> addresses = Instancio.of(List.class)
                     .withTypeParameters(Address.class)
                     .create();
         
        Specified by:
        withTypeParameters in interface InstancioOfClassApi<T>
        Parameters:
        type - one or more types
        Returns:
        API builder reference