Modifier and Type | Class and Description |
---|---|
static class |
SearchCompiler.Always
Matches every OsmPrimitive.
|
static class |
SearchCompiler.And
Matches if both left and right expressions match.
|
private static class |
SearchCompiler.Any
Match a string in any tags (key or value), with optional regex and case insensitivity.
|
private static class |
SearchCompiler.AreaSize
Matches if the size of the area is within the given range
|
static class |
SearchCompiler.BinaryMatch
A binary search operator which may take data parameters.
|
private static class |
SearchCompiler.BooleanMatch
Matches if the value of the corresponding key is ''yes'', ''true'', ''1'' or ''on''.
|
private static class |
SearchCompiler.ChangesetId
Matches objects with a changeset ID in the given range.
|
static class |
SearchCompiler.Child
Matches objects if they are children of the expression
|
private static class |
SearchCompiler.Closed
Matches ways which are closed (i.e.
|
static class |
SearchCompiler.ExactKeyValue
Matches objects with the exact given key-value pair.
|
private static class |
SearchCompiler.ExactType |
private static class |
SearchCompiler.Id
Matches objects with ID in the given range.
|
private static class |
SearchCompiler.InArea
Matches objects within the given bounds.
|
private static class |
SearchCompiler.Incomplete
Match objects that are incomplete, where only id and type are known.
|
private static class |
SearchCompiler.InDataSourceArea
Matches objects within source area ("downloaded area").
|
private static class |
SearchCompiler.InView
Matches objects within current map view.
|
private static class |
SearchCompiler.KeyValue
Matches objects with the given key-value pair.
|
static class |
SearchCompiler.Match
Base class for all search operators.
|
private static class |
SearchCompiler.Modified
Matches all objects that have been modified, created, or undeleted
|
static class |
SearchCompiler.Never
Never matches any OsmPrimitive.
|
private static class |
SearchCompiler.New
Matches objects that are new (i.e.
|
private static class |
SearchCompiler.NodeCountRange
Matches ways with a number of nodes in given range
|
static class |
SearchCompiler.Not
Inverts the match.
|
private static class |
SearchCompiler.Nth
Matches the n-th object of a relation and/or the n-th node of a way.
|
static class |
SearchCompiler.Or
Matches if the left OR the right expression match.
|
static class |
SearchCompiler.Parent
Matches objects if they are parents of the expression
|
private static class |
SearchCompiler.RangeMatch
Matches objects with properties in a certain range.
|
private static class |
SearchCompiler.RoleMatch
Matches objects with the given relation role (i.e.
|
private static class |
SearchCompiler.Selected
Matches all objects currently selected
|
private static class |
SearchCompiler.TagCountRange
Matches objects with a number of tags in given range
|
private static class |
SearchCompiler.TimestampRange
Matches objects with a timestamp in given range
|
static class |
SearchCompiler.UnaryMatch
A unary search operator which may take data parameters.
|
private static class |
SearchCompiler.Untagged
Matches objects that don't have any interesting tags (i.e.
|
private static class |
SearchCompiler.UserMatch
Matches objects last changed by the given username.
|
static class |
SearchCompiler.ValueComparison |
private static class |
SearchCompiler.Version
Matches objects with a version number in the given range.
|
static class |
SearchCompiler.Xor
Matches if the left OR the right expression match, but not both.
|
Modifier and Type | Method and Description |
---|---|
static int |
SearchAction.getSelection(SearchAction.SearchSetting s,
Collection<OsmPrimitive> sel,
Predicate<OsmPrimitive> p) |
Modifier and Type | Class and Description |
---|---|
private static class |
ConflictCollection.FilterPredicate |
Modifier and Type | Field and Description |
---|---|
static Predicate<OsmPrimitive> |
OsmPrimitive.allPredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.isSelectablePredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.isUsablePredicate
Some predicates, that describe conditions on primitives.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.modifiedPredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.multipolygonPredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.nodePredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.nonDeletedCompletePredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.nonDeletedPhysicalPredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.nonDeletedPredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.relationPredicate |
static Predicate<OsmPrimitive> |
OsmPrimitive.wayPredicate |
Modifier and Type | Method and Description |
---|---|
private <T extends OsmPrimitive> |
DataSet.getPrimitives(Predicate<OsmPrimitive> predicate) |
boolean |
Node.isConnectedTo(Collection<Node> otherNodes,
int hops,
Predicate<Node> predicate)
Tests whether
this node is connected to otherNode via at most hops nodes
matching the predicate (which may be null to consider all nodes). |
private boolean |
Node.isConnectedTo(Collection<Node> otherNodes,
int hops,
Predicate<Node> predicate,
Set<Node> visited) |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MapCSSTagChecker.TagCheck |
Modifier and Type | Field and Description |
---|---|
Predicate<OsmPrimitive> |
NavigatableComponent.isSelectablePredicate |
Modifier and Type | Method and Description |
---|---|
List<OsmPrimitive> |
NavigatableComponent.getAllNearest(Point p,
Collection<OsmPrimitive> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
List<OsmPrimitive> |
NavigatableComponent.getAllNearest(Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
Node |
NavigatableComponent.getNearestNode(Point p,
Predicate<OsmPrimitive> predicate)
Convenience method to
NavigatableComponent.getNearestNode(Point, Predicate, boolean) . |
Node |
NavigatableComponent.getNearestNode(Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected)
The *result* depends on the current map selection state IF use_selected is true.
|
Node |
NavigatableComponent.getNearestNode(Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected,
Collection<OsmPrimitive> preferredRefs)
The *result* depends on the current map selection state IF use_selected is true
If more than one node within node.snap-distance pixels is found,
the nearest node selected is returned IF use_selected is true.
|
OsmPrimitive |
NavigatableComponent.getNearestNodeOrWay(Point p,
Predicate<OsmPrimitive> predicate,
boolean use_selected)
The *result* depends on the current map selection state IF use_selected is true.
|
List<Node> |
NavigatableComponent.getNearestNodes(Point p,
Collection<Node> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
List<Node> |
NavigatableComponent.getNearestNodes(Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
private Map<Double,List<Node>> |
NavigatableComponent.getNearestNodesImpl(Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
List<OsmPrimitive> |
NavigatableComponent.getNearestNodesOrWays(Point p,
Collection<OsmPrimitive> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
List<OsmPrimitive> |
NavigatableComponent.getNearestNodesOrWays(Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
Way |
NavigatableComponent.getNearestWay(Point p,
Predicate<OsmPrimitive> predicate)
The *result* depends on the current map selection state.
|
List<Way> |
NavigatableComponent.getNearestWays(Point p,
Collection<Way> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
List<Way> |
NavigatableComponent.getNearestWays(Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
WaySegment |
NavigatableComponent.getNearestWaySegment(Point p,
Predicate<OsmPrimitive> predicate)
Convenience method to
NavigatableComponent.getNearestWaySegment(Point, Predicate, boolean) . |
WaySegment |
NavigatableComponent.getNearestWaySegment(Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected)
The *result* depends on the current map selection state IF use_selected is true.
|
WaySegment |
NavigatableComponent.getNearestWaySegment(Point p,
Predicate<OsmPrimitive> predicate,
boolean use_selected,
Collection<OsmPrimitive> preferredRefs)
The *result* depends on the current map selection state IF use_selected is true.
|
List<WaySegment> |
NavigatableComponent.getNearestWaySegments(Point p,
Collection<WaySegment> ignore,
Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.
|
List<WaySegment> |
NavigatableComponent.getNearestWaySegments(Point p,
Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.
|
private Map<Double,List<WaySegment>> |
NavigatableComponent.getNearestWaySegmentsImpl(Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
Modifier and Type | Field and Description |
---|---|
private Predicate<PrimitiveId> |
HistoryBrowserDialogManager.notNewPredicate |
private Predicate<PrimitiveId> |
HistoryBrowserDialogManager.unloadedHistoryPredicate |
Modifier and Type | Field and Description |
---|---|
Predicate<String> |
Condition.KeyCondition.containsPattern |
Modifier and Type | Class and Description |
---|---|
class |
TaggingPreset
This class read encapsulate one tagging preset.
|
class |
TaggingPresetMenu |
class |
TaggingPresetSeparator
Class used to represent a
JSeparator inside tagging preset menu. |
Modifier and Type | Field and Description |
---|---|
private Predicate<? super S> |
SubclassFilteredCollection.predicate |
Modifier and Type | Method and Description |
---|---|
static <T> Predicate<T> |
Predicates.equalTo(T ref)
Returns a
Predicate executing Objects.equals(java.lang.Object, java.lang.Object) . |
static Predicate<OsmPrimitive> |
Predicates.hasKey(String key)
Returns a
Predicate executing AbstractPrimitive.hasKey(String) . |
static Predicate<OsmPrimitive> |
Predicates.hasTag(String key,
String... values)
Returns a
Predicate executing AbstractPrimitive.hasTag(String, String...) . |
static <T> Predicate<T> |
Predicates.inCollection(Collection<? extends T> target)
Returns a
Predicate executing Collection.contains(Object) . |
static <T> Predicate<T> |
Predicates.isNull()
Returns a
Predicate testing whether objects are null . |
static <T> Predicate<T> |
Predicates.not(Predicate<T> predicate)
Returns the negation of
predicate . |
static Predicate<String> |
Predicates.stringContains(String pattern)
Returns a
Predicate executing String.contains(CharSequence) . |
static Predicate<String> |
Predicates.stringContainsPattern(Pattern pattern)
|
static Predicate<String> |
Predicates.stringMatchesPattern(Pattern pattern)
|
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
Utils.exists(Iterable<? extends T> collection,
Predicate<? super T> predicate)
Tests whether
predicate applies to at least one elements from collection . |
static <T> Collection<T> |
Utils.filter(Collection<? extends T> collection,
Predicate<? super T> predicate) |
static <T> T |
Utils.find(Iterable<? extends T> collection,
Predicate<? super T> predicate) |
static <T> boolean |
Utils.forAll(Iterable<? extends T> collection,
Predicate<? super T> predicate)
Tests whether
predicate applies to all elements from collection . |
static <T> int |
Utils.indexOf(Iterable<? extends T> collection,
Predicate<? super T> predicate) |
static boolean |
Geometry.isNodeInsideMultiPolygon(Node node,
Relation multiPolygon,
Predicate<Way> isOuterWayAMatch)
Tests if the
node is inside the multipolygon multiPolygon . |
static boolean |
Geometry.isPolygonInsideMultiPolygon(List<Node> nodes,
Relation multiPolygon,
Predicate<Way> isOuterWayAMatch)
Tests if the polygon formed by
nodes is inside the multipolygon multiPolygon . |
static <T> Predicate<T> |
Predicates.not(Predicate<T> predicate)
Returns the negation of
predicate . |
Constructor and Description |
---|
FilteredCollection(Collection<? extends T> collection,
Predicate<? super T> predicate)
Constructs a new
FilteredCollection . |
SubclassFilteredCollection(Collection<? extends S> collection,
Predicate<? super S> predicate)
Constructs a new
SubclassFilteredCollection . |
Modifier and Type | Class and Description |
---|---|
private class |
ContextSwitchTemplate.AndSet |
private class |
ContextSwitchTemplate.ChildSet |
private class |
ContextSwitchTemplate.ContextProvider |
private class |
ContextSwitchTemplate.OrSet |
private class |
ContextSwitchTemplate.ParentSet |