Package com.aspose.tasks
Class GroupCriterionCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.GroupCriterionCollection
-
- All Implemented Interfaces:
Iterable<GroupCriterion>,Collection<GroupCriterion>,List<GroupCriterion>
public class GroupCriterionCollection extends AbstractList<T>
Contains a collection of
GroupCriterionobjects. Implements ICollection<GroupCriterion> interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, GroupCriterion element)Inserts the specified element at the specified position in this list.booleanadd(GroupCriterion item)Adds the specified item to this collection.GroupCriterionget(int index)(@inheritDoc}GroupgetParentGroup()Gets the parent of the GroupCriterion object.GroupCriterionremove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.booleanremove(Object item)Removes a single instance of the specified element from this collection, if it is present.intsize()Gets the number of elements contained in this collection.voidsort(Comparator<? super T> c)List<GroupCriterion>toList()Converts a GroupCriterion collection to a list ofGroupCriterionobjects.-
Methods inherited from class java.util.AbstractList
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(GroupCriterion item)
Adds the specified item to this collection.
- Specified by:
addin interfaceCollection<GroupCriterion>- Specified by:
addin interfaceList<GroupCriterion>- Overrides:
addin classAbstractList<GroupCriterion>- Parameters:
item- the specified item to add to this collection.- Returns:
- true if the specified item was added successfully; otherwise, false.
-
add
public void add(int index, GroupCriterion element)Inserts the specified element at the specified position in this list.- Specified by:
addin interfaceList<GroupCriterion>- Overrides:
addin classAbstractList<GroupCriterion>- Parameters:
index-element-
-
get
public GroupCriterion get(int index)
(@inheritDoc}- Specified by:
getin interfaceList<GroupCriterion>- Specified by:
getin classAbstractList<GroupCriterion>- Parameters:
index-- Returns:
-
getParentGroup
public final Group getParentGroup()
Gets the parent of the GroupCriterion object.
- Returns:
- the parent of the GroupCriterion object.
-
remove
public final boolean remove(Object item)
Removes a single instance of the specified element from this collection, if it is present.- Specified by:
removein interfaceCollection<GroupCriterion>- Specified by:
removein interfaceList<GroupCriterion>- Overrides:
removein classAbstractCollection<GroupCriterion>- Parameters:
item- element to be removed from this collection, if present.- Returns:
- true if an element was removed as a result of this call.
-
remove
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.- Specified by:
removein interfaceList<GroupCriterion>- Overrides:
removein classAbstractList<GroupCriterion>- Parameters:
index- the specified position to remove the element at.- Returns:
- the element that was removed from the collection.
-
size
public final int size()
Gets the number of elements contained in this collection.
- Specified by:
sizein interfaceCollection<GroupCriterion>- Specified by:
sizein interfaceList<GroupCriterion>- Specified by:
sizein classAbstractCollection<GroupCriterion>- Returns:
- the number of elements contained in this collection.
-
toList
public final List<GroupCriterion> toList()
Converts a GroupCriterion collection to a list of
GroupCriterionobjects.- Returns:
- Generic list of
GroupCriterionobjects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-