Class Comparables
java.lang.Object
com.pholser.junit.quickcheck.internal.Comparables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
Predicate<T>inRange(T min, T max) static <T extends Comparable<? super T>>
TleastMagnitude(T min, T max, T zero)
-
Constructor Details
-
Comparables
private Comparables()
-
-
Method Details
-
inRange
-
leastMagnitude
- Returns:
- the value with the lowest magnitude between the min, max and zero.
- [-10, 5] = 0
- [-10, -5] = -5
- [5, 10] = 5
- [-5, 0] = 0
- [0, 5] = 0
-