Package io.vavr.test
Class Property.Property8<T1,T2,T3,T4,T5,T6,T7,T8>
- java.lang.Object
-
- io.vavr.test.Property.Property8<T1,T2,T3,T4,T5,T6,T7,T8>
-
-
Field Summary
Fields Modifier and Type Field Description private Arbitrary<T1>a1private Arbitrary<T2>a2private Arbitrary<T3>a3private Arbitrary<T4>a4private Arbitrary<T5>a5private Arbitrary<T6>a6private Arbitrary<T7>a7private Arbitrary<T8>a8private java.lang.Stringnameprivate CheckedFunction8<T1,T2,T3,T4,T5,T6,T7,T8,Property.Condition>predicate-
Fields inherited from interface io.vavr.test.Checkable
DEFAULT_SIZE, DEFAULT_TRIES, RNG
-
-
Constructor Summary
Constructors Constructor Description Property8(java.lang.String name, Arbitrary<T1> a1, Arbitrary<T2> a2, Arbitrary<T3> a3, Arbitrary<T4> a4, Arbitrary<T5> a5, Arbitrary<T6> a6, Arbitrary<T7> a7, Arbitrary<T8> a8, CheckedFunction8<T1,T2,T3,T4,T5,T6,T7,T8,Property.Condition> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckResultcheck(java.util.Random random, int size, int tries)Checks this property.Checkableimplies(CheckedFunction8<T1,T2,T3,T4,T5,T6,T7,T8,java.lang.Boolean> postcondition)Returns an implication which composes this Property as pre-condition and a given post-condition.
-
-
-
Field Detail
-
name
private final java.lang.String name
-
predicate
private final CheckedFunction8<T1,T2,T3,T4,T5,T6,T7,T8,Property.Condition> predicate
-
-
Method Detail
-
implies
public Checkable implies(CheckedFunction8<T1,T2,T3,T4,T5,T6,T7,T8,java.lang.Boolean> postcondition)
Returns an implication which composes this Property as pre-condition and a given post-condition.- Parameters:
postcondition- The postcondition of this implication- Returns:
- A new Checkable implication
-
check
public CheckResult check(java.util.Random random, int size, int tries)
Description copied from interface:CheckableChecks this property.- Specified by:
checkin interfaceCheckable- Parameters:
random- An implementation ofRandom.size- A (not necessarily positive) size hint.tries- A non-negative number of tries to falsify the given property.- Returns:
- A CheckResult
-
-