Package com.aspose.tasks
Class SplitPartCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.SplitPartCollection
-
public class SplitPartCollection extends AbstractList<T>
Collection that represents the portions of a task.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitPart
get(int index)
Retrieves a task's split part at the given index.SplitPart
set(int index, SplitPart value)
Sets a task's split part at the given index.int
size()
Gets the number of parts in the collection.void
sort(Comparator<? super T> c)
SplitPart[]
toArray()
Copies all parts from the collection to a new array.-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray
-
-
-
-
Method Detail
-
get
public final SplitPart get(int index)
Retrieves a task's split part at the given index.
-
set
public final SplitPart set(int index, SplitPart value)
Sets a task's split part at the given index.
-
size
public final int size()
Gets the number of parts in the collection.
- Specified by:
size
in interfaceCollection<SplitPart>
- Specified by:
size
in interfaceList<SplitPart>
- Specified by:
size
in classAbstractCollection<SplitPart>
- Returns:
- the number of parts in the collection.
-
toArray
public final SplitPart[] toArray()
Copies all parts from the collection to a new array.
- Specified by:
toArray
in interfaceCollection<SplitPart>
- Specified by:
toArray
in interfaceList<SplitPart>
- Overrides:
toArray
in classAbstractCollection<SplitPart>
- Returns:
- An array of
SplitPart
objects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-