com.aspose.tasks

Interfaces

Classes

Exceptions

Class RiskPatternCollection

    • Method Detail

      • add

        public boolean add​(RiskPattern item)

        Adds an instance of the RiskPattern class to this collection.

        Specified by:
        add in interface Collection<RiskPattern>
        Overrides:
        add in class AbstractCollection<RiskPattern>
        Parameters:
        item - an instance of the RiskPattern 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.
      • contains

        public boolean contains​(Object item)

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

        Specified by:
        contains in interface Collection<RiskPattern>
        Overrides:
        contains in class AbstractCollection<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 to
        arrayIndex - 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.
      • remove

        public boolean remove​(Object item)

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

        Specified by:
        remove in interface Collection<RiskPattern>
        Overrides:
        remove in class AbstractCollection<RiskPattern>
        Parameters:
        item - the specified object to remove.
        Returns:
        true if the specified object was successfully removed from this collection; otherwise, false.