@Test public void testRemoveType() { EdgeTypeStore edgeTypeStore = new EdgeTypeStore(); int type = edgeTypeStore.addType("0"); type = edgeTypeStore.removeType("0"); Assert.assertEquals(type, 1); Assert.assertFalse(edgeTypeStore.contains("0")); Assert.assertEquals(edgeTypeStore.size(), 1); type = edgeTypeStore.removeType("0"); Assert.assertEquals(type, EdgeTypeStore.NULL_TYPE); }
public int removeType(final Object label) { short id = labelMap.removeShort(label); if (id == NULL_SHORT) { return NULL_TYPE; } idMap.remove(id); garbageQueue.add(id); int intId = shortToInt(id); return intId; }
EdgeTypeStore { public int removeType(final Object label) { short id = labelMap.removeShort(label); if (id == NULL_SHORT) { return NULL_TYPE; } idMap.remove(id); garbageQueue.add(id); int intId = shortToInt(id); return intId; } }
EdgeTypeStore { public int removeType(final Object label) { short id = labelMap.removeShort(label); if (id == NULL_SHORT) { return NULL_TYPE; } idMap.remove(id); garbageQueue.add(id); int intId = shortToInt(id); return intId; } EdgeTypeStore();  EdgeTypeStore(Configuration config); }
EdgeTypeStore { public int removeType(final Object label) { short id = labelMap.removeShort(label); if (id == NULL_SHORT) { return NULL_TYPE; } idMap.remove(id); garbageQueue.add(id); int intId = shortToInt(id); return intId; } 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 int removeType(final Object label) { short id = labelMap.removeShort(label); if (id == NULL_SHORT) { return NULL_TYPE; } idMap.remove(id); garbageQueue.add(id); int intId = shortToInt(id); return intId; } 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; }