Package org.openstreetmap.josm.data.osm
Class OsmPrimitiveComparator
java.lang.Object
org.openstreetmap.josm.data.osm.OsmPrimitiveComparator
Comparators for comparing
OsmPrimitive.- Since:
- 4113
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<OsmPrimitive>Returns a comparator comparing primitives by their name usingDefaultNameFormatter.static Comparator<OsmPrimitive>Returns a comparator comparing primitives by their unique id.static Comparator<OsmPrimitive>Returns a comparator ordering the primitives by type in the order NODE, WAY, RELATIONstatic Comparator<OsmPrimitive>Returns a comparator ordering the primitives by type in the order RELATION, WAY, NODEstatic Comparator<OsmPrimitive>Returns a comparator ordering the primitives by type in the order WAY, RELATION, NODE
-
Constructor Details
-
OsmPrimitiveComparator
private OsmPrimitiveComparator()
-
-
Method Details
-
comparingNames
Returns a comparator comparing primitives by their name usingDefaultNameFormatter. Formatted names are cached.- Returns:
- a comparator comparing primitives by their name using
DefaultNameFormatter
-
comparingUniqueId
Returns a comparator comparing primitives by their unique id.- Returns:
- a comparator comparing primitives by their unique id.
-
orderingNodesWaysRelations
Returns a comparator ordering the primitives by type in the order NODE, WAY, RELATION- Returns:
- a comparator ordering the primitives by type in the order NODE, WAY, RELATION
-
orderingWaysRelationsNodes
Returns a comparator ordering the primitives by type in the order WAY, RELATION, NODE- Returns:
- a comparator ordering the primitives by type in the order WAY, RELATION, NODE
-
orderingRelationsWaysNodes
Returns a comparator ordering the primitives by type in the order RELATION, WAY, NODE- Returns:
- a comparator ordering the primitives by type in the order RELATION, WAY, NODE
- Since:
- 11679
-