@Test public void testUpdatingAtUpperThresholdWithNoValuesAtThreshold() { source.add(0, new Integer(5)); for(int i = 0; i < 5; i ++) { source.add(i, new Integer(0)); source.add(i, new Integer(10)); } thresholdList.setUpperThreshold(7); int originalSize = thresholdList.size(); source.add(0, new Integer(8)); source.set(0, new Integer(6)); assertEquals(originalSize + 1, thresholdList.size()); assertEquals(new Integer(6), thresholdList.get(thresholdList.size() - 1)); originalSize = thresholdList.size(); source.set(0, new Integer(9)); assertEquals(originalSize - 1, thresholdList.size()); assertEquals(new Integer(5), thresholdList.get(thresholdList.size() - 1)); originalSize = thresholdList.size(); source.set(0, new Integer(7)); assertEquals(originalSize + 1, thresholdList.size()); assertEquals(new Integer(7), thresholdList.get(thresholdList.size() - 1)); }
public void setUpperThreshold(E object) { setUpperThreshold(evaluator.evaluate(object)); }
ThresholdList extends RangeList<E> { public void setUpperThreshold(E object) { setUpperThreshold(evaluator.evaluate(object)); } }
ThresholdList extends RangeList<E> { public void setUpperThreshold(E object) { setUpperThreshold(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 setUpperThreshold(E object) { setUpperThreshold(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 setUpperThreshold(E object) { setUpperThreshold(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();  }