@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; CoverageDimensionImpl other = (CoverageDimensionImpl) obj; if (description == null) { if (other.description != null) return false; } else if (!description.equals(other.description)) return false; if (dimensionType == null) { if (other.dimensionType != null) return false; } else if (!dimensionType.equals(other.dimensionType)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (nullValues == null) { if (other.nullValues != null) return false; } else if (!nullValues.equals(other.nullValues)) return false; if (range == null) { if (other.range != null) return false; } else if (!range.equals(other.range)) return false; if (unit == null) { if (other.unit != null) return false; } else if (!unit.equals(other.unit)) return false; return true; }