This method of the SecurityPermission Class compares the SecurityPermission instance with a specified permission object.
public int compareSet(Object other);
Returns EQUAL if the specified object is an instance of the SecurityPermission class.
other | The permission object that the SecurityPermission instance is compared with. The specified object must be an instance of the SecurityPermission class. |
IllegalArgumentException if the specified Object is not an instance of the SecurityPermission class.