t
132133134135136137138139140141142
{ if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : triples ) g.performAdd(t) ; graph.getEventManager().notifyAddArray(graph, triples) ; } else { for (Triple t : triples )
148149150151152153154155156157158
{ if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : triples) g.performAdd(t) ; graph.getEventManager().notifyAddList(graph, triples) ; } else { for (Triple t : triples) graph.add(t) ;
165166167168169170171172173174175
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)
189190191192193194195196197198199
List<Triple> s = IteratorCollection.iteratorToList( it ); if ( OldStyle && graph instanceof GraphWithPerform ) { GraphWithPerform g = (GraphWithPerform)graph ; for (Triple t : s ) g.performAdd(t) ; } else { for (Triple t : s ) graph.add(t) ;