01: package com.calipso.reportgenerator.reportcalculator;
02:
03: /**
04: *
05: * User: jbassino
06: * Date: 12-may-2005
07: * Time: 16:47:17
08: * Calipso Software
09: */
10: public class RangeOperation extends FilterOperation {
11: private float baseValue;
12: private float roofValue;
13:
14: public RangeOperation(float from, float to) {
15: super ();
16: this .baseValue = from;
17: this .roofValue = to;
18: }
19:
20: protected boolean accept(SharedFloat value) {
21: return (value.floatValue() > baseValue && value.floatValue() < roofValue);
22: }
23:
24: }
|