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, toString
public boolean equals(@Nullable Object obj)
equals
in class BasicPermission
obj
- the object we are testing for equality with this object.Object.hashCode()
,
HashMap
public String getActions()
getActions
will return the
string "read,write".getActions
in class BasicPermission
public int hashCode()
getName().hashCode()
, where getName
is from
the Permission superclass.hashCode
in class BasicPermission
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean implies(Permission p)
More specifically, this method returns true if:
implies
in class BasicPermission
p
- the permission to check against.