Package com.aspose.tasks
Class TaskBaselineCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.TaskBaselineCollection
-
- All Implemented Interfaces:
Iterable<TaskBaseline>,Collection<TaskBaseline>,List<TaskBaseline>
public class TaskBaselineCollection extends AbstractList<T>
Represents a collection of
TaskBaselineobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(TaskBaseline e)This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationExceptionvoidclear()TaskBaselineget(int index)(@inheritDoc}Iterator<TaskBaseline>iterator()Returns an enumerator for this collection.TaskBaselineremove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.booleanremove(Object item)Removes baseline from this collection.intsize()Gets the number of objects contained in this TaskBaselineCollection object.voidsort(Comparator<? super T> c)List<TaskBaseline>toList()Converts the TaskBaselineCollection object to a list ofTaskBaselineobjects.-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, 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(TaskBaseline e)
This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationException
- Specified by:
addin interfaceCollection<TaskBaseline>- Specified by:
addin interfaceList<TaskBaseline>- Overrides:
addin classAbstractList<TaskBaseline>- Parameters:
e- The item to add.- Returns:
-
clear
public final void clear()
- Specified by:
clearin interfaceCollection<TaskBaseline>- Specified by:
clearin interfaceList<TaskBaseline>- Overrides:
clearin classAbstractList<TaskBaseline>
-
iterator
public final Iterator<TaskBaseline> iterator()
Returns an enumerator for this collection.
- Specified by:
iteratorin interfaceCollection<TaskBaseline>- Specified by:
iteratorin interfaceIterable<TaskBaseline>- Specified by:
iteratorin interfaceList<TaskBaseline>- Overrides:
iteratorin classAbstractList<TaskBaseline>- Returns:
- an enumerator for this collection.
-
remove
public final boolean remove(Object item)
Removes baseline from this collection.
- Specified by:
removein interfaceCollection<TaskBaseline>- Specified by:
removein interfaceList<TaskBaseline>- Overrides:
removein classAbstractCollection<TaskBaseline>- Parameters:
item- The item to remove.- Returns:
- 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.
- Specified by:
sizein interfaceCollection<TaskBaseline>- Specified by:
sizein interfaceList<TaskBaseline>- Specified by:
sizein classAbstractCollection<TaskBaseline>- Returns:
- the number of objects contained in this TaskBaselineCollection object.
-
toList
public final List<TaskBaseline> toList()
Converts the TaskBaselineCollection object to a list of
TaskBaselineobjects.- Returns:
- List of
TaskBaselineobjects.
-
get
public final TaskBaseline get(int index)
(@inheritDoc}- Specified by:
getin interfaceList<TaskBaseline>- Specified by:
getin classAbstractList<TaskBaseline>- Parameters:
index-- Returns:
-
remove
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.- Specified by:
removein interfaceList<TaskBaseline>- Overrides:
removein classAbstractList<TaskBaseline>- Parameters:
index- the specified position to remove the element at.- Returns:
- the element that was removed from the collection.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-