GroupCollection

Inheritance: java.lang.Object, java.util.AbstractCollection

public class GroupCollection extends AbstractCollection<Group>

Contains a list of Group objects. Implements ICollection<Group> interface.

Methods

MethodDescription
add(Group item)
clear()
contains(Group item)Returns true if this collection contains the specified item.
copyTo(Group[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.
isReadOnly()Gets a value indicating whether this collection is read-only.
iterator()
remove(Group item)Removes the first occurrence of a specific object from this collection.
size()Gets the number of elements contained in this collection.
toList()Converts a group collection to a list of Group objects.

add(Group item)

public final boolean add(Group item)

Parameters:

ParameterTypeDescription
itemGroup

Returns: boolean

clear()

public final void clear()

contains(Group item)

public final boolean contains(Group item)

Returns true if this collection contains the specified item.

Parameters:

ParameterTypeDescription
itemGroupthe specified item.

Returns: boolean - true if the collection contains the specified item.

copyTo(Group[] array, int arrayIndex)

public final void copyTo(Group[] array, int arrayIndex)

Copies the elements of this collection to the specified array, starting at the specified array index.

Parameters:

ParameterTypeDescription
arrayGroup[]the specified one-dimensional array to copy elements to
arrayIndexintthe zero-based index of the specified array at which copying begins.

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether this collection is read-only.

Returns: boolean - a value indicating whether this collection is read-only.

iterator()

public Iterator<Group> iterator()

Returns: java.util.Iterator<com.aspose.tasks.Group>

remove(Group item)

public final boolean remove(Group item)

Removes the first occurrence of a specific object from this collection.

Parameters:

ParameterTypeDescription
itemGroupthe specified object to remove.

Returns: boolean - true if the specified object was successfully removed from this collection; otherwise, false.

size()

public final int size()

Gets the number of elements contained in this collection.

Returns: int - the number of elements contained in this collection.

toList()

public final List<Group> toList()

Converts a group collection to a list of Group objects.

Returns: java.util.List<com.aspose.tasks.Group> - Generic list of Group objects.