Exemple #1
0
 public RangePred(C low, C high) {
   if (low.doubleValue() > high.doubleValue()) {
     throw new IllegalArgumentException("low can not be higher than high");
   }
   this.low = low;
   this.high = high;
 }
Exemple #2
0
 @Override
 public Boolean run(C arg) {
   return low.doubleValue() <= arg.doubleValue() && arg.doubleValue() < high.doubleValue();
 }