/** Compares the specified object with this envelope for equality. */ @Override public boolean equals(final Object other) { if (!(other instanceof Envelope3D)) { return false; } Envelope3D otherEnvelope = (Envelope3D) other; if (isNull()) { return otherEnvelope.isNull(); } if (super.equals(other) && minz == otherEnvelope.getMinZ() && maxz == otherEnvelope.getMaxZ()) { return true; } return false; }