Package net.jqwik.api

Class Combinators.ListCombinator<T>

  • Enclosing class:
    Combinators

    public static class Combinators.ListCombinator<T>
    extends java.lang.Object
    Combinator for any number of values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <@NotNull R>
      Arbitrary<R>
      as​(java.util.function.Function<java.util.List<T>,​@NotNull R> combinator)
      Combine any number of values.
      <R> Arbitrary<R> flatAs​(java.util.function.Function<java.util.List<T>,​Arbitrary<R>> flatCombinator)  
      • Methods inherited from class java.lang.Object

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

      • as

        public <@NotNull R> Arbitrary<R> as​(java.util.function.Function<java.util.List<T>,​@NotNull R> combinator)
        Combine any number of values.
        Type Parameters:
        R - return type
        Parameters:
        combinator - function
        Returns:
        arbitrary instance
      • flatAs

        public <R> Arbitrary<R> flatAs​(java.util.function.Function<java.util.List<T>,​Arbitrary<R>> flatCombinator)