@Test public void testClear() { for (IntervalMap set : getAllInstances()) { Object[] defaultValues = getTestValues(set); set.put(new Interval(1.0, 2.0), defaultValues[0]); set.clear(); Assert.assertEquals(set.size(), 0); Assert.assertTrue(set.isEmpty()); } }
@Override public void clear() { size = 0; array = new double[0]; }
IntervalMap implements TimeMap<Interval, T> { @Override public void clear() { size = 0; array = new double[0]; } }
IntervalMap implements TimeMap<Interval, T> { @Override public void clear() { size = 0; array = new double[0]; } IntervalMap();  IntervalMap(int capacity); protected  IntervalMap(double[] keys); }
IntervalMap implements TimeMap<Interval, T> { @Override public void clear() { size = 0; array = new double[0]; } IntervalMap();  IntervalMap(int capacity); protected  IntervalMap(double[] keys); @Override boolean put(Interval interval, T value); @Override boolean remove(Interval interval); @Override Object get(Interval interval, Estimator estimator); @Override T get(Interval interval, T defaultValue); @Override T[] toValuesArray(); @Override int size(); @Override boolean isEmpty(); boolean contains(double timestamp); @Override boolean contains(Interval interval); @Override Interval[] toKeysArray(); double[] getIntervals(); @Override void clear(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(TimeFormat timeFormat, DateTimeZone timeZone); @Override String toString(TimeFormat timeFormat); @Override String toString(); }
IntervalMap implements TimeMap<Interval, T> { @Override public void clear() { size = 0; array = new double[0]; } IntervalMap();  IntervalMap(int capacity); protected  IntervalMap(double[] keys); @Override boolean put(Interval interval, T value); @Override boolean remove(Interval interval); @Override Object get(Interval interval, Estimator estimator); @Override T get(Interval interval, T defaultValue); @Override T[] toValuesArray(); @Override int size(); @Override boolean isEmpty(); boolean contains(double timestamp); @Override boolean contains(Interval interval); @Override Interval[] toKeysArray(); double[] getIntervals(); @Override void clear(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(TimeFormat timeFormat, DateTimeZone timeZone); @Override String toString(TimeFormat timeFormat); @Override String toString();  }