public class Groups extends java.lang.Object implements java.lang.Iterable<GroupResult>
| Constructor and Description |
|---|
Groups()
Initializes an instance of the
Groups class |
| Modifier and Type | Method and Description |
|---|---|
void |
Add(GroupResult group)
Method top add a Group object into the container.
|
void |
Clear()
Clears all item from the container.
|
java.lang.Boolean |
Exists(java.lang.String groupId)
Method to check whether a group exists in the container.
|
GroupResult |
Find(java.lang.String groupId)
Method to retrieve a Group item from the container.
|
int |
getItemCount()
Gets the number of items.
|
java.util.Iterator<GroupResult> |
iterator() |
void |
Remove(java.lang.String groupId)
Method to remove a group from the container based on its id.
|
public Groups()
Groups classpublic java.util.Iterator<GroupResult> iterator()
iterator in interface java.lang.Iterable<GroupResult>public int getItemCount()
public void Add(GroupResult group)
group - the GroupResult object.public java.lang.Boolean Exists(java.lang.String groupId)
GroupId - the group Id.public GroupResult Find(java.lang.String groupId)
groupId - the group Id.public void Remove(java.lang.String groupId)
groupId - the group Idpublic void Clear()