public boolean equals(Object proj) { if (!(proj instanceof RotatedPole)) { return false; } RotatedPole oo = (RotatedPole) proj; if ((this.getDefaultMapArea() == null) != (oo.defaultMapArea == null)) return false; // common case is that these are null if (this.getDefaultMapArea() != null && !this.defaultMapArea.equals(oo.defaultMapArea)) return false; return this.getNorthPole().equals(oo.getNorthPole()); }