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
GroupCriterion
objects. Implements ICollection<GroupCriterion> interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, GroupCriterion element)
Inserts the specified element at the specified position in this list.boolean
add(GroupCriterion item)
Adds the specified item to this collection.GroupCriterion
get(int index)
(@inheritDoc}Group
getParentGroup()
Gets the parent of the GroupCriterion object.GroupCriterion
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from the collection.boolean
remove(Object item)
Removes a single instance of the specified element from this collection, if it is present.int
size()
Gets the number of elements contained in this collection.void
sort(Comparator<? super T> c)
List<GroupCriterion>
toList()
Converts a GroupCriterion collection to a list ofGroupCriterion
objects.-
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:
add
in interfaceCollection<GroupCriterion>
- Specified by:
add
in interfaceList<GroupCriterion>
- Overrides:
add
in 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:
add
in interfaceList<GroupCriterion>
- Overrides:
add
in classAbstractList<GroupCriterion>
- Parameters:
index
-element
-
-
get
public GroupCriterion get(int index)
(@inheritDoc}- Specified by:
get
in interfaceList<GroupCriterion>
- Specified by:
get
in 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:
remove
in interfaceCollection<GroupCriterion>
- Specified by:
remove
in interfaceList<GroupCriterion>
- Overrides:
remove
in 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:
remove
in interfaceList<GroupCriterion>
- Overrides:
remove
in 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:
size
in interfaceCollection<GroupCriterion>
- Specified by:
size
in interfaceList<GroupCriterion>
- Specified by:
size
in 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
GroupCriterion
objects.- Returns:
- Generic list of
GroupCriterion
objects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-