@Beta public class AbstractEntity.BasicPolicySupport extends java.lang.Object implements EntityInternal.PolicySupportInternal
Entity.policies() is reverted to return {PolicySupportInternal} instead of
{@link BasicPolicySupport}.| Constructor and Description |
|---|
BasicPolicySupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Policy policy)
Adds the given policy to this entity.
|
<T extends Policy> |
add(PolicySpec<T> spec)
Adds the given policy to this entity.
|
boolean |
isEmpty() |
java.util.Iterator<Policy> |
iterator() |
boolean |
remove(Policy policy)
Removes the given policy from this entity.
|
boolean |
removeAllPolicies()
Removes all policy from this entity.
|
int |
size() |
public java.util.Iterator<Policy> iterator()
iterator in interface java.lang.Iterable<Policy>iterator in interface Entity.AdjunctSupport<Policy>public int size()
size in interface Entity.AdjunctSupport<Policy>public boolean isEmpty()
isEmpty in interface Entity.AdjunctSupport<Policy>public void add(Policy policy)
Entity.PolicySupportadd in interface Entity.AdjunctSupport<Policy>add in interface Entity.PolicySupportpublic <T extends Policy> T add(PolicySpec<T> spec)
Entity.PolicySupportadd in interface Entity.PolicySupportpublic boolean remove(Policy policy)
Entity.PolicySupportremove in interface Entity.AdjunctSupport<Policy>remove in interface Entity.PolicySupportpublic boolean removeAllPolicies()
EntityInternal.PolicySupportInternalremoveAllPolicies in interface EntityInternal.PolicySupportInternal