@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; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + ((dimensionType == null) ? 0 : dimensionType.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((nullValues == null) ? 0 : nullValues.hashCode()); result = prime * result + ((range == null) ? 0 : range.hashCode()); result = prime * result + ((unit == null) ? 0 : unit.hashCode()); return result; }