1 package com.calipso.reportgenerator.reportcalculator; 2 3 10 public class LesserAverageOperation extends FilterOperation { 11 private float baseValue; 12 private float total; 13 14 public LesserAverageOperation(float value, float total) { 15 super(); 16 this.baseValue = value; 17 this.total = total; 18 } 19 20 protected boolean accept(SharedFloat value) { 21 return ((value.floatValue() / total) * 100) < baseValue; 22 } 23 } 24 | Popular Tags |