Package net.jqwik.api

Class Builders


  • @API(status=MAINTAINED,
         since="1.5.4")
    public class Builders
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <B> Builders.BuilderCombinator<B> withBuilder​(java.util.function.Supplier<B> builderSupplier)
      Combine Arbitraries by means of a builder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • withBuilder

        public static <B> Builders.BuilderCombinator<B> withBuilder​(java.util.function.Supplier<B> builderSupplier)
        Combine Arbitraries by means of a builder.
        Parameters:
        builderSupplier - The supplier will be called freshly for each value generation. For exhaustive generation all supplied objects are supposed to be identical.
        Returns:
        BuilderCombinator instance