예제 #1
0
파일: Sum.java 프로젝트: inqwell/inq
 public void visitAnyDouble(DoubleI d) {
   if (count_ > 0) d.setValue(d.getValue() / count_);
   else if (tmp_ == null) {
     sum_ = d.cloneAny();
     if (d.isNull()) isNull_ = true;
   } else {
     DoubleI d2 = (DoubleI) tmp_;
     if (d2.isNull()) {
       d.setNull();
       isNull_ = true;
     } else d.setValue(d.getValue() + d2.getValue());
   }
 }
예제 #2
0
파일: Equals.java 프로젝트: inqwell/inq
 public void visitAnyDouble(DoubleI d) {
   result_ = getBooleanResult(d.equals(op2_));
 }