Package io.vavr.test
Class Property.Property4<T1,T2,T3,T4>
- java.lang.Object
-
- io.vavr.test.Property.Property4<T1,T2,T3,T4>
-
-
Field Summary
Fields Modifier and Type Field Description private Arbitrary<T1>a1private Arbitrary<T2>a2private Arbitrary<T3>a3private Arbitrary<T4>a4private java.lang.Stringnameprivate CheckedFunction4<T1,T2,T3,T4,Property.Condition>predicate-
Fields inherited from interface io.vavr.test.Checkable
DEFAULT_SIZE, DEFAULT_TRIES, RNG
-
-
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(CheckedFunction4<T1,T2,T3,T4,java.lang.Boolean> postcondition)Returns an implication which composes this Property as pre-condition and a given post-condition.
-
-
-
Method Detail
-
implies
public Checkable implies(CheckedFunction4<T1,T2,T3,T4,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
-
-