/** * Returns TRUE when this geometry has exactly same type, properties, and coordinates as the other * geometry. */ @Override public boolean equals(Object _other) { if (_other == this) return true; if (!(_other instanceof Point)) return false; Point otherPt = (Point) _other; if (m_description != otherPt.m_description) return false; if (isEmptyImpl()) if (otherPt.isEmptyImpl()) return true; else return false; for (int i = 0, n = m_description._getTotalComponents(); i < n; i++) if (m_attributes[i] != otherPt.m_attributes[i]) return false; return true; }