@Override public boolean equals(Object o) { if (!(o instanceof MetricItem)) { return false; } return (this.value == ((MetricItem) o).value) && (this.timestamp == ((MetricItem) o).timestamp) && EqualsUtil.equal(this.detail, ((MetricItem) o).detail); }
@Override public boolean equals(Object other) { if (this == other) return true; if (!(other instanceof MetaField)) return false; MetaField o = (MetaField)other; return EqualsUtil.equal(name, o.name) && (dataType == o.dataType) && (cardinality == o.cardinality) && (mandatory == o.mandatory) && EqualsUtil.equal(description, o.description); }
@Override public boolean equals(Object other) { if (this == other) return true; if (!super.equals(other)) { return false; } if (!(other instanceof MetaRelationship)) return false; MetaRelationship o = (MetaRelationship)other; return EqualsUtil.equal(refDataType, o.refDataType) && (relationType == o.relationType) && (cascade == o.cascade) && (consistencyType == o.consistencyType) // only compare src data type when not null && ( (srcDataType == null || o.srcDataType == null ) || EqualsUtil.equal(srcDataType, o.srcDataType)); }
private static boolean isEquals(List<?> l1, List<?> l2) { if (l1 == null && l2 == null) { return true; } if (l1 == null || l2 == null) { return false; } if (l1.size() != l2.size()) { return false; } for (int i = 0; i < l1.size(); i++) { if (!equal(l1.get(i), l2.get(i))) { return false; } } return true; }
public static boolean isEquals(Object obj1, Object obj2) { if (obj1 instanceof List && obj2 instanceof List) { return isEquals((List<?>)obj1, (List<?>)obj2); } else { return equal(obj1, obj2); } }
@Override public boolean equals(Object other) { if (this == other) return true; if (!super.equals(other)) { return false; } if (!(other instanceof MetaAttribute)) return false; MetaAttribute o = (MetaAttribute)other; return EqualsUtil.equal(defaultValue, o.defaultValue) && EqualsUtil.equal(expression, o.expression) && EqualsUtil.equal(isConstant(), o.isConstant()) && EqualsUtil.equal(validation, o.validation) && EqualsUtil.isEquals(enumValues, o.enumValues); }
@Override public boolean equals(Object other) { if (this == other) return true; if (!super.equals(other)) { return false; } if (!(other instanceof ReverseMetaRelationship)) return false; ReverseMetaRelationship o = (ReverseMetaRelationship) other; return EqualsUtil.equal(reversedReference, o.reversedReference); } }
@JsonIgnore public boolean isOverridable(IndexInfo info) { return EqualsUtil.equal(indexName, info.indexName) && (internal == info.internal) && (!compareCollections(keyList, info.keyList) || !compareCollections(options, info.options)); }
@Override public boolean isOverridable(MetaField parentAttr) { if (!(parentAttr instanceof MetaAttribute)) { return false; } if (!super.isOverridable(parentAttr)) { return false; } MetaAttribute o = (MetaAttribute)parentAttr; return EqualsUtil.equal(isConstant(), o.isConstant()) && !this.equals(o); } }