Class DuplicateNode.NodeHash
java.lang.Object
org.openstreetmap.josm.data.validation.tests.DuplicateNode.NodeHash
- Enclosing class:
- DuplicateNode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare two instances for semantic or lookup equality.intGet hashcode for given instance, based on some inner state of the instance.protected LatLonprivate LatLonroundCoord(LatLon coor) Returns the rounded coordinated according toprecision
-
Field Details
-
precision
-
-
Constructor Details
-
NodeHash
protected NodeHash()
-
-
Method Details
-
roundCoord
Returns the rounded coordinated according toprecision- See Also:
-
getLatLon
-
equals
Description copied from interface:HashCompare two instances for semantic or lookup equality. For use cases where it compares different types, refer toStorage. -
getHashCode
Description copied from interface:HashGet hashcode for given instance, based on some inner state of the instance. The returned hashcode should remain constant over the time, so it should be based on some instance invariant.- Specified by:
getHashCodein interfaceHash<Object,Object> - Parameters:
k- the object to compute hashcode for- Returns:
- computed hashcode
-