If the wrapped TypePermission allows the type, this instance will throw a ForbiddenClassException
instead. An instance of this permission cannot be used to allow a type.
| Modifier and Type | Field and Description |
|---|---|
| private final TypePermission |
| Access | Constructor and Description |
|---|---|
| public | NoPermission(final TypePermission
the permission to negate or permission)null to forbid any typeConstruct a NoPermission. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allows(final Class<T>
the type to check type)Implements com. |
| permission | back to summary |
|---|---|
| private final TypePermission permission | |
| NoPermission | back to summary |
|---|---|
| public NoPermission(final TypePermission permission) Construct a NoPermission.
| |
| allows | back to summary |
|---|---|
| public boolean allows(final Class<T> type) Implements com. Doc from com. Check permission for a provided type.
| |