File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
base/isomorphism/src/main/java/org/openscience/cdk/isomorphism Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 27
27
import com .google .common .collect .FluentIterable ;
28
28
import com .google .common .collect .ImmutableMap ;
29
29
import com .google .common .collect .Iterables ;
30
- import com .google .common .collect .Iterators ;
31
30
import org .openscience .cdk .graph .GraphUtil ;
32
31
import org .openscience .cdk .interfaces .IAtom ;
33
32
import org .openscience .cdk .interfaces .IAtomContainer ;
40
39
import java .util .Map ;
41
40
import java .util .function .Function ;
42
41
import java .util .function .Predicate ;
42
+ import java .util .stream .StreamSupport ;
43
43
44
44
/**
45
45
* A fluent interface for handling (sub)-graph mappings from a query to a target
@@ -282,7 +282,8 @@ public Mappings uniqueAtoms() {
282
282
283
283
@ Override
284
284
public Iterator <int []> iterator () {
285
- return Iterators .filter (iterable .iterator (), new UniqueAtomMatches ()::test );
285
+ return StreamSupport .stream (iterable .spliterator (), false )
286
+ .filter (new UniqueAtomMatches ()).iterator ();
286
287
}
287
288
});
288
289
}
@@ -302,7 +303,8 @@ public Mappings uniqueBonds() {
302
303
303
304
@ Override
304
305
public Iterator <int []> iterator () {
305
- return Iterators .filter (iterable .iterator (), new UniqueBondMatches (g )::test );
306
+ return StreamSupport .stream (iterable .spliterator (), false )
307
+ .filter (new UniqueBondMatches (g )).iterator ();
306
308
}
307
309
});
308
310
}
You can’t perform that action at this time.
0 commit comments