public abstract static class StructureQueryConstraint.SimpleFilter extends Object implements StructureQueryConstraint.Sequence
EMPTY
Modifier | Constructor and Description |
---|---|
protected |
SimpleFilter(IntIterator input) |
Modifier and Type | Method and Description |
---|---|
boolean |
advance(StructureQueryConstraint.Acceptor acceptor)
Attempts to advance in this sequence by 0, 1 or more positions
(i.e., attempts to find the next 0, 1 or more matching indices).
|
abstract boolean |
matches(int index)
Returns
true if the row at the specified index matches the criteria. |
protected SimpleFilter(IntIterator input)
input
- the incoming indices to be filtered (from StructureQueryConstraint.filter(IntIterator, List, QueryContext)
public abstract boolean matches(int index)
true
if the row at the specified index matches the criteria.index
- index into the forest being searchedpublic boolean advance(StructureQueryConstraint.Acceptor acceptor)
StructureQueryConstraint.Sequence
acceptor
through calls to acceptor.accept(index)
or acceptor.accept(indices)
.
Return value indicates whether this sequence is capable of producing values: false
indicates the end of this sequence.advance
in interface StructureQueryConstraint.Sequence
acceptor
- accepts members of this sequenceCopyright © 2024 Tempo Software. All Rights Reserved.