Class NumberCondition<N extends Number>
java.lang.Object
uk.org.webcompere.modelassert.json.condition.NumberCondition<N>
- Type Parameters:
N- the type of number being compared with
- All Implemented Interfaces:
Condition
Numeric comparisons
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNumberCondition(Class<N> requiredType, N expected, NumberCondition.Comparison comparison) Construct a number condition for a specific numeric typeNumberCondition(N expected, NumberCondition.Comparison comparison) Construct a number condition for any numeric type -
Method Summary
-
Constructor Details
-
NumberCondition
Construct a number condition for any numeric type- Parameters:
expected- the expected valuecomparison- the comparison to be true
-
NumberCondition
Construct a number condition for a specific numeric type- Parameters:
requiredType- the type of number the value must beexpected- the expected valuecomparison- the comparison to be true
-
-
Method Details