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
Constructor | Description |
---|---|
TimephasedDataCollection() | Initializes a new instance of the TimephasedDataCollection class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
item | TimephasedData | The 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:
Parameter | Type | Description |
---|---|---|
timephasedCollection | java.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:
Parameter | Type | Description |
---|---|---|
item | TimephasedData | The 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:
Parameter | Type | Description |
---|---|---|
array | TimephasedData[] | The one-dimensional Array that is the destination of the elements copied from TimephasedDataCollection. The Array must have zero-based indexing. |
arrayIndex | int | The zero-based index in array at which copying begins. |
get(int index)
public TimephasedData get(int index)
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | {@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:
Parameter | Type | Description |
---|---|---|
item | TimephasedData | The 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:
Parameter | Type | Description |
---|---|---|
timephasedDataType | byte | Type of time phases to select. |
startTime | java.util.Date | Interval’s start. |
finishTime | java.util.Date | Interval’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:
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index of the element to set. |
value | TimephasedData | the 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.