BaselineCollection
Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList
public class BaselineCollection extends AbstractList<Baseline>
Represents a collection of Baseline objects.
Methods
Method | Description |
---|---|
add(Baseline item) | This is the stub implementation of ICollection’s Add method, that only throws NotSupportedException |
get(int index) | Returns the baseline at the specified position. |
getParentResource() | Gets the parent Resource for this collection. |
remove(int index) | Removes the element at the specified position in this list. |
remove(Object item) | Removes baseline from this collection. |
size() | Gets the number of objects contained in this BaselineCollection object. |
toList() | Converts the BaselineCollection object to a list of Baseline objects. |
add(Baseline item)
public final boolean add(Baseline item)
This is the stub implementation of ICollection’s Add method, that only throws NotSupportedException
Parameters:
Parameter | Type | Description |
---|---|---|
item | Baseline | The item to remove. |
Returns: boolean - {@inheritDoc}
get(int index)
public Baseline get(int index)
Returns the baseline at the specified position.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | index of the element to return. |
Returns: Baseline - the baseline at the specified position.
getParentResource()
public final Resource getParentResource()
Gets the parent Resource for this collection.
Returns: Resource - the parent Resource for this collection.
remove(int index)
public Baseline remove(int index)
Removes the element at the specified position in this list.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | {@inheritDoc} |
Returns: Baseline - {@inheritDoc}
remove(Object item)
public final boolean remove(Object item)
Removes baseline from this collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object | Baseline instance to remove. |
Returns: boolean - true if Baseline instance has been removed successfully; otherwise, false
size()
public final int size()
Gets the number of objects contained in this BaselineCollection object.
Returns: int - the number of objects contained in this BaselineCollection object.
toList()
public final List<Baseline> toList()
Converts the BaselineCollection object to a list of Baseline objects.
Returns: java.util.List<com.aspose.tasks.Baseline> - List of Baseline objects.