Class AbstractNonNullGenerator<E>

    • Constructor Detail

      • AbstractNonNullGenerator

        public AbstractNonNullGenerator()
    • Method Detail

      • generate

        public final ProductWrapper<E> generate​(ProductWrapper<E> wrapper)
        Description copied from interface: Generator
        Returns an instance of the generic type E, using the ProductWrapper instance provided as argument. The wrapper may wrap a null value as a regular generator product. If the generator is not available (any more), it returns null instead of the ProductWrapper instance.
        Specified by:
        generate in interface Generator<E>
        Parameters:
        wrapper - the wrapper
        Returns:
        the product wrapper