in src/main/java/org/apache/sling/validation/impl/model/ResourcePropertyImpl.java [107:129]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ResourcePropertyImpl other = (ResourcePropertyImpl) obj;
if (isMultiple != other.isMultiple)
return false;
if (isRequired != other.isRequired)
return false;
if (!name.equals(other.name))
return false;
if (namePattern == null) {
if (other.namePattern != null)
return false;
} else if (!namePattern.pattern().equals(other.namePattern.pattern()))
return false;
if (!validators.equals(other.validators))
return false;
return true;
}