GroupCriterionCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList

public class GroupCriterionCollection extends AbstractList<GroupCriterion>

Contains a collection of GroupCriterion objects. Implements ICollection<GroupCriterion> interface.

Methods

MethodDescription
add(GroupCriterion item)Adds the specified item to this collection.
add(int index, GroupCriterion element)Inserts the specified element at the specified position in this list.
get(int index)(@inheritDoc}
getParentGroup()Gets the parent of the GroupCriterion object.
remove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.
remove(Object item)Removes a single instance of the specified element from this collection, if it is present.
size()Gets the number of elements contained in this collection.
toList()Converts a GroupCriterion collection to a list of GroupCriterion objects.

add(GroupCriterion item)

public final boolean add(GroupCriterion item)

Adds the specified item to this collection.

Parameters:

ParameterTypeDescription
itemGroupCriterionthe specified item to add to this collection.

Returns: boolean - true if the specified item was added successfully; otherwise, false.

add(int index, GroupCriterion element)

public void add(int index, GroupCriterion element)

Inserts the specified element at the specified position in this list.

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}
elementGroupCriterion{@inheritDoc}

get(int index)

public GroupCriterion get(int index)

(@inheritDoc}

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}

Returns: GroupCriterion - {@inheritDoc}

getParentGroup()

public final Group getParentGroup()

Gets the parent of the GroupCriterion object.

Returns: Group - the parent of the GroupCriterion object.

remove(int index)

public final GroupCriterion remove(int index)

Removes the element at the specified position in this collection and returns the element that was removed from the collection.

Parameters:

ParameterTypeDescription
indexintthe specified position to remove the element at.

Returns: GroupCriterion - the element that was removed from the collection.

remove(Object item)

public final boolean remove(Object item)

Removes a single instance of the specified element from this collection, if it is present.

Parameters:

ParameterTypeDescription
itemjava.lang.Objectelement to be removed from this collection, if present.

Returns: boolean - true if an element was removed as a result of this call.

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<GroupCriterion> toList()

Converts a GroupCriterion collection to a list of GroupCriterion objects.

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