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
TaskBaseline
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(TaskBaseline e)
This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationExceptionvoid
clear()
TaskBaseline
get(int index)
(@inheritDoc}Iterator<TaskBaseline>
iterator()
Returns an enumerator for this collection.TaskBaseline
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from the collection.boolean
remove(Object item)
Removes baseline from this collection.int
size()
Gets the number of objects contained in this TaskBaselineCollection object.void
sort(Comparator<? super T> c)
List<TaskBaseline>
toList()
Converts the TaskBaselineCollection object to a list ofTaskBaseline
objects.-
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:
add
in interfaceCollection<TaskBaseline>
- Specified by:
add
in interfaceList<TaskBaseline>
- Overrides:
add
in classAbstractList<TaskBaseline>
- Parameters:
e
- The item to add.- Returns:
-
clear
public final void clear()
- Specified by:
clear
in interfaceCollection<TaskBaseline>
- Specified by:
clear
in interfaceList<TaskBaseline>
- Overrides:
clear
in classAbstractList<TaskBaseline>
-
iterator
public final Iterator<TaskBaseline> iterator()
Returns an enumerator for this collection.
- Specified by:
iterator
in interfaceCollection<TaskBaseline>
- Specified by:
iterator
in interfaceIterable<TaskBaseline>
- Specified by:
iterator
in interfaceList<TaskBaseline>
- Overrides:
iterator
in classAbstractList<TaskBaseline>
- Returns:
- an enumerator for this collection.
-
remove
public final boolean remove(Object item)
Removes baseline from this collection.
- Specified by:
remove
in interfaceCollection<TaskBaseline>
- Specified by:
remove
in interfaceList<TaskBaseline>
- Overrides:
remove
in 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:
size
in interfaceCollection<TaskBaseline>
- Specified by:
size
in interfaceList<TaskBaseline>
- Specified by:
size
in 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
TaskBaseline
objects.- Returns:
- List of
TaskBaseline
objects.
-
get
public final TaskBaseline get(int index)
(@inheritDoc}- Specified by:
get
in interfaceList<TaskBaseline>
- Specified by:
get
in 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:
remove
in interfaceList<TaskBaseline>
- Overrides:
remove
in 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
-
-
-