public final class NoPermission extends AbstractPermission<NoPermission>
ALL, NONE
Constructor and Description |
---|
NoPermission()
Construct a new instance.
|
NoPermission(String ignored)
Construct a new instance.
|
NoPermission(String ignored1,
String ignored2)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(NoPermission other)
Always returns
true if the argument is not null . |
static NoPermission |
getInstance()
Get the no-permission instance.
|
int |
hashCode()
Get the constant hash code.
|
boolean |
implies(NoPermission permission)
Always returns
false . |
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
public NoPermission()
public NoPermission(String ignored)
ignored
- ignoredpublic static NoPermission getInstance()
null
)public boolean implies(NoPermission permission)
false
.implies
in class AbstractPermission<NoPermission>
permission
- ignoredfalse
public boolean equals(NoPermission other)
true
if the argument is not null
.equals
in class AbstractPermission<NoPermission>
other
- the permission to compare totrue
if other
is not null
; false
otherwisepublic int hashCode()
hashCode
in class AbstractPermission<NoPermission>
public AbstractPermissionCollection newPermissionCollection()
AbstractPermission
The default implementation returns a SimplePermissionCollection
.
newPermissionCollection
in class AbstractPermission<NoPermission>
Copyright © 2020 JBoss by Red Hat. All rights reserved.