Package com.aspose.tasks
Class RiskPatternCollection
- java.lang.Object
-
- java.util.AbstractCollection<RiskPattern>
-
- com.aspose.tasks.RiskPatternCollection
-
- All Implemented Interfaces:
Iterable<RiskPattern>,Collection<RiskPattern>
public class RiskPatternCollection extends AbstractCollection<RiskPattern>
Represents a collection containing the instances of the
RiskPatternclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(RiskPattern item)Adds an instance of theRiskPatternclass to this collection.voidclear()Removes all items from this collection.booleancontains(Object item)Returns true if the specified item is found in this collection; otherwise, false.voidcopyTo(RiskPattern[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.RiskPatternget_Item(Task task)Gets the instance of theRiskPatternclass for the specified task.Iterator<RiskPattern>iterator()Returns an enumerator for this collection.booleanremove(Object item)Removes the first occurrence of a specific object from this collection.intsize()Returns the number of elements contained in this collection.-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
add
public boolean add(RiskPattern item)
Adds an instance of the
RiskPatternclass to this collection.- Specified by:
addin interfaceCollection<RiskPattern>- Overrides:
addin classAbstractCollection<RiskPattern>- Parameters:
item- an instance of theRiskPatternclass to add to this collection.- Returns:
- returns true if an instance of the
RiskPatternclass was added successfully; otherwise, false. - Throws:
com.aspose.ms.System.ArgumentNullException-itemtask is null.
-
clear
public void clear()
Removes all items from this collection.
- Specified by:
clearin interfaceCollection<RiskPattern>- Overrides:
clearin classAbstractCollection<RiskPattern>
-
contains
public boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
- Specified by:
containsin interfaceCollection<RiskPattern>- Overrides:
containsin classAbstractCollection<RiskPattern>- Parameters:
item- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
copyTo
public void copyTo(RiskPattern[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
- Parameters:
array- the specified one-dimentional array to copy elements toarrayIndex- the zero-based index of the specified array at which copying begins.
-
get_Item
public RiskPattern get_Item(Task task)
Gets the instance of the
RiskPatternclass for the specified task.- Parameters:
task- the specified task.- Returns:
- the pattern for the specified task.
-
iterator
public Iterator<RiskPattern> iterator()
Returns an enumerator for this collection.
- Specified by:
iteratorin interfaceCollection<RiskPattern>- Specified by:
iteratorin interfaceIterable<RiskPattern>- Specified by:
iteratorin classAbstractCollection<RiskPattern>- Returns:
- an enumerator for this collection.
-
remove
public boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
- Specified by:
removein interfaceCollection<RiskPattern>- Overrides:
removein classAbstractCollection<RiskPattern>- Parameters:
item- the specified object to remove.- Returns:
- 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.
- Specified by:
sizein interfaceCollection<RiskPattern>- Specified by:
sizein classAbstractCollection<RiskPattern>- Returns:
- the number of elements contained in this collection.
-
-