public abstract static class SearchCompiler.Match extends java.lang.Object implements Predicate<OsmPrimitive>
Constructor and Description |
---|
SearchCompiler.Match() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(OsmPrimitive object)
Determines whether the object passes the test or not
|
protected boolean |
existsMatch(java.util.Collection<? extends OsmPrimitive> primitives)
Tests whether one of the primitives matches.
|
protected boolean |
forallMatch(java.util.Collection<? extends OsmPrimitive> primitives)
Tests whether all primitives match.
|
abstract boolean |
match(OsmPrimitive osm) |
public SearchCompiler.Match()
public abstract boolean match(OsmPrimitive osm)
protected boolean existsMatch(java.util.Collection<? extends OsmPrimitive> primitives)
protected boolean forallMatch(java.util.Collection<? extends OsmPrimitive> primitives)
public final boolean evaluate(OsmPrimitive object)
Predicate
evaluate
in interface Predicate<OsmPrimitive>
object
- The object to evaluatetrue
if the object passes the test, false
otherwise