public class TaskLinkCollection extends AbstractList<TaskLink>
Represents a collection of Task
objects.
Modifier and Type | Method and Description |
---|---|
TaskLink |
add(Task pred,
Task succ)
Returns an instance of Finish-Start
TaskLink which has been added to the TaskLinkCollection object. |
TaskLink |
add(Task pred,
Task succ,
int linkType)
Returns an instance of
TaskLink which has been added to the TaskLinkCollection object. |
TaskLink |
add(Task pred,
Task succ,
int linkType,
Duration lag)
Returns an instance of
TaskLink which has been added to the TaskLinkCollection object. |
TaskLink |
get(int index)
(@inheritDoc}
|
int |
getCount()
Deprecated.
Use size() instead.
|
Project |
getParentProject()
Gets the parent project of the ResourceAssignmentCollection object.
|
TaskLink |
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 link)
Removes task link from a project.
|
int |
size()
Returns the number of objects contained in this
TaskLinkCollection object. |
List<TaskLink> |
toList()
Converts the TaskLinkCollection object to a list of
TaskLink objects. |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
@Deprecated public int getCount()
Returns the number of objects contained in this TaskLinkCollection
object.
Read only int
.
public TaskLink get(int index)
public Project getParentProject()
Project
for this object.public TaskLink add(Task pred, Task succ)
TaskLink
which has been added to the TaskLinkCollection object.pred
- Predecessor task.succ
- Successor task.TaskLink
instance which has been added to this object.com.aspose.ms.System.ArgumentNullException
- is thrown when predecessor or successor task is null.public TaskLink add(Task pred, Task succ, int linkType)
TaskLink
which has been added to the TaskLinkCollection object.pred
- Predecessor task.succ
- Successor task.linkType
- Link type TaskLinkType
TaskLink
instance which has been added to this object.com.aspose.ms.System.ArgumentNullException
- is thrown when predecessor or successor task is null.public TaskLink add(Task pred, Task succ, int linkType, Duration lag)
TaskLink
which has been added to the TaskLinkCollection object.pred
- Predecessor task.succ
- Successor task.linkType
- Link type TaskLinkType
lag
- Link lag Duration
.TaskLink
instance which has been added to this object.com.aspose.ms.System.ArgumentNullException
- is thrown when predecessor or successor task is null.public boolean remove(Object link)
remove
in interface Collection<TaskLink>
remove
in interface List<TaskLink>
remove
in class AbstractCollection<TaskLink>
link
- the specified instance of TaskLink
class to remove.TaskLink
class which was removed from this collection.public TaskLink remove(int index)
public List<TaskLink> toList()
Converts the TaskLinkCollection object to a list of TaskLink
objects.
TaskLink
objects.public int size()
Returns the number of objects contained in this TaskLinkCollection
object.
Read only int
.
size
in interface Collection<TaskLink>
size
in interface List<TaskLink>
size
in class AbstractCollection<TaskLink>
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.