@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Bounds other = (Bounds) obj; if (lowerRight == null) { if (other.lowerRight != null) return false; } else if (!lowerRight.equals(other.lowerRight)) return false; if (upperLeft == null) { if (other.upperLeft != null) return false; } else if (!upperLeft.equals(other.upperLeft)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Bounds other = (Bounds) obj; if (lowerRight == null) { if (other.lowerRight != null) return false; } else if (!lowerRight.equals(other.lowerRight)) return false; if (upperLeft == null) { if (other.upperLeft != null) return false; } else if (!upperLeft.equals(other.upperLeft)) return false; return true; }