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 pattern)
Adds an instance of the
RiskPattern class to this collection. |
void |
clear()
Removes all items from this collection.
|
boolean |
contains(RiskPattern 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(RiskPattern item)
Removes the first occurrence of a specific object from this collection.
|
int |
size()
Returns the number of elements contained in this collection.
|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
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 RiskPattern get_Item(Task task)
Gets the instance of the RiskPattern
class for the specified task.
task
- the specified task.public boolean add(RiskPattern pattern)
Adds an instance of the RiskPattern
class to this collection.
add
in interface Collection<RiskPattern>
add
in class AbstractCollection<RiskPattern>
pattern
- an instance of the RiskPattern
class to add to this collection.RiskPattern
class was added successfully; otherwise, false.com.aspose.ms.System.ArgumentNullException
- pattern
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(RiskPattern item)
Returns true if the specified item is found in this collection; otherwise, false.
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 boolean remove(RiskPattern item)
Removes the first occurrence of a specific object from this collection.
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>
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.