public class AbstractEntity.BasicGroupSupport extends java.lang.Object implements EntityInternal.GroupSupportInternal
Entity.groups() is reverted to return {GroupSupport} instead of
{@link BasicGroupSupport}.| Constructor and Description |
|---|
BasicGroupSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Group group)
Add this entity as a member of the given
Group. |
boolean |
isEmpty() |
java.util.Iterator<Group> |
iterator()
A read-only thread-safe iterator over all the
Groups that this entity is a member of. |
void |
remove(Group group)
Removes this entity as a member of the given
Group. |
int |
size() |
public java.util.Iterator<Group> iterator()
Entity.GroupSupportGroups that this entity is a member of.iterator in interface java.lang.Iterable<Group>iterator in interface Entity.GroupSupportpublic int size()
size in interface Entity.GroupSupportpublic boolean isEmpty()
isEmpty in interface Entity.GroupSupportpublic void add(Group group)
EntityInternal.GroupSupportInternalGroup. Called by framework.
Users should call Group.addMember(Entity) instead; this method will then
automatically be called. However, the reverse is not true (calling this method will
not tell the group; this behaviour may change in a future release!)
add in interface EntityInternal.GroupSupportInternalpublic void remove(Group group)
EntityInternal.GroupSupportInternalGroup. Called by framework.
Users should call Group.removeMember(Entity) instead; this method will then
automatically be called. However, the reverse is not true (calling this method will
not tell the group; this behaviour may change in a future release!)
remove in interface EntityInternal.GroupSupportInternal