@Test public void testContains() { for (TimestampMap set : getAllInstances()) { Object[] defaultValues = getTestValues(set); Assert.assertFalse(set.contains(1.0)); set.put(1.0, defaultValues[0]); set.remove(1.0); Assert.assertFalse(set.contains(1.0)); } }
@Override public boolean contains(Double timestamp) { return getIndex(timestamp) >= 0; }
TimestampMap implements TimeMap<Double, T> { @Override public boolean contains(Double timestamp) { return getIndex(timestamp) >= 0; } }
TimestampMap implements TimeMap<Double, T> { @Override public boolean contains(Double timestamp) { return getIndex(timestamp) >= 0; } TimestampMap();  TimestampMap(int capacity); protected  TimestampMap(double[] keys); }
TimestampMap implements TimeMap<Double, T> { @Override public boolean contains(Double timestamp) { return getIndex(timestamp) >= 0; } TimestampMap();  TimestampMap(int capacity); protected  TimestampMap(double[] keys); @Override boolean put(Double timestamp, T value); @Override boolean remove(Double timestamp); @Override T get(Double timestamp, T defaultValue); @Override Object get(Interval interval, Estimator estimator); @Override T[] toValuesArray(); @Override abstract Class<T> getTypeClass(); @Override abstract boolean isSupported(Estimator estimator); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Double timestamp); double[] getTimestamps(); @Override Double[] toKeysArray(); @Override void clear(); @Override int hashCode(); @Override boolean equals(Object obj); String toString(TimeFormat timeFormat, DateTimeZone timeZone); String toString(TimeFormat timeFormat); @Override String toString(); }
TimestampMap implements TimeMap<Double, T> { @Override public boolean contains(Double timestamp) { return getIndex(timestamp) >= 0; } TimestampMap();  TimestampMap(int capacity); protected  TimestampMap(double[] keys); @Override boolean put(Double timestamp, T value); @Override boolean remove(Double timestamp); @Override T get(Double timestamp, T defaultValue); @Override Object get(Interval interval, Estimator estimator); @Override T[] toValuesArray(); @Override abstract Class<T> getTypeClass(); @Override abstract boolean isSupported(Estimator estimator); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Double timestamp); double[] getTimestamps(); @Override Double[] toKeysArray(); @Override void clear(); @Override int hashCode(); @Override boolean equals(Object obj); String toString(TimeFormat timeFormat, DateTimeZone timeZone); String toString(TimeFormat timeFormat); @Override String toString();  }