in src/main/java/org/apache/sling/oak/restrictions/impl/ResourceTypePattern.java [179:200]
public boolean equals(Object obj) {
if(this == obj)
return true;
if(obj == null)
return false;
if(getClass() != obj.getClass())
return false;
ResourceTypePattern other = (ResourceTypePattern) obj;
if(limitedToPath == null) {
if(other.limitedToPath != null)
return false;
} else if(!limitedToPath.equals(other.limitedToPath))
return false;
if(matchChildren != other.matchChildren)
return false;
if(resourceTypesByPath == null) {
if(other.resourceTypesByPath != null)
return false;
} else if(!resourceTypesByPath.equals(other.resourceTypesByPath))
return false;
return true;
}