com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class TimephasedDataCollection

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<TimephasedData>, com.aspose.ms.System.Collections.IEnumerable<TimephasedData>, Iterable<TimephasedData>


    public class TimephasedDataCollection
    extends Object
    implements com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>

    Represents a collection of TimephasedData objects.

    • Method Detail

      • size

        public int size()
        Returns the number of objects contained in this TimephasedDataCollection object.
        Specified by:
        size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>
        Returns:
        the number of objects contained in this collection.
      • isReadOnly

        public boolean isReadOnly()
        Returns a value indicating whether the T:IGenericCollection is read-only.
        Specified by:
        isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>
        Returns:
        true if the T:IGenericCollection is read-only; otherwise, false.
      • clear

        public void clear()
        Removes all items from the TimephasedDataCollection.
        Specified by:
        clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>
      • containsItem

        public boolean containsItem(TimephasedData td)
        Determines whether the TimephasedDataCollection contains a specific value.
        Specified by:
        containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>
        Parameters:
        td - The object to locate in the collection.
        Returns:
        true if td is found in the collection; otherwise, false.
      • add

        public void add(TimephasedData td)
        Adds TimephasedData instance to this collection object.
        Parameters:
        td - TimephasedData instance to add.
        Throws:
        com.aspose.ms.System.ArgumentNullException - is thrown if parameter value is null.
      • addItem

        public void addItem(TimephasedData td)
        Adds TimephasedData instance to this collection object.
        Specified by:
        addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>
        Parameters:
        td - TimephasedData instance to add.
        Throws:
        com.aspose.ms.System.ArgumentNullException - is thrown if parameter value is null.
      • addRange

        public void addRange(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<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.
        Specified by:
        copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>
        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

        public boolean removeItem(TimephasedData td)
        Removes TimephasedData instance from this collection object.
        Specified by:
        removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<TimephasedData>
        Parameters:
        td - TimephasedData instance to remove.
        Returns:
        true, if item found; otherwise false.
      • iterator

        public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<TimephasedData> iterator()
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<TimephasedData>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<TimephasedData>
        Specified by:
        iterator in interface Iterable<TimephasedData>
      • 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.