@Test public void testAddTwiceSame() { IntervalIndexStore<Node> store = new IntervalIndexStore<Node>(Node.class, null, false); int a = store.add(new Interval(1.0, 2.0)); int b = store.add(new Interval(1.0, 2.0)); Assert.assertEquals(a, b); Assert.assertTrue(store.contains(new Interval(1.0, 2.0))); Assert.assertEquals(store.size(), 1); Assert.assertEquals(store.getMap().get(new Interval(1.0, 2.0)).intValue(), 0); }
protected Interval2IntTreeMap getMap() { return (Interval2IntTreeMap) timeSortedMap; }
IntervalIndexStore extends TimeIndexStore<T, Interval, IntervalSet, IntervalMap<?>> { protected Interval2IntTreeMap getMap() { return (Interval2IntTreeMap) timeSortedMap; } }
IntervalIndexStore extends TimeIndexStore<T, Interval, IntervalSet, IntervalMap<?>> { protected Interval2IntTreeMap getMap() { return (Interval2IntTreeMap) timeSortedMap; } IntervalIndexStore(Class<T> type, GraphLock lock, boolean indexed); }
IntervalIndexStore extends TimeIndexStore<T, Interval, IntervalSet, IntervalMap<?>> { protected Interval2IntTreeMap getMap() { return (Interval2IntTreeMap) timeSortedMap; } IntervalIndexStore(Class<T> type, GraphLock lock, boolean indexed);  }
IntervalIndexStore extends TimeIndexStore<T, Interval, IntervalSet, IntervalMap<?>> { protected Interval2IntTreeMap getMap() { return (Interval2IntTreeMap) timeSortedMap; } IntervalIndexStore(Class<T> type, GraphLock lock, boolean indexed);   }