Changeset 7186 in josm for trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
- Timestamp:
- 2014-05-29T08:49:43+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
r7005 r7186 7 7 import java.util.ArrayList; 8 8 import java.util.List; 9 import java.util.Objects; 9 10 10 11 import org.openstreetmap.gui.jmapviewer.Coordinate; … … 84 85 coords.add(new Coordinate(LatLon.roundToOsmPrecision(lat), LatLon.roundToOsmPrecision(lon))); 85 86 } 87 88 @Override 89 public int hashCode() { 90 int hash = 5; 91 hash = 47 * hash + Objects.hashCode(this.coords); 92 return hash; 93 } 94 95 @Override 96 public boolean equals(Object obj) { 97 if (obj == null) { 98 return false; 99 } 100 if (getClass() != obj.getClass()) { 101 return false; 102 } 103 final Shape other = (Shape) obj; 104 if (!Objects.equals(this.coords, other.coords)) { 105 return false; 106 } 107 return true; 108 } 109 110 86 111 }
Note:
See TracChangeset
for help on using the changeset viewer.