public class RiskPatternCollection extends AbstractCollection<RiskPattern>
Represents a collection containing the instances of the RiskPattern
class.
Modifier and Type | Method and Description |
---|---|
boolean |
add(RiskPattern item)
Adds an instance of the
RiskPattern class to this collection. |
void |
clear()
Removes all items from this collection.
|
boolean |
contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
|
void |
copyTo(RiskPattern[] array,
int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
|
RiskPattern |
get_Item(Task task)
Gets the instance of the
RiskPattern class for the specified task. |
Iterator<RiskPattern> |
iterator()
Returns an enumerator for this collection.
|
boolean |
remove(Object item)
Removes the first occurrence of a specific object from this collection.
|
int |
size()
Returns the number of elements contained in this collection.
|
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public boolean add(RiskPattern item)
Adds an instance of the RiskPattern
class to this collection.
add
in interface Collection<RiskPattern>
add
in class AbstractCollection<RiskPattern>
item
- an instance of the RiskPattern
class to add to this collection.RiskPattern
class was added successfully; otherwise, false.com.aspose.ms.System.ArgumentNullException
- item
task is null.public void clear()
Removes all items from this collection.
clear
in interface Collection<RiskPattern>
clear
in class AbstractCollection<RiskPattern>
public boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
contains
in interface Collection<RiskPattern>
contains
in class AbstractCollection<RiskPattern>
item
- the specified item to find.public void copyTo(RiskPattern[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
array
- the specified one-dimentional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public RiskPattern get_Item(Task task)
Gets the instance of the RiskPattern
class for the specified task.
task
- the specified task.public Iterator<RiskPattern> iterator()
Returns an enumerator for this collection.
iterator
in interface Iterable<RiskPattern>
iterator
in interface Collection<RiskPattern>
iterator
in class AbstractCollection<RiskPattern>
public boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
remove
in interface Collection<RiskPattern>
remove
in class AbstractCollection<RiskPattern>
item
- the specified object to remove.public int size()
Returns the number of elements contained in this collection.
size
in interface Collection<RiskPattern>
size
in class AbstractCollection<RiskPattern>