Package net.jqwik.api.arbitraries
Schnittstelle StreamableArbitrary<T extends @Nullable Object,U> 
- Alle Superschnittstellen:
- Arbitrary<U>,- SizableArbitrary<U>
- Alle bekannten Unterschnittstellen:
- ArrayArbitrary<T,,- A> - IteratorArbitrary<T>,- ListArbitrary<T>,- SetArbitrary<T>,- StreamArbitrary<T>
@API(status=MAINTAINED,
     since="1.2.1")
public interface StreamableArbitrary<T extends @Nullable Object,U> 
extends SizableArbitrary<U>
- 
Verschachtelte Klassen - ÜbersichtVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.jqwik.api.ArbitraryArbitrary.ArbitraryFacade
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungofMaxSize(int maxSize) Set upper size boundarymaxSize(included).ofMinSize(int minSize) Set lower size boundaryminSize(included).default StreamableArbitrary<T, U> ofSize(int size) Fix the size tosize.reduce(R initial, BiFunction<R, ? super T, R> accumulator) Given aninitialargument useaccumulatorto produce the final result.Add the constraint that elements of the generated streamable must be unique, i.e. no two elements must return true when being compared using Object.equals(Object).uniqueElements(Function<? super T, ?> by) Add the constraint that elements of the generated streamable must be unique relating to an element's "feature" being extracted using thebyfunction.withSizeDistribution(RandomDistribution distribution) Set distributiondistributionof size of generated arbitraryVon Schnittstelle geerbte Methoden net.jqwik.api.ArbitraryallValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, ignoreException, ignoreExceptions, ignoreExceptions, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
- 
Methodendetails- 
reduceGiven aninitialargument useaccumulatorto produce the final result.- Typparameter:
- R- The result type
- Parameter:
- initial- The initial argument. Also the result if streamable is empty
- accumulator- The function used to reduce a streamable into a result one by one
- Gibt zurück:
- The result of accumulating all elements in streamable
 
- 
ofSizeFix the size tosize.- Angegeben von:
- ofSizein Schnittstelle- SizableArbitrary<T extends @Nullable Object>
 
- 
ofMinSizeSet lower size boundaryminSize(included).- Angegeben von:
- ofMinSizein Schnittstelle- SizableArbitrary<T extends @Nullable Object>
 
- 
ofMaxSizeSet upper size boundarymaxSize(included).- Angegeben von:
- ofMaxSizein Schnittstelle- SizableArbitrary<T extends @Nullable Object>
 
- 
withSizeDistribution@API(status=EXPERIMENTAL, since="1.5.3") StreamableArbitrary<T,U> withSizeDistribution(RandomDistribution distribution) Set distributiondistributionof size of generated arbitrary- Angegeben von:
- withSizeDistributionin Schnittstelle- SizableArbitrary<T extends @Nullable Object>
 
- 
uniqueElementsAdd the constraint that elements of the generated streamable must be unique, i.e. no two elements must return true when being compared using Object.equals(Object).The constraint can be combined with other uniqueElements(Function) constraints. - Gibt zurück:
- new arbitrary instance
 
- 
uniqueElements@API(status=MAINTAINED, since="1.7.3") StreamableArbitrary<T,U> uniqueElements(Function<? super T, ?> by) Add the constraint that elements of the generated streamable must be unique relating to an element's "feature" being extracted using thebyfunction. The extracted features are being compared using Object.equals(Object).The constraint can be combined with other uniqueElements(Function) constraints. - Gibt zurück:
- new arbitrary instance
 
 
-