@@ -161,4 +161,8 @@ public final class BasePermission implements Permission {
public String toString() {
return "BasePermission[" + getPattern() + "=" + mask + "]";
}
+
+ public int hashCode() {
+ return this.mask;
+ }
@@ -56,8 +56,12 @@ public class CumulativePermission implements Permission {
return (this.mask == rhs.getMask());
- public int getMask() {
+ public int getMask() {
return this.mask;