public abstract static class SearchCompiler.Match extends 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(Collection<? extends OsmPrimitive> primitives)
Tests whether one of the primitives matches.
|
protected boolean |
forallMatch(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(Collection<? extends OsmPrimitive> primitives)
primitives
- primitivestrue
if one of the primitives matches, false
otherwiseprotected boolean forallMatch(Collection<? extends OsmPrimitive> primitives)
primitives
- primitivestrue
if all primitives match, false
otherwisepublic final boolean evaluate(OsmPrimitive object)
Predicate
evaluate
in interface Predicate<OsmPrimitive>
object
- The object to evaluatetrue
if the object passes the test, false
otherwise