MCPcopy Create free account
hub / github.com/GateNLP/gate-core / nextMatch

Method nextMatch

src/main/java/gate/relations/RelationSet.java:566–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

564 }
565
566 private Relation nextMatch() {
567 Relation oldMatch = nextElement;
568
569 while(iterator.hasNext()) {
570 Relation o = iterator.next();
571
572 if(indexById.containsValue(o)) {
573 hasNext = true;
574 nextElement = o;
575
576 return oldMatch;
577 }
578 }
579
580 hasNext = false;
581
582 return oldMatch;
583 }
584
585 @Override
586 public void remove() {

Callers 2

iteratorMethod · 0.95
nextMethod · 0.95

Calls 3

hasNextMethod · 0.65
nextMethod · 0.65
containsValueMethod · 0.45

Tested by

no test coverage detected