in src/main/java/org/apache/sling/validation/impl/model/ChildResourceImpl.java [94:116]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ChildResourceImpl other = (ChildResourceImpl) obj;
if (!children.equals(other.children))
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 (!properties.equals(other.properties))
return false;
return true;
}