public final class Arbitrary<A>
extends java.lang.Object
A
). Common
arbitrary implementations are provided.Modifier and Type | Field and Description |
---|---|
static Arbitrary<java.lang.String> |
arbAlphaNumString
An arbitrary implementation for string values with alpha-numeric characters.
|
static Arbitrary<java.math.BigDecimal> |
arbBigDecimal
An arbitrary implementation for big decimals.
|
static Arbitrary<java.math.BigInteger> |
arbBigInteger
An arbitrary implementation for big integers.
|
static Arbitrary<java.util.BitSet> |
arbBitSet
An arbitrary implementation for bit sets.
|
static Arbitrary<java.lang.Boolean> |
arbBoolean
An arbitrary implementation for boolean values.
|
static Arbitrary<java.lang.Byte> |
arbByte
An arbitrary implementation for byte values.
|
static Arbitrary<java.lang.Byte> |
arbByteBoundaries
An arbitrary implementation for byte values that checks boundary values
(0, 1, -1, max,
min, max - 1, min + 1) with a frequency of 1% each then generates from arbByte
the remainder of the time (93%). |
static Arbitrary<java.util.Calendar> |
arbCalendar
An arbitrary implementation for calendars.
|
static Arbitrary<java.lang.Character> |
arbCharacter
An arbitrary implementation for character values.
|
static Arbitrary<java.lang.Character> |
arbCharacterBoundaries
An arbitrary implementation for character values that checks boundary values
(max, min,
max - 1, min + 1) with a frequency of 1% each then generates from arbCharacter
the remainder of the time (96%). |
static Arbitrary<java.util.Date> |
arbDate
An arbitrary implementation for dates.
|
static Arbitrary<java.lang.Double> |
arbDouble
An arbitrary implementation for double values.
|
static Arbitrary<java.lang.Double> |
arbDoubleBoundaries
An arbitrary implementation for double values that checks boundary values
(0, 1, -1, max,
min, min (normal), NaN, -infinity, infinity, max - 1) with a frequency of 1% each then
generates from arbDouble the remainder of the time (91%). |
static Arbitrary<java.lang.Float> |
arbFloat
An arbitrary implementation for float values.
|
static Arbitrary<java.lang.Float> |
arbFloatBoundaries
An arbitrary implementation for float values that checks boundary values
(0, 1, -1, max,
min, NaN, -infinity, infinity, max - 1) with a frequency of 1% each then generates from
arbFloat the remainder of the time (91%). |
static Arbitrary<java.util.GregorianCalendar> |
arbGregorianCalendar
An arbitrary implementation for gregorian calendars.
|
static Arbitrary<java.lang.Integer> |
arbInteger
An arbitrary implementation for integer values.
|
static Arbitrary<java.lang.Integer> |
arbIntegerBoundaries
An arbitrary implementation for integer values that checks boundary values
(0, 1, -1,
max, min, max - 1, min + 1) with a frequency of 1% each then generates from arbInteger the remainder of the time (93%). |
static Arbitrary<java.util.Locale> |
arbLocale
An arbitrary implementation for locales.
|
static Arbitrary<java.lang.Long> |
arbLong
An arbitrary implementation for long values.
|
static Arbitrary<java.lang.Long> |
arbLongBoundaries
An arbitrary implementation for long values that checks boundary values
(0, 1, -1, max,
min, max - 1, min + 1) with a frequency of 1% each then generates from arbLong
the remainder of the time (93%). |
static Arbitrary<java.util.Properties> |
arbProperties
An arbitrary implementation for properties.
|
static Arbitrary<java.lang.Short> |
arbShort
An arbitrary implementation for short values.
|
static Arbitrary<java.lang.Short> |
arbShortBoundaries
An arbitrary implementation for short values that checks boundary values
(0, 1, -1, max,
min, max - 1, min + 1) with a frequency of 1% each then generates from arbShort
the remainder of the time (93%). |
static Arbitrary<java.sql.Date> |
arbSQLDate
An arbitrary implementation for SQL dates.
|
static Arbitrary<java.lang.String> |
arbString
An arbitrary implementation for string values.
|
static Arbitrary<java.lang.StringBuffer> |
arbStringBuffer
An arbitrary implementation for string buffer values.
|
static Arbitrary<java.lang.StringBuilder> |
arbStringBuilder
An arbitrary implementation for string builder values.
|
static Arbitrary<java.lang.Throwable> |
arbThrowable
An arbitrary implementation for throwables.
|
static Arbitrary<java.sql.Time> |
arbTime
An arbitrary implementation for SQL times.
|
static Arbitrary<java.sql.Timestamp> |
arbTimestamp
An arbitrary implementation for SQL time stamps.
|
static Arbitrary<java.lang.String> |
arbUSASCIIString
An arbitrary implementation for string values with characters in the US-ASCII range.
|
Gen<A> |
gen
The generator associated with this arbitrary.
|
Modifier and Type | Method and Description |
---|---|
static <A> Arbitrary<Array<A>> |
arbArray(Arbitrary<A> aa)
Returns an arbitrary implementation for arrays.
|
static <A> Arbitrary<java.util.concurrent.ArrayBlockingQueue<A>> |
arbArrayBlockingQueue(Arbitrary<A> aa)
Returns an arbitrary implementation for array blocking queues.
|
static <A> Arbitrary<java.util.ArrayList<A>> |
arbArrayList(Arbitrary<A> aa)
Returns an arbitrary implementation for array lists.
|
static <K,V> Arbitrary<java.util.concurrent.ConcurrentHashMap<K,V>> |
arbConcurrentHashMap(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for concurrent hash maps.
|
static <A> Arbitrary<java.util.concurrent.ConcurrentLinkedQueue<A>> |
arbConcurrentLinkedQueue(Arbitrary<A> aa)
Returns an arbitrary implementation for concurrent linked queues.
|
static <A> Arbitrary<java.util.concurrent.CopyOnWriteArrayList<A>> |
arbCopyOnWriteArrayList(Arbitrary<A> aa)
Returns an arbitrary implementation for copy-on-write array lists.
|
static <A> Arbitrary<java.util.concurrent.CopyOnWriteArraySet<A>> |
arbCopyOnWriteArraySet(Arbitrary<A> aa)
Returns an arbitrary implementation for copy-on-write array sets.
|
static <A extends java.util.concurrent.Delayed> |
arbDelayQueue(Arbitrary<A> aa)
Returns an arbitrary implementation for delay queues.
|
static <A,B> Arbitrary<Either<A,B>> |
arbEither(Arbitrary<A> aa,
Arbitrary<B> ab)
Returns an arbitrary implementation for the disjoint union.
|
static <K extends java.lang.Enum<K>,V> |
arbEnumMap(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for enum maps.
|
static <A extends java.lang.Enum<A>> |
arbEnumSet(Arbitrary<A> aa)
Returns an arbitrary implementation for enum sets.
|
static <A extends java.lang.Enum<A>> |
arbEnumValue(java.lang.Class<A> clazz)
Returns an arbitrary implementation for a Java enumeration.
|
static <A,B> Arbitrary<F<A,B>> |
arbF(Coarbitrary<A> c,
Arbitrary<B> a)
An arbitrary for functions.
|
static <A,B,C> Arbitrary<F2<A,B,C>> |
arbF2(Coarbitrary<A> ca,
Coarbitrary<B> cb,
Arbitrary<C> a)
An arbitrary for function-2.
|
static <A,B,C> Arbitrary<F2<A,B,C>> |
arbF2Invariant(Arbitrary<C> a)
An arbitrary for function-2.
|
static <A,B,C,D> Arbitrary<F3<A,B,C,D>> |
arbF3(Coarbitrary<A> ca,
Coarbitrary<B> cb,
Coarbitrary<C> cc,
Arbitrary<D> a)
An arbitrary for function-3.
|
static <A,B,C,D> Arbitrary<F3<A,B,C,D>> |
arbF3Invariant(Arbitrary<D> a)
An arbitrary for function-3.
|
static <A,B,C,D,E> |
arbF4(Coarbitrary<A> ca,
Coarbitrary<B> cb,
Coarbitrary<C> cc,
Coarbitrary<D> cd,
Arbitrary<E> a)
An arbitrary for function-4.
|
static <A,B,C,D,E> |
arbF4Invariant(Arbitrary<E> a)
An arbitrary for function-4.
|
static <A,B,C,D,E,F$> |
arbF5(Coarbitrary<A> ca,
Coarbitrary<B> cb,
Coarbitrary<C> cc,
Coarbitrary<D> cd,
Coarbitrary<E> ce,
Arbitrary<F$> a)
An arbitrary for function-5.
|
static <A,B,C,D,E,F$> |
arbF5Invariant(Arbitrary<F$> a)
An arbitrary for function-5.
|
static <A,B,C,D,E,F$,G> |
arbF6(Coarbitrary<A> ca,
Coarbitrary<B> cb,
Coarbitrary<C> cc,
Coarbitrary<D> cd,
Coarbitrary<E> ce,
Coarbitrary<F$> cf,
Arbitrary<G> a)
An arbitrary for function-6.
|
static <A,B,C,D,E,F$,G> |
arbF6Invariant(Arbitrary<G> a)
An arbitrary for function-6.
|
static <A,B,C,D,E,F$,G,H> |
arbF7(Coarbitrary<A> ca,
Coarbitrary<B> cb,
Coarbitrary<C> cc,
Coarbitrary<D> cd,
Coarbitrary<E> ce,
Coarbitrary<F$> cf,
Coarbitrary<G> cg,
Arbitrary<H> a)
An arbitrary for function-7.
|
static <A,B,C,D,E,F$,G,H> |
arbF7Invariant(Arbitrary<H> a)
An arbitrary for function-7.
|
static <A,B,C,D,E,F$,G,H,I> |
arbF8(Coarbitrary<A> ca,
Coarbitrary<B> cb,
Coarbitrary<C> cc,
Coarbitrary<D> cd,
Coarbitrary<E> ce,
Coarbitrary<F$> cf,
Coarbitrary<G> cg,
Coarbitrary<H> ch,
Arbitrary<I> a)
An arbitrary for function-8.
|
static <A,B,C,D,E,F$,G,H,I> |
arbF8Invariant(Arbitrary<I> a)
An arbitrary for function-8.
|
static <A,B> Arbitrary<F<A,B>> |
arbFInvariant(Arbitrary<B> a)
An arbitrary for functions.
|
static <A> Arbitrary<Gen<A>> |
arbGen(Arbitrary<A> aa)
Returns an arbitrary implementation for generators.
|
static <K,V> Arbitrary<java.util.HashMap<K,V>> |
arbHashMap(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for hash maps.
|
static <A> Arbitrary<java.util.HashSet<A>> |
arbHashSet(Arbitrary<A> aa)
Returns an arbitrary implementation for hash sets.
|
static <K,V> Arbitrary<java.util.Hashtable<K,V>> |
arbHashtable(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for hash tables.
|
static <K,V> Arbitrary<java.util.IdentityHashMap<K,V>> |
arbIdentityHashMap(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for identity hash maps.
|
static <A> Arbitrary<A> |
arbitrary(Gen<A> g)
Constructs and arbitrary with the given generator.
|
static <A> Arbitrary<LcgRng> |
arbLcgRng()
An arbitrary for the LcgRng.
|
static <A> Arbitrary<java.util.concurrent.LinkedBlockingQueue<A>> |
arbLinkedBlockingQueue(Arbitrary<A> aa)
Returns an arbitrary implementation for linked blocking queues.
|
static <K,V> Arbitrary<java.util.LinkedHashMap<K,V>> |
arbLinkedHashMap(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for linked hash maps.
|
static <A> Arbitrary<java.util.LinkedHashSet<A>> |
arbLinkedHashSet(Arbitrary<A> aa)
Returns an arbitrary implementation for hash sets.
|
static <A> Arbitrary<java.util.LinkedList<A>> |
arbLinkedList(Arbitrary<A> aa)
Returns an arbitrary implementation for linked lists.
|
static <A> Arbitrary<List<A>> |
arbList(Arbitrary<A> aa)
Returns an arbitrary implementation for lists.
|
static <A> Arbitrary<Option<A>> |
arbOption(Arbitrary<A> aa)
Returns an arbitrary implementation for optional values.
|
static <A> Arbitrary<P1<A>> |
arbP1(Arbitrary<A> aa)
Returns an arbitrary implementation for product-1 values.
|
static <A,B> Arbitrary<P2<A,B>> |
arbP2(Arbitrary<A> aa,
Arbitrary<B> ab)
Returns an arbitrary implementation for product-2 values.
|
static <A,B,C> Arbitrary<P3<A,B,C>> |
arbP3(Arbitrary<A> aa,
Arbitrary<B> ab,
Arbitrary<C> ac)
Returns an arbitrary implementation for product-3 values.
|
static <A,B,C,D> Arbitrary<P4<A,B,C,D>> |
arbP4(Arbitrary<A> aa,
Arbitrary<B> ab,
Arbitrary<C> ac,
Arbitrary<D> ad)
Returns an arbitrary implementation for product-4 values.
|
static <A,B,C,D,E> |
arbP5(Arbitrary<A> aa,
Arbitrary<B> ab,
Arbitrary<C> ac,
Arbitrary<D> ad,
Arbitrary<E> ae)
Returns an arbitrary implementation for product-5 values.
|
static <A,B,C,D,E,F$> |
arbP6(Arbitrary<A> aa,
Arbitrary<B> ab,
Arbitrary<C> ac,
Arbitrary<D> ad,
Arbitrary<E> ae,
Arbitrary<F$> af)
Returns an arbitrary implementation for product-6 values.
|
static <A,B,C,D,E,F$,G> |
arbP7(Arbitrary<A> aa,
Arbitrary<B> ab,
Arbitrary<C> ac,
Arbitrary<D> ad,
Arbitrary<E> ae,
Arbitrary<F$> af,
Arbitrary<G> ag)
Returns an arbitrary implementation for product-7 values.
|
static <A,B,C,D,E,F$,G,H> |
arbP8(Arbitrary<A> aa,
Arbitrary<B> ab,
Arbitrary<C> ac,
Arbitrary<D> ad,
Arbitrary<E> ae,
Arbitrary<F$> af,
Arbitrary<G> ag,
Arbitrary<H> ah)
Returns an arbitrary implementation for product-8 values.
|
static <A> Arbitrary<java.util.concurrent.PriorityBlockingQueue<A>> |
arbPriorityBlockingQueue(Arbitrary<A> aa)
Returns an arbitrary implementation for priority blocking queues.
|
static <A> Arbitrary<java.util.PriorityQueue<A>> |
arbPriorityQueue(Arbitrary<A> aa)
Returns an arbitrary implementation for priority queues.
|
static <A,B> Arbitrary<Reader<A,B>> |
arbReader(Coarbitrary<A> aa,
Arbitrary<B> ab) |
static <A> Arbitrary<java.util.Stack<A>> |
arbStack(Arbitrary<A> aa)
Returns an arbitrary implementation for stacks.
|
static <S,A> Arbitrary<State<S,A>> |
arbState(Arbitrary<S> as,
Coarbitrary<S> cs,
Arbitrary<A> aa)
An arbitrary for state.
|
static <A> Arbitrary<Stream<A>> |
arbStream(Arbitrary<A> aa)
Returns an arbitrary implementation for streams.
|
static <A> Arbitrary<java.util.concurrent.SynchronousQueue<A>> |
arbSynchronousQueue(Arbitrary<A> aa)
Returns an arbitrary implementation for priority blocking queues.
|
static Arbitrary<java.lang.Throwable> |
arbThrowable(Arbitrary<java.lang.String> as)
Returns an arbitrary implementation for throwables.
|
static <K,V> Arbitrary<java.util.TreeMap<K,V>> |
arbTreeMap(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for tree maps.
|
static <A> Arbitrary<java.util.TreeSet<A>> |
arbTreeSet(Arbitrary<A> aa)
Returns an arbitrary implementation for tree sets.
|
static <A> Arbitrary<java.util.Vector<A>> |
arbVector(Arbitrary<A> aa)
Returns an arbitrary implementation for vectors.
|
static <K,V> Arbitrary<java.util.WeakHashMap<K,V>> |
arbWeakHashMap(Arbitrary<K> ak,
Arbitrary<V> av)
Returns an arbitrary implementation for weak hash maps.
|
public static final Arbitrary<java.lang.Boolean> arbBoolean
public static final Arbitrary<java.lang.Integer> arbInteger
public static final Arbitrary<java.lang.Integer> arbIntegerBoundaries
(0, 1, -1,
max, min, max - 1, min + 1)
with a frequency of 1% each then generates from arbInteger
the remainder of the time (93%).public static final Arbitrary<java.lang.Long> arbLong
public static final Arbitrary<java.lang.Long> arbLongBoundaries
(0, 1, -1, max,
min, max - 1, min + 1)
with a frequency of 1% each then generates from arbLong
the remainder of the time (93%).public static final Arbitrary<java.lang.Byte> arbByte
public static final Arbitrary<java.lang.Byte> arbByteBoundaries
(0, 1, -1, max,
min, max - 1, min + 1)
with a frequency of 1% each then generates from arbByte
the remainder of the time (93%).public static final Arbitrary<java.lang.Short> arbShort
public static final Arbitrary<java.lang.Short> arbShortBoundaries
(0, 1, -1, max,
min, max - 1, min + 1)
with a frequency of 1% each then generates from arbShort
the remainder of the time (93%).public static final Arbitrary<java.lang.Character> arbCharacter
public static final Arbitrary<java.lang.Character> arbCharacterBoundaries
(max, min,
max - 1, min + 1)
with a frequency of 1% each then generates from arbCharacter
the remainder of the time (96%).public static final Arbitrary<java.lang.Double> arbDouble
public static final Arbitrary<java.lang.Double> arbDoubleBoundaries
(0, 1, -1, max,
min, min (normal), NaN, -infinity, infinity, max - 1)
with a frequency of 1% each then
generates from arbDouble
the remainder of the time (91%).public static final Arbitrary<java.lang.Float> arbFloat
public static final Arbitrary<java.lang.Float> arbFloatBoundaries
(0, 1, -1, max,
min, NaN, -infinity, infinity, max - 1)
with a frequency of 1% each then generates from
arbFloat
the remainder of the time (91%).public static final Arbitrary<java.lang.String> arbString
public static final Arbitrary<java.lang.String> arbUSASCIIString
public static final Arbitrary<java.lang.String> arbAlphaNumString
public static final Arbitrary<java.lang.StringBuffer> arbStringBuffer
public static final Arbitrary<java.lang.StringBuilder> arbStringBuilder
public static final Arbitrary<java.lang.Throwable> arbThrowable
public static final Arbitrary<java.util.BitSet> arbBitSet
public static final Arbitrary<java.util.Calendar> arbCalendar
public static final Arbitrary<java.util.Date> arbDate
public static final Arbitrary<java.util.GregorianCalendar> arbGregorianCalendar
public static final Arbitrary<java.util.Properties> arbProperties
public static final Arbitrary<java.sql.Date> arbSQLDate
public static final Arbitrary<java.sql.Time> arbTime
public static final Arbitrary<java.sql.Timestamp> arbTimestamp
public static final Arbitrary<java.math.BigInteger> arbBigInteger
public static final Arbitrary<java.math.BigDecimal> arbBigDecimal
public static final Arbitrary<java.util.Locale> arbLocale
public static <A> Arbitrary<A> arbitrary(Gen<A> g)
g
- The generator to construct an arbitrary with.public static <A,B> Arbitrary<F<A,B>> arbF(Coarbitrary<A> c, Arbitrary<B> a)
c
- The coarbitrary for the function domain.a
- The arbitrary for the function codomain.public static <A,B> Arbitrary<Reader<A,B>> arbReader(Coarbitrary<A> aa, Arbitrary<B> ab)
public static <S,A> Arbitrary<State<S,A>> arbState(Arbitrary<S> as, Coarbitrary<S> cs, Arbitrary<A> aa)
public static <A,B> Arbitrary<F<A,B>> arbFInvariant(Arbitrary<B> a)
a
- The arbitrary for the function codomain.public static <A,B,C> Arbitrary<F2<A,B,C>> arbF2(Coarbitrary<A> ca, Coarbitrary<B> cb, Arbitrary<C> a)
ca
- A coarbitrary for the part of the domain of the function.cb
- A coarbitrary for the part of the domain of the function.a
- An arbitrary for the codomain of the function.public static <A,B,C> Arbitrary<F2<A,B,C>> arbF2Invariant(Arbitrary<C> a)
a
- The arbitrary for the function codomain.public static <A,B,C,D> Arbitrary<F3<A,B,C,D>> arbF3(Coarbitrary<A> ca, Coarbitrary<B> cb, Coarbitrary<C> cc, Arbitrary<D> a)
ca
- A coarbitrary for the part of the domain of the function.cb
- A coarbitrary for the part of the domain of the function.cc
- A coarbitrary for the part of the domain of the function.a
- An arbitrary for the codomain of the function.public static <A,B,C,D> Arbitrary<F3<A,B,C,D>> arbF3Invariant(Arbitrary<D> a)
a
- The arbitrary for the function codomain.public static <A,B,C,D,E> Arbitrary<F4<A,B,C,D,E>> arbF4(Coarbitrary<A> ca, Coarbitrary<B> cb, Coarbitrary<C> cc, Coarbitrary<D> cd, Arbitrary<E> a)
ca
- A coarbitrary for the part of the domain of the function.cb
- A coarbitrary for the part of the domain of the function.cc
- A coarbitrary for the part of the domain of the function.cd
- A coarbitrary for the part of the domain of the function.a
- An arbitrary for the codomain of the function.public static <A,B,C,D,E> Arbitrary<F4<A,B,C,D,E>> arbF4Invariant(Arbitrary<E> a)
a
- The arbitrary for the function codomain.public static <A,B,C,D,E,F$> Arbitrary<F5<A,B,C,D,E,F$>> arbF5(Coarbitrary<A> ca, Coarbitrary<B> cb, Coarbitrary<C> cc, Coarbitrary<D> cd, Coarbitrary<E> ce, Arbitrary<F$> a)
ca
- A coarbitrary for the part of the domain of the function.cb
- A coarbitrary for the part of the domain of the function.cc
- A coarbitrary for the part of the domain of the function.cd
- A coarbitrary for the part of the domain of the function.ce
- A coarbitrary for the part of the domain of the function.a
- An arbitrary for the codomain of the function.public static <A,B,C,D,E,F$> Arbitrary<F5<A,B,C,D,E,F$>> arbF5Invariant(Arbitrary<F$> a)
a
- The arbitrary for the function codomain.public static <A,B,C,D,E,F$,G> Arbitrary<F6<A,B,C,D,E,F$,G>> arbF6(Coarbitrary<A> ca, Coarbitrary<B> cb, Coarbitrary<C> cc, Coarbitrary<D> cd, Coarbitrary<E> ce, Coarbitrary<F$> cf, Arbitrary<G> a)
ca
- A coarbitrary for the part of the domain of the function.cb
- A coarbitrary for the part of the domain of the function.cc
- A coarbitrary for the part of the domain of the function.cd
- A coarbitrary for the part of the domain of the function.ce
- A coarbitrary for the part of the domain of the function.cf
- A coarbitrary for the part of the domain of the function.a
- An arbitrary for the codomain of the function.public static <A,B,C,D,E,F$,G> Arbitrary<F6<A,B,C,D,E,F$,G>> arbF6Invariant(Arbitrary<G> a)
a
- The arbitrary for the function codomain.public static <A,B,C,D,E,F$,G,H> Arbitrary<F7<A,B,C,D,E,F$,G,H>> arbF7(Coarbitrary<A> ca, Coarbitrary<B> cb, Coarbitrary<C> cc, Coarbitrary<D> cd, Coarbitrary<E> ce, Coarbitrary<F$> cf, Coarbitrary<G> cg, Arbitrary<H> a)
ca
- A coarbitrary for the part of the domain of the function.cb
- A coarbitrary for the part of the domain of the function.cc
- A coarbitrary for the part of the domain of the function.cd
- A coarbitrary for the part of the domain of the function.ce
- A coarbitrary for the part of the domain of the function.cf
- A coarbitrary for the part of the domain of the function.cg
- A coarbitrary for the part of the domain of the function.a
- An arbitrary for the codomain of the function.public static <A,B,C,D,E,F$,G,H> Arbitrary<F7<A,B,C,D,E,F$,G,H>> arbF7Invariant(Arbitrary<H> a)
a
- The arbitrary for the function codomain.public static <A,B,C,D,E,F$,G,H,I> Arbitrary<F8<A,B,C,D,E,F$,G,H,I>> arbF8(Coarbitrary<A> ca, Coarbitrary<B> cb, Coarbitrary<C> cc, Coarbitrary<D> cd, Coarbitrary<E> ce, Coarbitrary<F$> cf, Coarbitrary<G> cg, Coarbitrary<H> ch, Arbitrary<I> a)
ca
- A coarbitrary for the part of the domain of the function.cb
- A coarbitrary for the part of the domain of the function.cc
- A coarbitrary for the part of the domain of the function.cd
- A coarbitrary for the part of the domain of the function.ce
- A coarbitrary for the part of the domain of the function.cf
- A coarbitrary for the part of the domain of the function.cg
- A coarbitrary for the part of the domain of the function.ch
- A coarbitrary for the part of the domain of the function.a
- An arbitrary for the codomain of the function.public static <A,B,C,D,E,F$,G,H,I> Arbitrary<F8<A,B,C,D,E,F$,G,H,I>> arbF8Invariant(Arbitrary<I> a)
a
- The arbitrary for the function codomain.public static <A> Arbitrary<Gen<A>> arbGen(Arbitrary<A> aa)
aa
- an arbitrary implementation for the type over which the generator is defined.public static <A> Arbitrary<Option<A>> arbOption(Arbitrary<A> aa)
aa
- an arbitrary implementation for the type over which the optional value is defined.public static <A,B> Arbitrary<Either<A,B>> arbEither(Arbitrary<A> aa, Arbitrary<B> ab)
aa
- An arbitrary implementation for the type over which one side of the disjoint union is
defined.ab
- An arbitrary implementation for the type over which one side of the disjoint union is
defined.public static <A> Arbitrary<List<A>> arbList(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the list is defined.public static <A> Arbitrary<Stream<A>> arbStream(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the stream is defined.public static <A> Arbitrary<Array<A>> arbArray(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the array is defined.public static Arbitrary<java.lang.Throwable> arbThrowable(Arbitrary<java.lang.String> as)
as
- An arbitrary used for the throwable message.public static <A> Arbitrary<java.util.ArrayList<A>> arbArrayList(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the array list is defined.public static <A extends java.lang.Enum<A>> Arbitrary<A> arbEnumValue(java.lang.Class<A> clazz)
clazz
- The type of enum to return an arbtrary of.public static <K extends java.lang.Enum<K>,V> Arbitrary<java.util.EnumMap<K,V>> arbEnumMap(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the enum map's keys are defined.av
- An arbitrary implementation for the type over which the enum map's values are
defined.public static <A extends java.lang.Enum<A>> Arbitrary<java.util.EnumSet<A>> arbEnumSet(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the enum set is defined.public static <K,V> Arbitrary<java.util.HashMap<K,V>> arbHashMap(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the hash map's keys are defined.av
- An arbitrary implementation for the type over which the hash map's values are
defined.public static <A> Arbitrary<java.util.HashSet<A>> arbHashSet(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the hash set is defined.public static <K,V> Arbitrary<java.util.Hashtable<K,V>> arbHashtable(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the hash table's keys are
defined.av
- An arbitrary implementation for the type over which the hash table's values are
defined.public static <K,V> Arbitrary<java.util.IdentityHashMap<K,V>> arbIdentityHashMap(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the identity hash map's keys are
defined.av
- An arbitrary implementation for the type over which the identity hash map's values
are defined.public static <K,V> Arbitrary<java.util.LinkedHashMap<K,V>> arbLinkedHashMap(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the linked hash map's keys are
defined.av
- An arbitrary implementation for the type over which the linked hash map's values are
defined.public static <A> Arbitrary<java.util.LinkedHashSet<A>> arbLinkedHashSet(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the hash set is defined.public static <A> Arbitrary<java.util.LinkedList<A>> arbLinkedList(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the linked list is defined.public static <A> Arbitrary<java.util.PriorityQueue<A>> arbPriorityQueue(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the priority queue is defined.public static <A> Arbitrary<java.util.Stack<A>> arbStack(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the stack is defined.public static <K,V> Arbitrary<java.util.TreeMap<K,V>> arbTreeMap(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the tree map's keys are defined.av
- An arbitrary implementation for the type over which the tree map's values are
defined.public static <A> Arbitrary<java.util.TreeSet<A>> arbTreeSet(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the tree set is defined.public static <A> Arbitrary<java.util.Vector<A>> arbVector(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the vector is defined.public static <K,V> Arbitrary<java.util.WeakHashMap<K,V>> arbWeakHashMap(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the weak hash map's keys are
defined.av
- An arbitrary implementation for the type over which the weak hash map's values are
defined.public static <A> Arbitrary<java.util.concurrent.ArrayBlockingQueue<A>> arbArrayBlockingQueue(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the array blocking queue is
defined.public static <K,V> Arbitrary<java.util.concurrent.ConcurrentHashMap<K,V>> arbConcurrentHashMap(Arbitrary<K> ak, Arbitrary<V> av)
ak
- An arbitrary implementation for the type over which the concurrent hash map's keys
are defined.av
- An arbitrary implementation for the type over which the concurrent hash map's values
are defined.public static <A> Arbitrary<java.util.concurrent.ConcurrentLinkedQueue<A>> arbConcurrentLinkedQueue(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the concurrent linked queue is
defined.public static <A> Arbitrary<java.util.concurrent.CopyOnWriteArrayList<A>> arbCopyOnWriteArrayList(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the copy-on-write array list is
defined.public static <A> Arbitrary<java.util.concurrent.CopyOnWriteArraySet<A>> arbCopyOnWriteArraySet(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the copy-on-write array set is
defined.public static <A extends java.util.concurrent.Delayed> Arbitrary<java.util.concurrent.DelayQueue<A>> arbDelayQueue(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the delay queue is defined.public static <A> Arbitrary<java.util.concurrent.LinkedBlockingQueue<A>> arbLinkedBlockingQueue(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the linked blocking queue is
defined.public static <A> Arbitrary<java.util.concurrent.PriorityBlockingQueue<A>> arbPriorityBlockingQueue(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the priority blocking queue is
defined.public static <A> Arbitrary<java.util.concurrent.SynchronousQueue<A>> arbSynchronousQueue(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the priority blocking queue is
defined.public static <A> Arbitrary<P1<A>> arbP1(Arbitrary<A> aa)
aa
- An arbitrary implementation for the type over which the product-1 is defined.public static <A,B> Arbitrary<P2<A,B>> arbP2(Arbitrary<A> aa, Arbitrary<B> ab)
aa
- An arbitrary implementation for one of the types over which the product-2 is
defined.ab
- An Arbitrary implementation for one of the types over which the product-2 is
defined.public static <A,B,C> Arbitrary<P3<A,B,C>> arbP3(Arbitrary<A> aa, Arbitrary<B> ab, Arbitrary<C> ac)
aa
- An arbitrary implementation for one of the types over which the product-3 is
defined.ab
- An Arbitrary implementation for one of the types over which the product-3 is
defined.ac
- An arbitrary implementation for one of the types over which the product-3 is
defined.public static <A,B,C,D> Arbitrary<P4<A,B,C,D>> arbP4(Arbitrary<A> aa, Arbitrary<B> ab, Arbitrary<C> ac, Arbitrary<D> ad)
aa
- An arbitrary implementation for one of the types over which the product-4 is
defined.ab
- An Arbitrary implementation for one of the types over which the product-4 is
defined.ac
- An arbitrary implementation for one of the types over which the product-4 is
defined.ad
- An arbitrary implementation for one of the types over which the product-4 is
defined.public static <A,B,C,D,E> Arbitrary<P5<A,B,C,D,E>> arbP5(Arbitrary<A> aa, Arbitrary<B> ab, Arbitrary<C> ac, Arbitrary<D> ad, Arbitrary<E> ae)
aa
- An arbitrary implementation for one of the types over which the product-5 is
defined.ab
- An Arbitrary implementation for one of the types over which the product-5 is
defined.ac
- An arbitrary implementation for one of the types over which the product-5 is
defined.ad
- An arbitrary implementation for one of the types over which the product-5 is
defined.ae
- An arbitrary implementation for one of the types over which the product-5 is
defined.public static <A,B,C,D,E,F$> Arbitrary<P6<A,B,C,D,E,F$>> arbP6(Arbitrary<A> aa, Arbitrary<B> ab, Arbitrary<C> ac, Arbitrary<D> ad, Arbitrary<E> ae, Arbitrary<F$> af)
aa
- An arbitrary implementation for one of the types over which the product-6 is
defined.ab
- An Arbitrary implementation for one of the types over which the product-6 is
defined.ac
- An arbitrary implementation for one of the types over which the product-6 is
defined.ad
- An arbitrary implementation for one of the types over which the product-6 is
defined.ae
- An arbitrary implementation for one of the types over which the product-6 is
defined.af
- An arbitrary implementation for one of the types over which the product-7 is
defined.public static <A,B,C,D,E,F$,G> Arbitrary<P7<A,B,C,D,E,F$,G>> arbP7(Arbitrary<A> aa, Arbitrary<B> ab, Arbitrary<C> ac, Arbitrary<D> ad, Arbitrary<E> ae, Arbitrary<F$> af, Arbitrary<G> ag)
aa
- An arbitrary implementation for one of the types over which the product-7 is
defined.ab
- An Arbitrary implementation for one of the types over which the product-7 is
defined.ac
- An arbitrary implementation for one of the types over which the product-7 is
defined.ad
- An arbitrary implementation for one of the types over which the product-7 is
defined.ae
- An arbitrary implementation for one of the types over which the product-7 is
defined.af
- An arbitrary implementation for one of the types over which the product-7 is
defined.ag
- An arbitrary implementation for one of the types over which the product-8 is
defined.public static <A,B,C,D,E,F$,G,H> Arbitrary<P8<A,B,C,D,E,F$,G,H>> arbP8(Arbitrary<A> aa, Arbitrary<B> ab, Arbitrary<C> ac, Arbitrary<D> ad, Arbitrary<E> ae, Arbitrary<F$> af, Arbitrary<G> ag, Arbitrary<H> ah)
aa
- An arbitrary implementation for one of the types over which the product-8 is
defined.ab
- An Arbitrary implementation for one of the types over which the product-8 is
defined.ac
- An arbitrary implementation for one of the types over which the product-8 is
defined.ad
- An arbitrary implementation for one of the types over which the product-8 is
defined.ae
- An arbitrary implementation for one of the types over which the product-8 is
defined.af
- An arbitrary implementation for one of the types over which the product-8 is
defined.ag
- An arbitrary implementation for one of the types over which the product-8 is
defined.ah
- An arbitrary implementation for one of the types over which the product-8 is
defined.