SplitPartCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList

public class SplitPartCollection extends AbstractList<SplitPart>

Collection that represents the portions of a task.

Methods

MethodDescription
get(int index)Retrieves a task’s split part at the given index.
set(int index, SplitPart value)Sets a task’s split part at the given index.
size()Gets the number of parts in the collection.
toArray()Copies all parts from the collection to a new array.

get(int index)

public final SplitPart get(int index)

Retrieves a task’s split part at the given index.

Parameters:

ParameterTypeDescription
indexintThe part index.

The index is zero-based. Returns null if the index is outside array’s boundaries. |

Returns: SplitPart - a split part.

set(int index, SplitPart value)

public final SplitPart set(int index, SplitPart value)

Sets a task’s split part at the given index.

Parameters:

ParameterTypeDescription
indexintThe part index.

The index is zero-based. Returns null if the index is outside array’s boundaries. | | value | SplitPart | a split part to set. |

Returns: SplitPart - a split part.

size()

public final int size()

Gets the number of parts in the collection.

Returns: int - the number of parts in the collection.

toArray()

public final SplitPart[] toArray()

Copies all parts from the collection to a new array.

Returns: com.aspose.tasks.SplitPart[] - An array of SplitPart objects.