if (Math.abs(value.doubleValue()) > total) {\r
filtered.addValue(value, (Comparable) row, (Comparable)column);\r
} else {\r
- // TODO : what is proper way to handle negative values?\r
- other += Math.abs(value.doubleValue()); \r
+ other += value.doubleValue(); \r
}\r
}\r
- if (other > 0.0) {\r
+ if (Math.abs(other) > 0.0) {\r
filtered.addValue(other, this.other, (Comparable)column);\r
}\r
}\r
if (Math.abs(value.doubleValue()) > total) {\r
filtered.addValue(value, (Comparable) row, (Comparable)column);\r
} else {\r
- // TODO : what is proper way to handle negative values?\r
- other += Math.abs(value.doubleValue()); \r
+ other += value.doubleValue(); \r
}\r
}\r
- if (other > 0.0) {\r
+ if (Math.abs(other) > 0.0) {\r
filtered.addValue(other, (Comparable)row, this.other);\r
}\r
}\r