IntRangeArbitrary

data class IntRangeArbitrary(min: Int, max: Int, minSize: Int, maxSize: Int) : ArbitraryDecorator<IntRange> , SizableArbitrary<IntRange>

Constructors

IntRangeArbitrary
Link copied to clipboard
fun IntRangeArbitrary()

Functions

allValues
Link copied to clipboard
open fun allValues(): Optional<Stream<IntRange>>
array
Link copied to clipboard
open fun <A : Any> array(p0: Class<A>): ArrayArbitrary<IntRange, A>
asGeneric
Link copied to clipboard
@API(status = API.Status.INTERNAL)
open fun asGeneric(): Arbitrary<Any>
between
Link copied to clipboard
fun between(min: Int, max: Int): IntRangeArbitrary
collect
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun collect(p0: Predicate<MutableList<IntRange>>): Arbitrary<MutableList<IntRange>>
dontShrink
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.4.0")
open fun dontShrink(): Arbitrary<IntRange>
edgeCases
Link copied to clipboard
@API(status = API.Status.EXPERIMENTAL, since = "1.3.0")
open fun edgeCases(): EdgeCases<IntRange>
open override fun edgeCases(p0: Int): EdgeCases<IntRange>
@API(status = API.Status.EXPERIMENTAL, since = "1.3.9")
open fun edgeCases(p0: Consumer<EdgeCases.Config<IntRange>>): Arbitrary<IntRange>
exhaustive
Link copied to clipboard
@API(status = API.Status.INTERNAL)
open fun exhaustive(): Optional<ExhaustiveGenerator<IntRange>>
open override fun exhaustive(p0: Long): Optional<ExhaustiveGenerator<IntRange>>
filter
Link copied to clipboard
open fun filter(p0: Predicate<IntRange>): Arbitrary<IntRange>
@API(status = API.Status.EXPERIMENTAL, since = "1.6.1")
open fun filter(p0: Predicate<IntRange>, p1: Int): Arbitrary<IntRange>
fixGenSize
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.2.0")
open fun fixGenSize(p0: Int): Arbitrary<IntRange>
flatMap
Link copied to clipboard
open fun <U : Any> flatMap(p0: Function<IntRange, Arbitrary<U>>): Arbitrary<U>
forEachValue
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.1.2")
open fun forEachValue(p0: Consumer<in IntRange>)
generator
Link copied to clipboard
open override fun generator(p0: Int): RandomGenerator<IntRange>
@API(status = API.Status.INTERNAL, since = "1.4.0")
open fun generator(p0: Int, p1: Boolean): RandomGenerator<IntRange>
generatorWithEmbeddedEdgeCases
Link copied to clipboard
open override fun generatorWithEmbeddedEdgeCases(p0: Int): RandomGenerator<IntRange>
ignoreException
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.1")
open fun ignoreException(p0: Class<out Throwable>): Arbitrary<IntRange>
injectDuplicates
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun injectDuplicates(p0: Double): Arbitrary<IntRange>
injectNull
Link copied to clipboard
open fun injectNull(p0: Double): Arbitrary<IntRange>
iterator
Link copied to clipboard
open operator fun iterator(): IteratorArbitrary<IntRange>
list
Link copied to clipboard
open fun list(): ListArbitrary<IntRange>
map
Link copied to clipboard
open fun <U : Any> map(p0: Function<IntRange, U>): Arbitrary<U>
ofMaxSize
Link copied to clipboard
open override fun ofMaxSize(maxSize: Int): IntRangeArbitrary

Set upper size boundary maxSize (included).

ofMinSize
Link copied to clipboard
open override fun ofMinSize(minSize: Int): IntRangeArbitrary

Set lower size boundary minSize (included).

ofSize
Link copied to clipboard
open override fun ofSize(size: Int): IntRangeArbitrary

Fix the size (the difference between first and last value of a range).

fun ofSize(range: IntRange): IntRangeArbitrary

Set min and max size (the difference between first and last value of a range).

optional
Link copied to clipboard
open fun optional(): Arbitrary<Optional<IntRange>>
@API(status = API.Status.MAINTAINED, since = "1.5.4")
open fun optional(p0: Double): Arbitrary<Optional<IntRange>>
sample
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun sample(): IntRange
sampleStream
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun sampleStream(): Stream<IntRange>
set
Link copied to clipboard
open fun set(): SetArbitrary<IntRange>
stream
Link copied to clipboard
open fun stream(): StreamArbitrary<IntRange>
tuple1
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun tuple1(): Arbitrary<Tuple.Tuple1<IntRange>>
tuple2
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun tuple2(): Arbitrary<Tuple.Tuple2<IntRange, IntRange>>
tuple3
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun tuple3(): Arbitrary<Tuple.Tuple3<IntRange, IntRange, IntRange>>
tuple4
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.0")
open fun tuple4(): Arbitrary<Tuple.Tuple4<IntRange, IntRange, IntRange, IntRange>>
tuple5
Link copied to clipboard
@API(status = API.Status.MAINTAINED, since = "1.3.3")
open fun tuple5(): Arbitrary<Tuple.Tuple5<IntRange, IntRange, IntRange, IntRange, IntRange>>
typedClone
Link copied to clipboard
open fun <A : Arbitrary<*>> typedClone(): A
withoutEdgeCases
Link copied to clipboard
@API(status = API.Status.EXPERIMENTAL, since = "1.4.0")
open fun withoutEdgeCases(): Arbitrary<IntRange>
withSizeDistribution
Link copied to clipboard
open override fun withSizeDistribution(distribution: RandomDistribution): SizableArbitrary<IntRange>