@Test public void testAddingValuesWithinLowerThreshold() { source.add(0, new Integer(1)); for(int i = 0; i < 5; i ++) { source.add(i, new Integer(0)); source.add(i, new Integer(2)); } thresholdList.setLowerThreshold(1); int originalSize = thresholdList.size(); for(int i = 0; i < 5; i ++) { source.add(i, new Integer(2)); } assertEquals(originalSize + 5, thresholdList.size()); for(int i = 0; i < thresholdList.size(); i ++) { int enumeration = evaluator.evaluate(thresholdList.get(i)); String message = "The value " + enumeration + " is beyond the threshold of 1."; assertEquals(message, true, (enumeration >= 1)); } }
public void setLowerThreshold(E object) { setLowerThreshold(evaluator.evaluate(object)); }
ThresholdList extends RangeList<E> { public void setLowerThreshold(E object) { setLowerThreshold(evaluator.evaluate(object)); } }
ThresholdList extends RangeList<E> { public void setLowerThreshold(E object) { setLowerThreshold(evaluator.evaluate(object)); } ThresholdList(EventList<E> source, String propertyName);  ThresholdList(EventList<E> source, Evaluator<E> evaluator); private  ThresholdList(SortedList<E> sortedSource, Evaluator<E> evaluator); }
ThresholdList extends RangeList<E> { public void setLowerThreshold(E object) { setLowerThreshold(evaluator.evaluate(object)); } ThresholdList(EventList<E> source, String propertyName);  ThresholdList(EventList<E> source, Evaluator<E> evaluator); private  ThresholdList(SortedList<E> sortedSource, Evaluator<E> evaluator); void setLowerThreshold(E object); void setLowerThreshold(int lowerThreshold); int getLowerThreshold(); void setUpperThreshold(E object); void setUpperThreshold(int upperThreshold); int getUpperThreshold(); Evaluator<E> getEvaluator(); @Override boolean contains(Object object); @Override int indexOf(Object object); @Override int lastIndexOf(Object object); @Override void setRange(int startIndex, int endIndex); @Override void setTailRange(int startIndex, int endIndex); @Override int getStartIndex(); @Override int getEndIndex(); @Override void dispose(); }
ThresholdList extends RangeList<E> { public void setLowerThreshold(E object) { setLowerThreshold(evaluator.evaluate(object)); } ThresholdList(EventList<E> source, String propertyName);  ThresholdList(EventList<E> source, Evaluator<E> evaluator); private  ThresholdList(SortedList<E> sortedSource, Evaluator<E> evaluator); void setLowerThreshold(E object); void setLowerThreshold(int lowerThreshold); int getLowerThreshold(); void setUpperThreshold(E object); void setUpperThreshold(int upperThreshold); int getUpperThreshold(); Evaluator<E> getEvaluator(); @Override boolean contains(Object object); @Override int indexOf(Object object); @Override int lastIndexOf(Object object); @Override void setRange(int startIndex, int endIndex); @Override void setTailRange(int startIndex, int endIndex); @Override int getStartIndex(); @Override int getEndIndex(); @Override void dispose();  }