public class

PermissionImpl

extends Object
implements Permission
java.lang.Object
   ↳ sun.security.acl.PermissionImpl
Known Direct Subclasses

Class Overview

The PermissionImpl class implements the permission interface for permissions that are strings.

Summary

Public Constructors
PermissionImpl(String permission)
Construct a permission object using a string.
Public Methods
boolean equals(Object another)
This function returns true if the object passed matches the permission represented in this interface.
int hashCode()
Returns a hashcode for this PermissionImpl.
String toString()
Prints a stringified version of the permission.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.acl.Permission

Public Constructors

public PermissionImpl (String permission)

Construct a permission object using a string.

Parameters
permission the stringified version of the permission.

Public Methods

public boolean equals (Object another)

This function returns true if the object passed matches the permission represented in this interface.

Parameters
another The Permission object to compare with.
Returns
  • true if the Permission objects are equal, false otherwise

public int hashCode ()

Returns a hashcode for this PermissionImpl.

Returns
  • a hashcode for this PermissionImpl.

public String toString ()

Prints a stringified version of the permission.

Returns
  • the string representation of the Permission.