Package org.eclipse.rdf4j.model.util
Class PatternIterator<S extends Statement>
- java.lang.Object
-
- org.eclipse.rdf4j.model.util.PatternIterator<S>
-
- All Implemented Interfaces:
java.util.Iterator<S>
public class PatternIterator<S extends Statement> extends java.lang.Object implements java.util.Iterator<S>Excludes an Iteratorbased on a given basic graph pattern.
-
-
Field Summary
Fields Modifier and Type Field Description private Value[]contextsprivate java.util.Iterator<S>filteredIterprivate booleannextCalledprivate SnextElementprivate Valueobjprivate Valuepredprivate Valuesubj
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaccept(S st)Tests whether or not the specified statement should be returned by this iterator.private voidfindNextElement()booleanhasNext()Snext()private Value[]notNull(Value[] contexts)voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
findNextElement
private void findNextElement()
-
remove
public void remove()
-
accept
protected boolean accept(S st)
Tests whether or not the specified statement should be returned by this iterator. All objects from the wrapped iterator pass through this method in the same order as they are coming from the wrapped iterator.- Parameters:
st- The statement to be tested.- Returns:
- true if the object should be returned, false otherwise.
-
-