@Override @Deprecated public void add( Iterator<Triple> it ) { List<Triple> s = IteratorCollection.iteratorToList( it ); base.add( s ); manager.notifyAddIterator( graph, s ); }
public void addIterator( Iterator<Triple> it, boolean notify ) { List<Triple> s = IteratorCollection.iteratorToList( it ); add( s, false ); if (notify) manager.notifyAddIterator( graph, s ); }
public static void add(Graph graph, Iterator<Triple> it) { // Materialize to avoid ConcurrentModificationException. List<Triple> s = IteratorCollection.iteratorToList(it) ; if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : s) g.performAdd(t) ; graph.getEventManager().notifyAddIterator(graph, s) ; } else { for (Triple t : s) graph.add(t) ; } }