in src/main/java/org/apache/sling/jcr/jackrabbit/accessmanager/LocalPrivilege.java [219:249]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
LocalPrivilege other = (LocalPrivilege) obj;
if (allow != other.allow)
return false;
if (allowRestrictions == null) {
if (other.allowRestrictions != null)
return false;
} else if (!allowRestrictions.equals(other.allowRestrictions))
return false;
if (deny != other.deny)
return false;
if (denyRestrictions == null) {
if (other.denyRestrictions != null)
return false;
} else if (!denyRestrictions.equals(other.denyRestrictions))
return false;
if (privilege == null) {
if (other.privilege != null)
return false;
} else if (other.privilege == null) {
return false;
} else if (!privilege.getName().equals(other.privilege.getName()))
return false;
return true;
}