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
Baselineobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Baseline item)This is the stub implementation of ICollection's Add method, that only throws NotSupportedExceptionBaselineget(int index)Returns the baseline at the specified position.ResourcegetParentResource()Gets the parentResourcefor this collection.Baselineremove(int index)Removes the element at the specified position in this list.booleanremove(Object item)Removes baseline from this collection.intsize()Gets the number of objects contained in this BaselineCollection object.voidsort(Comparator<? super T> c)List<Baseline>toList()Converts the BaselineCollection object to a list ofBaselineobjects.-
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:
addin interfaceCollection<Baseline>- Specified by:
addin interfaceList<Baseline>- Overrides:
addin 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
Resourcefor this collection.- Returns:
- the parent
Resourcefor 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:
sizein interfaceCollection<Baseline>- Specified by:
sizein interfaceList<Baseline>- Specified by:
sizein 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
Baselineobjects.- Returns:
- List of
Baselineobjects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-