Class ContextSwitchTemplate.OrSet
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
-
- org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.ContextProvider
-
- org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.OrSet
-
- All Implemented Interfaces:
java.util.function.Predicate<OsmPrimitive>
- Enclosing class:
- ContextSwitchTemplate
private static class ContextSwitchTemplate.OrSet extends ContextSwitchTemplate.ContextProvider
-
-
Field Summary
Fields Modifier and Type Field Description private ContextSwitchTemplate.ContextProviderlhsprivate ContextSwitchTemplate.ContextProviderrhs-
Fields inherited from class org.openstreetmap.josm.tools.template_engine.ContextSwitchTemplate.ContextProvider
condition
-
-
Constructor Summary
Constructors Constructor Description OrSet(ContextSwitchTemplate.ContextProvider lhs, ContextSwitchTemplate.ContextProvider rhs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)(package private) java.util.List<OsmPrimitive>getPrimitives(OsmPrimitive root)inthashCode()booleanmatch(OsmPrimitive osm)Tests whether the primitive matches this criterion.-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchCompiler.Match
match, test, validate
-
-
-
-
Field Detail
-
lhs
private final ContextSwitchTemplate.ContextProvider lhs
-
rhs
private final ContextSwitchTemplate.ContextProvider rhs
-
-
Method Detail
-
match
public boolean match(OsmPrimitive osm)
Description copied from class:SearchCompiler.MatchTests whether the primitive matches this criterion.- Specified by:
matchin classSearchCompiler.Match- Parameters:
osm- the primitive to test- Returns:
- true if the primitive matches this criterion
-
getPrimitives
java.util.List<OsmPrimitive> getPrimitives(OsmPrimitive root)
- Specified by:
getPrimitivesin classContextSwitchTemplate.ContextProvider
-
hashCode
public int hashCode()
- Overrides:
hashCodein classContextSwitchTemplate.ContextProvider
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classContextSwitchTemplate.ContextProvider
-
-