Package org.openstreetmap.josm.data.osm
Class PrimitiveComparator
java.lang.Object
org.openstreetmap.josm.data.osm.PrimitiveComparator
Comparators for comparing
IPrimitive.- Since:
- 13803
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<IPrimitive>Returns a comparator comparing primitives by their name usingDefaultNameFormatter.static Comparator<IPrimitive>Returns a comparator comparing primitives by their unique id.(package private) static <T extends IPrimitive>
Comparator<T>(package private) static <T extends IPrimitive>
Comparator<T>(package private) static <T extends IPrimitive>
Comparator<T>(package private) static <T extends IPrimitive>
Comparator<T>(package private) static <T extends IPrimitive>
Comparator<T>private static <T,R> Function<T, R> static Comparator<IPrimitive>Returns a comparator ordering the primitives by type in the order NODE, WAY, RELATIONstatic Comparator<IPrimitive>Returns a comparator ordering the primitives by type in the order RELATION, WAY, NODEstatic Comparator<IPrimitive>Returns a comparator ordering the primitives by type in the order WAY, RELATION, NODE
-
Constructor Details
-
PrimitiveComparator
private PrimitiveComparator()
-
-
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
-
doComparingNames
-
comparingUniqueId
Returns a comparator comparing primitives by their unique id.- Returns:
- a comparator comparing primitives by their unique id.
-
doComparingUniqueId
-
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
-
doOrderingNodesWaysRelations
-
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
-
doOrderingWaysRelationsNodes
-
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
-
doOrderingRelationsWaysNodes
-
memoize
-