TaskBaselineCollection

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

All Implemented Interfaces: com.aspose.tasks.IBaselineCollection

public class TaskBaselineCollection extends AbstractList<TaskBaseline> implements IBaselineCollection

Represents a collection of TaskBaseline objects.

Methods

MethodDescription
add(TaskBaseline e)This is the stub implementation of ICollection’s Add method, that only throws UnsupportedOperationException
clear(){@inheritDoc}
get(int index)(@inheritDoc}
getByType(int baselineType)Gets the task baseline with the specified type.
iterator()Returns an enumerator for this collection.
remove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.
remove(Object item)Removes baseline from this collection.
size()Gets the number of objects contained in this TaskBaselineCollection object.
toList()Converts the TaskBaselineCollection object to a list of TaskBaseline objects.

add(TaskBaseline e)

public final boolean add(TaskBaseline e)

This is the stub implementation of ICollection’s Add method, that only throws UnsupportedOperationException

Parameters:

ParameterTypeDescription
eTaskBaselineThe item to add.

Returns: boolean - {@inheritDoc}

clear()

public final void clear()

get(int index)

public final TaskBaseline get(int index)

(@inheritDoc}

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}

Returns: TaskBaseline - {@inheritDoc}

getByType(int baselineType)

public final TaskBaseline getByType(int baselineType)

Gets the task baseline with the specified type.

Parameters:

ParameterTypeDescription
baselineTypeintthe specified baseline type.

Returns: TaskBaseline - the task baseline with the specified type, or null if no matching baseline is found.

iterator()

public final Iterator<TaskBaseline> iterator()

Returns an enumerator for this collection.

Returns: java.util.Iterator<com.aspose.tasks.TaskBaseline> - an enumerator for this collection.

remove(int index)

public final TaskBaseline remove(int index)

Removes the element at the specified position in this collection and returns the element that was removed from the collection.

Parameters:

ParameterTypeDescription
indexintthe specified position to remove the element at.

Returns: TaskBaseline - the element that was removed from the collection.

remove(Object item)

public final boolean remove(Object item)

Removes baseline from this collection.

Parameters:

ParameterTypeDescription
itemjava.lang.ObjectThe item to remove.

Returns: boolean - true if the item has been removed successfully; otherwise, false

size()

public final int size()

Gets the number of objects contained in this TaskBaselineCollection object.

Returns: int - the number of objects contained in this TaskBaselineCollection object.

toList()

public final List<TaskBaseline> toList()

Converts the TaskBaselineCollection object to a list of TaskBaseline objects.

Returns: java.util.List<com.aspose.tasks.TaskBaseline> - List of TaskBaseline objects.