public abstract class AbstractBooleanPermission<This extends AbstractBooleanPermission<This>> extends AbstractPermission<This>
ALL, NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractBooleanPermission()
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(This other)
Determine whether this permission object is equal to another object of this permission type.
|
int |
hashCode()
Get the hash code of this permission.
|
boolean |
implies(This permission)
Determine whether this permission implies another permission.
|
AbstractPermissionCollection |
newPermissionCollection()
Get an empty permission collection which is capable of holding instances of this permission type.
|
equals, getActions, implies, requireEmptyActions
checkGuard, getName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
and, checkPermission, from, from, from, from, not, or, toPermissionCollection, unless, xor
protected AbstractBooleanPermission()
public boolean implies(This permission)
AbstractPermission
implies
in class AbstractPermission<This extends AbstractBooleanPermission<This>>
permission
- the other permissiontrue
if this permission implies the other; false
otherwisepublic boolean equals(This other)
AbstractPermission
equals
in class AbstractPermission<This extends AbstractBooleanPermission<This>>
other
- the permission to compare totrue
if the object is a permission equal to this one; false
otherwisepublic int hashCode()
AbstractPermission
AbstractPermission.equals(AbstractPermission)
result.hashCode
in class AbstractPermission<This extends AbstractBooleanPermission<This>>
public AbstractPermissionCollection newPermissionCollection()
AbstractPermission
The default implementation returns a SimplePermissionCollection
.
newPermissionCollection
in class AbstractPermission<This extends AbstractBooleanPermission<This>>
Copyright © 2021 JBoss by Red Hat. All rights reserved.