EdgeTypeStore { public boolean contains(final Object label) { return labelMap.containsKey(label); } 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; }
@Test public void testContains() { EdgeTypeStore edgeTypeStore = new EdgeTypeStore(); int type = edgeTypeStore.addType("0"); Assert.assertTrue(edgeTypeStore.contains(type)); }