public class TaskLinkCollection extends AbstractList<T>
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. |
void |
clear()
Reserved for internal usage.
|
TaskLink |
get(int index)
(@inheritDoc}
|
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. |
void |
sort(Comparator<? super TaskLink> c) |
List<TaskLink> |
toList()
Converts the TaskLinkCollection object to a list of
TaskLink objects. |
add, add, addAll, 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, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final TaskLink add(Task pred, Task succ)
Returns an instance of Finish-Start 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
- If any of input tasks is equal to null then ArgumentNullException
will be thrown.public final TaskLink add(Task pred, Task succ, int linkType)
Returns an instance of 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
- If any of input tasks is equal to null then ArgumentNullException
will be thrown.public final TaskLink add(Task pred, Task succ, int linkType, Duration lag)
Returns an instance of 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
- If any of input tasks is equal to null then ArgumentNullException
will be thrown.public final void clear()
clear
in interface Collection<TaskLink>
clear
in interface List<TaskLink>
clear
in class AbstractList<TaskLink>
public TaskLink get(int index)
public final Project getParentProject()
Project
for this object.public final 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 final TaskLink remove(int index)
public final 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>
public void sort(Comparator<? super TaskLink> c)