com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class RiskPatternCollection

    • Method Detail

      • 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.
      • add

        public boolean add(RiskPattern pattern)

        Adds an instance of the RiskPattern class to this collection.

        Specified by:
        add in interface Collection<RiskPattern>
        Overrides:
        add in class AbstractCollection<RiskPattern>
        Parameters:
        pattern - 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 - pattern task is null.
      • contains

        public boolean contains(RiskPattern item)

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

        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.
      • remove

        public boolean remove(RiskPattern item)

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

        Parameters:
        item - the specified object to remove.
        Returns:
        true if the specified object was successfully removed from this collection; otherwise, false.