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
Method | Description |
---|---|
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} |
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:
Parameter | Type | Description |
---|---|---|
item | GroupCriterion | the 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:
Parameter | Type | Description |
---|---|---|
index | int | {@inheritDoc} |
element | GroupCriterion | {@inheritDoc} |
get(int index)
public GroupCriterion get(int index)
(@inheritDoc}
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | {@inheritDoc} |
Returns: GroupCriterion - {@inheritDoc}
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:
Parameter | Type | Description |
---|---|---|
index | int | the 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:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object | element 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.