@Override public int hashCode() { int result = getClass().hashCode(); if (getName() != null) { result = 37 * result + getName().hashCode(); } if (getType() != null) { result = 37 * result + getType().hashCode(); } if (getUnit() != null) { result = 37 * result + getUnit().hashCode(); } if (getValue() != null) { result = 37 * result + getValue().hashCode(); } return result; }
@Override public int hashCode() { int result = getClass().hashCode(); if (getName() != null) { result = 37 * result + getName().hashCode(); } if (getType() != null) { result = 37 * result + getType().hashCode(); } if (getUnit() != null) { result = 37 * result + getUnit().hashCode(); } if (getValue() != null) { result = 37 * result + getValue().hashCode(); } return result; } }
@Override public int hashCode() { int result = getClass().hashCode(); if (getName() != null) { result = 37 * result + getName().hashCode(); } if (getType() != null) { result = 37 * result + getType().hashCode(); } if (getUnit() != null) { result = 37 * result + getUnit().hashCode(); } if (getValue() != null) { result = 37 * result + getValue().hashCode(); } return result; } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } CustomProperty other = (CustomProperty) obj; return eq(getName(), other.getName()) && eq(getType(), other.getType()) && eq(getUnit(), other.getUnit()) && eq(getValue(), other.getValue()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } CustomProperty other = (CustomProperty) obj; return eq(getName(), other.getName()) && eq(getType(), other.getType()) && eq(getUnit(), other.getUnit()) && eq(getValue(), other.getValue()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } CustomProperty other = (CustomProperty) obj; return eq(getName(), other.getName()) && eq(getType(), other.getType()) && eq(getUnit(), other.getUnit()) && eq(getValue(), other.getValue()); }