public abstract static class SearchCompiler.Match extends java.lang.Object implements Predicate<OsmPrimitive>
SearchCompiler.TaggedMatch.| Constructor and Description |
|---|
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)
Tests whether the primitive matches this criterion.
|
boolean |
match(Tagged tagged)
Tests whether the tagged object matches this criterion.
|
public Match()
public abstract boolean match(OsmPrimitive osm)
osm - the primitive to testpublic boolean match(Tagged tagged)
tagged - the tagged object to testprotected boolean existsMatch(java.util.Collection<? extends OsmPrimitive> primitives)
primitives - primitivestrue if one of the primitives matches, false otherwiseprotected boolean forallMatch(java.util.Collection<? extends OsmPrimitive> primitives)
primitives - primitivestrue if all primitives match, false otherwisepublic final boolean evaluate(OsmPrimitive object)
Predicateevaluate in interface Predicate<OsmPrimitive>object - The object to evaluatetrue if the object passes the test, false otherwise