public static void delete(Graph graph, Iterator<Triple> it) { if ( OldStyle && graph instanceof GraphWithPerform ) { // Materialize for the notify. List<Triple> s = IteratorCollection.iteratorToList(it) ; deleteIteratorWorkerDirect(graph, s.iterator()); graph.getEventManager().notifyDeleteIterator(graph, s) ; } else deleteIteratorWorker(graph, it); }
public static void delete(Graph graph, Iterator<Triple> it) { if ( OldStyle && graph instanceof GraphWithPerform ) { // Materialize for the notify. List<Triple> s = IteratorCollection.iteratorToList(it) ; deleteIteratorWorkerDirect(graph, s.iterator()); graph.getEventManager().notifyDeleteIterator(graph, s) ; } else deleteIteratorWorker(graph, it); }
/** * Test that deleting an iterator is reported as a deleting an iterator. */ @ContractTest public void testDeleteIterator() { gem.register(L); List<Triple> elems = Arrays.asList(tripleArray); gem.notifyDeleteIterator(mockGraph, elems.iterator()); L.assertHas(new Object[] { "deleteIterator", mockGraph, elems }); }
/** * Test that deleting an iterator is reported as a deleting an iterator. */ @ContractTest public void testDeleteIterator() { gem.register(L); List<Triple> elems = Arrays.asList(tripleArray); gem.notifyDeleteIterator(mockGraph, elems.iterator()); L.assertHas(new Object[] { "deleteIterator", mockGraph, elems }); }
/** * Test that deleting a list as an iterator is reported as deleting an * iterator. */ @ContractTest public void testDeleteListAsIterator() { gem.register(L); List<Triple> elems = Arrays.asList(tripleArray); gem.notifyDeleteIterator(mockGraph, elems); L.assertHas(new Object[] { "deleteIterator", mockGraph, elems }); }
/** * Test that deleting a list as an iterator is reported as deleting an * iterator. */ @ContractTest public void testDeleteListAsIterator() { gem.register(L); List<Triple> elems = Arrays.asList(tripleArray); gem.notifyDeleteIterator(mockGraph, elems); L.assertHas(new Object[] { "deleteIterator", mockGraph, elems }); }