PermissionImplpublic class PermissionImpl extends Object implements Serializable, java.security.acl.PermissionPermission is represented as a String. |
Fields Summary |
---|
private String | perm |
Constructors Summary |
---|
public PermissionImpl(String s)Constructs a permission.
perm = s;
|
Methods Summary |
---|
public boolean | equals(java.lang.Object p)Returns true if the object passed matches the permission represented in.
if (p instanceof PermissionImpl){
return perm.equals(((PermissionImpl)p).getString());
} else {
return false;
}
| public java.lang.String | getString()Prints the permission.
return perm;
| public int | hashCode()
return super.hashCode();
| public java.lang.String | toString()Prints a string representation of this permission.
return perm.toString();
|
|