java.lang.Object
de.cuioss.test.generator.internal.net.java.quickcheck.generator.support.CloningGenerator<T>
Type Parameters:
T - Type of the prototype object
All Implemented Interfaces:
Generator<T>

public class CloningGenerator<T> extends Object implements Generator<T>
A cloning generator which uses object serialization to create clones of the prototype object. For each call of next() a new copy of the prototype will be generated.
  • Constructor Details

  • Method Details

    • next

      public T next()
      Generate a new instance of the prototype object.
      Specified by:
      next in interface Generator<T>
      Returns:
      a newly created instance