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
Group s 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.GroupSupport
Group
s that this entity is a member of.iterator
in interface java.lang.Iterable<Group>
iterator
in interface Entity.GroupSupport
public int size()
size
in interface Entity.GroupSupport
public boolean isEmpty()
isEmpty
in interface Entity.GroupSupport
public void add(Group group)
EntityInternal.GroupSupportInternal
Group
. 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.GroupSupportInternal
public void remove(Group group)
EntityInternal.GroupSupportInternal
Group
. 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