in src/main/java/org/apache/sling/oak/restrictions/impl/ResourceTypePattern.java [168:175]
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((limitedToPath == null) ? 0 : limitedToPath.hashCode());
result = prime * result + (matchChildren ? 1231 : 1237);
result = prime * result + ((resourceTypesByPath == null) ? 0 : resourceTypesByPath.hashCode());
return result;
}