public class ResourceAssignmentCollection extends AbstractList<T>
Represents a collection of ResourceAssignment
objects.
Modifier and Type | Method and Description |
---|---|
ResourceAssignment |
add(Task task,
Resource resource)
Adds new assignment to the ResourceAssignmentCollection.
|
ResourceAssignment |
add(Task task,
Resource resource,
double units)
Adds new assignment to the ResourceAssignmentCollection.
|
void |
clear()
Removes all items from the collection.
|
ResourceAssignment |
get(int index)
(@inheritDoc}
|
ResourceAssignment |
getByUid(int uid)
Returns an assignment with the specified uid.
|
int |
getCount()
Deprecated.
Use size() instead.
|
Project |
getParentProject()
Gets the parent project of the ResourceAssignmentCollection object.
|
boolean |
isReadOnly()
Determines whether this collection is read only.
|
int |
size()
Returns the number of objects contained in the ResourceAssignmentCollection.
|
List<ResourceAssignment> |
toList()
Converts the ResourceAssignmentCollection object to a list of
ResourceAssignment objects. |
add, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public ResourceAssignment add(Task task, Resource resource, double units)
task
- A task to be assigned.resource
- A resource to be assigned.units
- The number of units for a new assignment.public ResourceAssignment add(Task task, Resource resource)
task
- A task to be assigned.resource
- A resource to be assigned.public void clear()
clear
in interface Collection<ResourceAssignment>
clear
in interface List<ResourceAssignment>
clear
in class AbstractList<ResourceAssignment>
public ResourceAssignment get(int index)
get
in interface List<ResourceAssignment>
get
in class AbstractList<ResourceAssignment>
index
- public ResourceAssignment getByUid(int uid)
uid
- The specified uid.@Deprecated public int getCount()
Returns the number of objects contained in the ResourceAssignmentCollection.
public Project getParentProject()
Gets the parent project of the ResourceAssignmentCollection object.
public boolean isReadOnly()
public int size()
size
in interface Collection<ResourceAssignment>
size
in interface List<ResourceAssignment>
size
in class AbstractCollection<ResourceAssignment>
public List<ResourceAssignment> toList()
Converts the ResourceAssignmentCollection object to a list of ResourceAssignment
objects.
ResourceAssignment
objects.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.