TimephasedDataCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList

public abstract class TimephasedDataCollection extends AbstractList<TimephasedData>

Represents a collection of TimephasedData objects.

Constructors

ConstructorDescription
TimephasedDataCollection()Initializes a new instance of the TimephasedDataCollection class.

Methods

MethodDescription
add(TimephasedData item)Adds TimephasedData instance to this collection object.
addRange(Iterable<TimephasedData> timephasedCollection)Adds a collection of TimephasedData instances to this collection object.
clear()Removes all items from the TimephasedDataCollection.
containsItem(TimephasedData item)Determines whether the TimephasedDataCollection contains a specific value.
copyToTArray(TimephasedData[] array, int arrayIndex)Copies the elements of the TimephasedDataCollection to an Array, starting at a particular Array index.
get(int index){@inheritDoc}
isReadOnly()Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only.
iterator()Returns an iterator for this collection.
remove(TimephasedData item)Removes TimephasedData instance from this collection object.
selectBetweenStartAndFinish(byte timephasedDataType, Date startTime, Date finishTime)Selects all time phases between startTime and finishTime .
set_Item(int index, TimephasedData value)Sets the element at the specified index.
size()Gets the number of objects contained in this TimephasedDataCollection object.
toList()Converts the TimephasedDataCollection object to a list of TimephasedData objects.

TimephasedDataCollection()

public TimephasedDataCollection()

Initializes a new instance of the TimephasedDataCollection class.

add(TimephasedData item)

public final boolean add(TimephasedData item)

Adds TimephasedData instance to this collection object.

Parameters:

ParameterTypeDescription
itemTimephasedDataThe item to add.

Returns: boolean - true, if item was added; otherwise false.

addRange(Iterable<TimephasedData> timephasedCollection)

public final void addRange(Iterable<TimephasedData> timephasedCollection)

Adds a collection of TimephasedData instances to this collection object.

Parameters:

ParameterTypeDescription
timephasedCollectionjava.lang.Iterable<com.aspose.tasks.TimephasedData>A collection of TimephasedData objects to add.

clear()

public final void clear()

Removes all items from the TimephasedDataCollection.

containsItem(TimephasedData item)

public final boolean containsItem(TimephasedData item)

Determines whether the TimephasedDataCollection contains a specific value.

Parameters:

ParameterTypeDescription
itemTimephasedDataThe object to locate in the collection.

Returns: boolean - true if item is found in the collection; otherwise, false.

copyToTArray(TimephasedData[] array, int arrayIndex)

public final void copyToTArray(TimephasedData[] array, int arrayIndex)

Copies the elements of the TimephasedDataCollection to an Array, starting at a particular Array index.

Parameters:

ParameterTypeDescription
arrayTimephasedData[]The one-dimensional Array that is the destination of the elements copied from TimephasedDataCollection. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.

get(int index)

public TimephasedData get(int index)

Parameters:

ParameterTypeDescription
indexint{@inheritDoc}

Returns: TimephasedData - {@inheritDoc}

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only.

Returns: boolean - true if the System.Collections.Generic.ICollection<T> is read-only; otherwise, false.

iterator()

public final Iterator<TimephasedData> iterator()

Returns an iterator for this collection.

Returns: java.util.Iterator<com.aspose.tasks.TimephasedData> - an iterator for this collection.

remove(TimephasedData item)

public final boolean remove(TimephasedData item)

Removes TimephasedData instance from this collection object.

Parameters:

ParameterTypeDescription
itemTimephasedDataThe item to remove.

Returns: boolean - true if item was successfully removed from the TimephasedDataCollection; otherwise, false. This method also returns false if item is not found in the TimephasedDataCollection.

selectBetweenStartAndFinish(byte timephasedDataType, Date startTime, Date finishTime)

public final List<TimephasedData> selectBetweenStartAndFinish(byte timephasedDataType, Date startTime, Date finishTime)

Selects all time phases between startTime and finishTime . Has O(log n) complexity in average case.

Parameters:

ParameterTypeDescription
timephasedDataTypebyteType of time phases to select.
startTimejava.util.DateInterval’s start.
finishTimejava.util.DateInterval’s finish.

Returns: java.util.List<com.aspose.tasks.TimephasedData> - Returns new list instance of TimephasedDataCollection data ordered by Start property.

set_Item(int index, TimephasedData value)

public final void set_Item(int index, TimephasedData value)

Sets the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to set.
valueTimephasedDatathe element to set.

size()

public final int size()

Gets the number of objects contained in this TimephasedDataCollection object.

Returns: int - the number of objects contained in this TimephasedDataCollection object.

toList()

public final List<TimephasedData> toList()

Converts the TimephasedDataCollection object to a list of TimephasedData objects.

Returns: java.util.List<com.aspose.tasks.TimephasedData> - List of TimephasedData objects.