|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fxpal.search.reverted.filters.BasisQueryWrapper
public class BasisQueryWrapper
Base class for composing filters for basis queries.
Subclasses will override hasNext() or next()
methods.
Subclasses of this class can be composed into chains of filters.
When the instance runs out of terms to iterate over, it will call
the close() method. Subclasses should close resources
by overriding this method, and calling super.close();.
| Constructor Summary | |
|---|---|
BasisQueryWrapper(BasisQuerySource source)
Default constructor |
|
| Method Summary | |
|---|---|
void |
close()
If the source is a BasisQuerySource,
close will be called on the source as well. |
boolean |
hasNext()
Returns true if there are more queries to process. |
java.util.Iterator<BasisQuery> |
iterator()
Returns this instance. |
BasisQuery |
next()
Returns the next available query from the source |
void |
remove()
These collections are read-only. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasisQueryWrapper(BasisQuerySource source)
source - Source of basis queries that the instance wraps| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<BasisQuery>public BasisQuery next()
next in interface java.util.Iterator<BasisQuery>public void remove()
remove in interface java.util.Iterator<BasisQuery>public java.util.Iterator<BasisQuery> iterator()
iterator in interface java.lang.Iterable<BasisQuery>public void close()
BasisQuerySource,
close will be called on the source as well.
This allows BasisQueryStream instances to
co-exist with simple Iterators.
close in interface BasisQuerySource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||