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 SplitPartget(int index)Retrieves a task's split part at the given index.SplitPartset(int index, SplitPart value)Sets a task's split part at the given index.intsize()Gets the number of parts in the collection.voidsort(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:
sizein interfaceCollection<SplitPart>- Specified by:
sizein interfaceList<SplitPart>- Specified by:
sizein 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:
toArrayin interfaceCollection<SplitPart>- Specified by:
toArrayin interfaceList<SplitPart>- Overrides:
toArrayin classAbstractCollection<SplitPart>- Returns:
- An array of
SplitPartobjects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-