Package com.aspose.tasks
Class BaselineCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.BaselineCollection
-
public class BaselineCollection extends AbstractList<T>
Represents a collection of
Baseline
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Baseline item)
This is the stub implementation of ICollection's Add method, that only throws NotSupportedExceptionBaseline
get(int index)
Returns the baseline at the specified position.Resource
getParentResource()
Gets the parentResource
for this collection.Baseline
remove(int index)
Removes the element at the specified position in this list.boolean
remove(Object item)
Removes baseline from this collection.int
size()
Gets the number of objects contained in this BaselineCollection object.void
sort(Comparator<? super T> c)
List<Baseline>
toList()
Converts the BaselineCollection object to a list ofBaseline
objects.-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(Baseline item)
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException
- Specified by:
add
in interfaceCollection<Baseline>
- Specified by:
add
in interfaceList<Baseline>
- Overrides:
add
in classAbstractList<Baseline>
- Parameters:
item
- The item to remove.- Returns:
-
get
public Baseline get(int index)
Returns the baseline at the specified position.
-
getParentResource
public final Resource getParentResource()
Gets the parent
Resource
for this collection.- Returns:
- the parent
Resource
for this collection.
-
remove
public final boolean remove(Object item)
Removes baseline from this collection.
-
remove
public Baseline remove(int index)
Removes the element at the specified position in this list.
-
size
public final int size()
Gets the number of objects contained in this BaselineCollection object.
- Specified by:
size
in interfaceCollection<Baseline>
- Specified by:
size
in interfaceList<Baseline>
- Specified by:
size
in classAbstractCollection<Baseline>
- Returns:
- 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:
- List of
Baseline
objects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-