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[]
contexts
private java.util.Iterator<S>
filteredIter
private boolean
nextCalled
private S
nextElement
private Value
obj
private Value
pred
private Value
subj
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
accept(S st)
Tests whether or not the specified statement should be returned by this iterator.private void
findNextElement()
boolean
hasNext()
S
next()
private Value[]
notNull(Value[] contexts)
void
remove()
-
-
-
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.
-
-