public class PermissionImpl
extends java.lang.Object
implements java.security.acl.Permission
Constructor and Description |
---|
PermissionImpl(java.lang.String permission)
Construct a permission object using a string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object another)
This function returns true if the object passed matches the permission
represented in this interface.
|
int |
hashCode() |
java.lang.String |
toString()
Prints a stringified version of the permission.
|
public PermissionImpl(java.lang.String permission)
permission
- the stringified version of the permission.public boolean equals(java.lang.Object another)
equals
in interface java.security.acl.Permission
equals
in class java.lang.Object
another
- The Permission object to compare with.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface java.security.acl.Permission
toString
in class java.lang.Object