@Override
    public boolean equals(Object obj) {

        // Not equal if null or wrong type
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;

        final SystemPermission other = (SystemPermission) obj;

        // Compare types
        if (type != other.type)
            return false;

        return true;
    }
Creates a new SystemPermission with the given
type.

@param type The type of operation controlled by this permission.
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/permission/SystemPermission.java