@Test public void testClear() { EdgeTypeStore edgeTypeStore = new EdgeTypeStore(); edgeTypeStore.addType("0"); edgeTypeStore.addType("1"); edgeTypeStore.removeType("0"); edgeTypeStore.clear(); Assert.assertEquals(edgeTypeStore.size(), 1); Assert.assertTrue(edgeTypeStore.contains(null)); Assert.assertTrue(edgeTypeStore.garbageQueue.isEmpty()); }
public void clear() { labelMap.clear(); idMap.clear(); garbageQueue.clear(); length = 0; short id = intToShort(NULL_LABEL); length++; labelMap.put(null, id); idMap.put(id, null); }
EdgeTypeStore { public void clear() { labelMap.clear(); idMap.clear(); garbageQueue.clear(); length = 0; short id = intToShort(NULL_LABEL); length++; labelMap.put(null, id); idMap.put(id, null); } }
EdgeTypeStore { public void clear() { labelMap.clear(); idMap.clear(); garbageQueue.clear(); length = 0; short id = intToShort(NULL_LABEL); length++; labelMap.put(null, id); idMap.put(id, null); } EdgeTypeStore();  EdgeTypeStore(Configuration config); }
EdgeTypeStore { public void clear() { labelMap.clear(); idMap.clear(); garbageQueue.clear(); length = 0; short id = intToShort(NULL_LABEL); length++; labelMap.put(null, id); idMap.put(id, null); } EdgeTypeStore();  EdgeTypeStore(Configuration config); int getId(final Object label); Object getLabel(final int id); int addType(final Object label); boolean addType(final Object label, final int id); int removeType(final Object label); Object removeType(final int type); Object[] getLabels(); int[] getIdsAsInts(); boolean contains(final Object label); boolean contains(final int id); void clear(); int size(); int deepHashCode(); boolean deepEquals(Object obj); }
EdgeTypeStore { public void clear() { labelMap.clear(); idMap.clear(); garbageQueue.clear(); length = 0; short id = intToShort(NULL_LABEL); length++; labelMap.put(null, id); idMap.put(id, null); } EdgeTypeStore();  EdgeTypeStore(Configuration config); int getId(final Object label); Object getLabel(final int id); int addType(final Object label); boolean addType(final Object label, final int id); int removeType(final Object label); Object removeType(final int type); Object[] getLabels(); int[] getIdsAsInts(); boolean contains(final Object label); boolean contains(final int id); void clear(); int size(); int deepHashCode(); boolean deepEquals(Object obj); final static int MAX_SIZE; }