Microsoft SDK for Java

compareSet

This method of the SecurityPermission Class compares the SecurityPermission instance with a specified permission object.

Syntax

public int compareSet(Object other);

Return Value

Returns EQUAL if the specified object is an instance of the SecurityPermission class.

Parameters

other The permission object that the SecurityPermission instance is compared with. The specified object must be an instance of the SecurityPermission class.

Exceptions

IllegalArgumentException if the specified Object is not an instance of the SecurityPermission class.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.