Class Property.Property2<T1,T2>
java.lang.Object
io.vavr.test.Property.Property2<T1,T2>
- All Implemented Interfaces:
Checkable
- Enclosing class:
Property
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final CheckedFunction2<T1, T2, Property.Condition> Fields inherited from interface Checkable
DEFAULT_SIZE, DEFAULT_TRIES, RNG -
Constructor Summary
ConstructorsConstructorDescriptionProperty2(String name, Arbitrary<T1> a1, Arbitrary<T2> a2, CheckedFunction2<T1, T2, Property.Condition> predicate) -
Method Summary
Modifier and TypeMethodDescriptionChecks this property.implies(CheckedFunction2<T1, T2, Boolean> postcondition) Returns an implication which composes this Property as pre-condition and a given post-condition.
-
Field Details
-
name
-
a1
-
a2
-
predicate
-
-
Constructor Details
-
Property2
Property2(String name, Arbitrary<T1> a1, Arbitrary<T2> a2, CheckedFunction2<T1, T2, Property.Condition> predicate)
-
-
Method Details
-
implies
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
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
-