Changeset 18217 in josm for trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
- Timestamp:
- 2021-09-12T03:22:18+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r17188 r18217 12 12 import java.util.LinkedList; 13 13 import java.util.List; 14 import java.util.Objects; 14 15 15 16 import javax.swing.JOptionPane; … … 113 114 public int compareTo(PolarNode o) { 114 115 return Double.compare(a, o.a); 116 } 117 118 @Override 119 public int hashCode() { 120 return Objects.hash(a, node); 121 } 122 123 @Override 124 public boolean equals(Object obj) { 125 if (this == obj) 126 return true; 127 if (obj == null || getClass() != obj.getClass()) 128 return false; 129 PolarNode other = (PolarNode) obj; 130 return Double.doubleToLongBits(a) == Double.doubleToLongBits(other.a) && Objects.equals(node, other.node); 115 131 } 116 132 }
Note:
See TracChangeset
for help on using the changeset viewer.