Changeset 476 in josm for trunk


Ignore:
Timestamp:
2007-11-30T13:20:42+01:00 (17 years ago)
Author:
gebner
Message:

Add equals and hashCode implementations to the projections.

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Epsg4326.java

    r298 r476  
    3131            return 1.0/360;
    3232    }
     33
     34        @Override public boolean equals(Object o) {
     35                return o instanceof Epsg4326;
     36        }
     37
     38        @Override public int hashCode() {
     39                return Epsg4326.class.hashCode();
     40        }
    3341}
  • trunk/src/org/openstreetmap/josm/data/projection/Mercator.java

    r298 r476  
    3939            return 1/Math.PI/2;
    4040    }
     41
     42        @Override public boolean equals(Object o) {
     43                return o instanceof Mercator;
     44        }
     45
     46        @Override public int hashCode() {
     47                return Mercator.class.hashCode();
     48        }
    4149}
Note: See TracChangeset for help on using the changeset viewer.