Interface Generator<V>

Type Parameters:
V - Type of the objects.

public interface Generator<V>
Generates objects of a certain type.
  • Method Summary

    Modifier and Type Method Description
    V generate()
    Generates elements of the corresponding type.
    void reset()
    Resets the generator.
    void reset​(V v)
    Resets the generator at some specific value
  • Method Details

    • generate

      V generate()
      Generates elements of the corresponding type.
      Returns:
      a new element.
    • reset

      void reset()
      Resets the generator.
    • reset

      void reset​(V v)
      Resets the generator at some specific value
      Parameters:
      v - the value.