Class GeneratorWrapper<S,​P>

    • Constructor Detail

      • GeneratorWrapper

        public GeneratorWrapper​(Generator<S> source)
        Instantiates a new Generator wrapper.
        Parameters:
        source - the source
    • Method Detail

      • getSource

        public Generator<S> getSource()
        Returns the source generator
        Returns:
        the source
      • setSource

        public void setSource​(Generator<S> source)
        Sets the source generator
        Parameters:
        source - the source
      • generateFromSource

        protected ProductWrapper<S> generateFromSource()
        Generate from source product wrapper.
        Returns:
        the product wrapper
      • getSourceWrapper

        protected ProductWrapper<S> getSourceWrapper()
        Gets source wrapper.
        Returns:
        the source wrapper
      • isThreadSafe

        public boolean isThreadSafe()
      • isParallelizable

        public boolean isParallelizable()
      • reset

        public void reset()
        Specified by:
        reset in interface com.rapiddweller.common.Resettable
        Overrides:
        reset in class AbstractGenerator<P>
      • close

        public void close()
        Description copied from interface: Generator
        Closes the generator. After invocation the state is unavailable.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Generator<S>
        Overrides:
        close in class AbstractGenerator<P>
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object