@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof DiscreteRect))
			return false;
		DiscreteRect other = (DiscreteRect) obj;
		if (xInterval == null) {
			if (other.xInterval != null)
				return false;
		} else if (!xInterval.equals(other.xInterval))
			return false;
		if (yInterval == null) {
			if (other.yInterval != null)
				return false;
		} else if (!yInterval.equals(other.yInterval))
			return false;
		return true;
	}