public class SplitPartCollection extends AbstractList<SplitPart>
Collection that represents the portions of a task.
Modifier and Type | Method and 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.
|
SplitPart[] |
toArray()
Copies all parts from the collection to a new array.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray
parallelStream, removeIf, stream
public final SplitPart get(int index)
Retrieves a task's split part at the given index.
public final SplitPart set(int index, SplitPart value)
Sets a task's split part at the given index.
public final int size()
Gets the number of parts in the collection.
Read only int
.
size
in interface Collection<SplitPart>
size
in interface List<SplitPart>
size
in class AbstractCollection<SplitPart>
public final SplitPart[] toArray()
Copies all parts from the collection to a new array.
toArray
in interface Collection<SplitPart>
toArray
in interface List<SplitPart>
toArray
in class AbstractCollection<SplitPart>
SplitPart
objects.