Ignore:
Timestamp:
2014-05-29T08:49:43+02:00 (10 years ago)
Author:
bastiK
Message:

see #9914 - automatic update for imagery entries using id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/Shape.java

    r7005 r7186  
    77import java.util.ArrayList;
    88import java.util.List;
     9import java.util.Objects;
    910
    1011import org.openstreetmap.gui.jmapviewer.Coordinate;
     
    8485        coords.add(new Coordinate(LatLon.roundToOsmPrecision(lat), LatLon.roundToOsmPrecision(lon)));
    8586    }
     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   
    86111}
Note: See TracChangeset for help on using the changeset viewer.