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
RiskPattern
class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(RiskPattern item)
Adds an instance of theRiskPattern
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 theRiskPattern
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.-
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
RiskPattern
class to this collection.- Specified by:
add
in interfaceCollection<RiskPattern>
- Overrides:
add
in classAbstractCollection<RiskPattern>
- Parameters:
item
- an instance of theRiskPattern
class to add to this collection.- Returns:
- returns true if an instance of the
RiskPattern
class was added successfully; otherwise, false. - Throws:
com.aspose.ms.System.ArgumentNullException
-item
task is null.
-
clear
public void clear()
Removes all items from this collection.
- Specified by:
clear
in interfaceCollection<RiskPattern>
- Overrides:
clear
in classAbstractCollection<RiskPattern>
-
contains
public boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
- Specified by:
contains
in interfaceCollection<RiskPattern>
- Overrides:
contains
in 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
RiskPattern
class 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:
iterator
in interfaceCollection<RiskPattern>
- Specified by:
iterator
in interfaceIterable<RiskPattern>
- Specified by:
iterator
in 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:
remove
in interfaceCollection<RiskPattern>
- Overrides:
remove
in 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:
size
in interfaceCollection<RiskPattern>
- Specified by:
size
in classAbstractCollection<RiskPattern>
- Returns:
- the number of elements contained in this collection.
-
-