Changeset 2982 in josm for trunk/src/org/openstreetmap/josm/data/osm/BBox.java
- Timestamp:
- 2010-02-14T15:01:00+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/BBox.java
r2500 r2982 67 67 ymax = Math.max(ymax, y); 68 68 sanity(); 69 } 70 71 public void add(BBox box) { 72 add(box.getTopLeft()); 73 add(box.getBottomRight()); 69 74 } 70 75 … … 139 144 140 145 @Override 146 public int hashCode() { 147 return (int)(ymin * xmin); 148 } 149 150 @Override 151 public boolean equals(Object o) { 152 if (o instanceof BBox) { 153 BBox b = (BBox)o; 154 return b.xmax == xmax && b.ymax == ymax && b.xmin == xmin && b.ymin == ymin; 155 } else 156 return false; 157 } 158 159 @Override 141 160 public String toString() { 142 161 return "[ x: " + xmin + " -> " + xmax +
Note:
See TracChangeset
for help on using the changeset viewer.