RiskPatternCollection

Inheritance: java.lang.Object, java.util.AbstractCollection

public class RiskPatternCollection extends AbstractCollection<RiskPattern>

Represents a collection containing the instances of the RiskPattern class.

Methods

MethodDescription
add(RiskPattern item)Adds an instance of the RiskPattern class to this collection.
clear()Removes all items from this collection.
contains(Object item)Returns true if the specified item is found in this collection; otherwise, false.
copyTo(RiskPattern[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.
get_Item(Task task)Gets the instance of the RiskPattern class for the specified task.
iterator()Returns an enumerator for this collection.
remove(Object item)Removes the first occurrence of a specific object from this collection.
size()Returns the number of elements contained in this collection.

add(RiskPattern item)

public boolean add(RiskPattern item)

Adds an instance of the RiskPattern class to this collection.

Parameters:

ParameterTypeDescription
itemRiskPatternan instance of the RiskPattern class to add to this collection.

Returns: boolean - returns true if an instance of the RiskPattern class was added successfully; otherwise, false.

clear()

public void clear()

Removes all items from this collection.

contains(Object item)

public boolean contains(Object item)

Returns true if the specified item is found in this collection; otherwise, false.

Parameters:

ParameterTypeDescription
itemjava.lang.Objectthe specified item to find.

Returns: boolean - true if the specified item is found in this collection; otherwise, false.

copyTo(RiskPattern[] array, int arrayIndex)

public void copyTo(RiskPattern[] array, int arrayIndex)

Copies the elements of this collection to the specified array, starting at the specified array index.

Parameters:

ParameterTypeDescription
arrayRiskPattern[]the specified one-dimentional array to copy elements to
arrayIndexintthe zero-based index of the specified array at which copying begins.

get_Item(Task task)

public RiskPattern get_Item(Task task)

Gets the instance of the RiskPattern class for the specified task.

Parameters:

ParameterTypeDescription
taskTaskthe specified task.

Returns: RiskPattern - the pattern for the specified task.

iterator()

public Iterator<RiskPattern> iterator()

Returns an enumerator for this collection.

Returns: java.util.Iterator<com.aspose.tasks.RiskPattern> - an enumerator for this collection.

remove(Object item)

public boolean remove(Object item)

Removes the first occurrence of a specific object from this collection.

Parameters:

ParameterTypeDescription
itemjava.lang.Objectthe specified object to remove.

Returns: boolean - true if the specified object was successfully removed from this collection; otherwise, false.

size()

public int size()

Returns the number of elements contained in this collection.

Returns: int - the number of elements contained in this collection.