public class GroupCollection extends AbstractCollection<Group>
Contains a list of Group
objects.
Implements ICollection<Group> interface.
Modifier and Type | Method and Description |
---|---|
boolean |
add(Group item) |
void |
clear() |
boolean |
contains(Group item)
Returns true if this collection contains the specified item.
|
void |
copyTo(Group[] array,
int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
|
Project |
getParentProject()
Gets the parent of the Group object.
|
Iterator<Group> |
iterator() |
boolean |
remove(Group item)
Removes the first occurrence of a specific object from this collection.
|
int |
size()
Gets the number of elements contained in this collection.
|
List<Group> |
toList()
Converts a group collection to a list of
Group objects. |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public final boolean add(Group item)
add
in interface Collection<Group>
add
in class AbstractCollection<Group>
public final void clear()
clear
in interface Collection<Group>
clear
in class AbstractCollection<Group>
public final boolean contains(Group item)
item
- the specified item.public final void copyTo(Group[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public final Project getParentProject()
Gets the parent of the Group object.
Read-only Project
.
public Iterator<Group> iterator()
iterator
in interface Iterable<Group>
iterator
in interface Collection<Group>
iterator
in class AbstractCollection<Group>
public final boolean remove(Group item)
Removes the first occurrence of a specific object from this collection.
item
- the specified object to remove.public final int size()
Gets the number of elements contained in this collection.
size
in interface Collection<Group>
size
in class AbstractCollection<Group>