public class ThresholdPredicate
extends java.lang.Object
implements org.apache.commons.collections.Predicate
Modifier and Type | Field and Description |
---|---|
protected boolean |
greater_equal |
protected double |
threshold |
Constructor and Description |
---|
ThresholdPredicate(double threshold,
boolean greater_equal)
Creates a ThresholdPredicate with the specified threshold value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.lang.Object arg0) |
public ThresholdPredicate(double threshold, boolean greater_equal)
greater_equal
is true, only objects whose double
values are greater than or equal to threshold
will evaluate to
true
; otherwise, only objects whose values are less
than or equal will evaluate to true.threshold
- the threshold valuegreater_equal
-