public abstract class AbstractPermissionCollection extends PermissionCollection implements Iterable<Permission>, PermissionVerifier
ALL, NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractPermissionCollection(AbstractPermission<?> sourcePermission)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Permission permission)
Add an item to this collection.
|
protected abstract void |
doAdd(AbstractPermission<?> permission)
Perform the work of adding a permission.
|
abstract Enumeration<Permission> |
elements()
Iterate over this permission collection.
|
abstract Iterator<Permission> |
iterator()
Iterate over this permission collection.
|
abstract int |
size()
Get the size of this permission collection.
|
implies, isReadOnly, setReadOnly, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
and, checkPermission, from, from, from, from, implies, not, or, toPermissionCollection, unless, xor
protected AbstractPermissionCollection(AbstractPermission<?> sourcePermission)
sourcePermission
- the source permission for this collection (must not be null
)public abstract int size()
public abstract Iterator<Permission> iterator()
iterator
in interface Iterable<Permission>
null
)public abstract Enumeration<Permission> elements()
elements
in class PermissionCollection
null
)public final void add(Permission permission)
add
in class PermissionCollection
permission
- the permission to add (must not be null
)protected abstract void doAdd(AbstractPermission<?> permission)
add(Permission)
method was called.permission
- the non-null
permissionCopyright © 2020 JBoss by Red Hat. All rights reserved.