SEC-436: Add hashCode() methods.

This commit is contained in:
Ben Alex 2007-05-25 02:28:40 +00:00
parent 95735017e6
commit c8d5374602
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -56,8 +56,12 @@ public class CumulativePermission implements Permission {
return (this.mask == rhs.getMask());
}
public int hashCode() {
return this.mask;
}
public int getMask() {
public int getMask() {
return this.mask;
}