public final class PropertyPermission extends BasicPermission
| Constructor and Description |
|---|
PropertyPermission(String name,
String actions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks two PropertyPermission objects for equality.
|
String |
getActions()
Returns the "canonical string representation" of the actions.
|
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(Permission p)
Checks if this PropertyPermission object "implies" the specified permission.
|
getName, toStringpublic boolean equals(@Nullable Object obj)
equals in class BasicPermissionobj - the object we are testing for equality with this object.Object.hashCode(),
HashMappublic String getActions()
getActions will return the
string "read,write".getActions in class BasicPermissionpublic int hashCode()
getName().hashCode(), where getName is from
the Permission superclass.hashCode in class BasicPermissionObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public boolean implies(Permission p)
More specifically, this method returns true if:
implies in class BasicPermissionp - the permission to check against.