com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TimephasedDataCollection

    • Method Detail

      • isReadOnly

        @Deprecated
        public boolean isReadOnly()
        Deprecated. This method always returns false and useless.
        Returns a value indicating whether the T:IGenericCollection is read-only.
        Returns:
        true if the T:IGenericCollection is read-only; otherwise, false.
      • containsItem

        public boolean containsItem(TimephasedData td)
        Determines whether the TimephasedDataCollection contains a specific value.
        Parameters:
        td - The object to locate in the collection.
        Returns:
        true if td is found in the collection; otherwise, false.
      • add

        public boolean add(TimephasedData td)
        Adds TimephasedData instance to this collection object.
        Specified by:
        add in interface Collection<TimephasedData>
        Overrides:
        add in class AbstractCollection<TimephasedData>
        Parameters:
        td - TimephasedData instance to add.
        Returns:
        true, if item was added; otherwise false.
        Throws:
        com.aspose.ms.System.ArgumentNullException - is thrown if parameter value is null.
      • addRange

        public void addRange(Iterable<TimephasedData> timephased)
        Adds a collection of TimephasedData instances to this collection object.
        Parameters:
        timephased - A collection of TimephasedData objects to add.
      • toList

        public List<TimephasedData> toList()
        Converts the TimephasedDataCollection object to a list of TimephasedData objects.
        Returns:
        List of TimephasedData objects.
      • copyToTArray

        public void copyToTArray(TimephasedData[] array,
                                 int arrayIndex)
        Copies the elements of the TimephasedDataCollection to an T:System.Array, starting at a particular T:System.Array index.
        Parameters:
        array - The one-dimensional T:System.Array that is the destination of the elements copied from TimephasedDataCollection. The T:System.Array must have zero-based indexing.
        arrayIndex - The zero-based index in array at which copying begins.
      • remove

        public void remove(TimephasedData td)
        Removes TimephasedData instance from this collection object.
        Parameters:
        td - TimephasedData instance to remove.
      • removeItem

        @Deprecated
        public boolean removeItem(TimephasedData td)
        Deprecated. Use remove(TimephasedData) instead.
        Removes TimephasedData instance from this collection object.
        Parameters:
        td - TimephasedData instance to remove.
        Returns:
        true, if item found; otherwise false.
      • selectBetweenStartAndFinish

        public com.aspose.ms.System.Collections.Generic.IGenericList<TimephasedData> selectBetweenStartAndFinish(int timephasedDataType,
                                                                                                                 Date startTime,
                                                                                                                 Date finishTime)
        Selects all timephases between startTime and finishTime. Has O(log n) complexity in average case.
        Parameters:
        timephasedDataType - Type of timephases to select.
        startTime - Interval's start.
        finishTime - Interval's finish.
        Returns:
        Returns new list instance of timephased data ordered by Start property.