public abstract class TimephasedDataCollection extends AbstractList<T>
Represents a collection of TimephasedData
objects.
Constructor and Description |
---|
TimephasedDataCollection() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(TimephasedData item)
Adds
TimephasedData instance to this collection object. |
void |
addRange(Iterable<TimephasedData> timephasedCollection)
Adds a collection of
TimephasedData instances to this collection object. |
void |
clear()
Removes all items from the
TimephasedDataCollection . |
boolean |
containsItem(TimephasedData item)
Determines whether the
TimephasedDataCollection contains a specific value. |
void |
copyToTArray(TimephasedData[] array,
int arrayIndex)
Copies the elements of the
TimephasedDataCollection to an Array ,
starting at a particular Array index. |
TimephasedData |
get(int index) |
boolean |
remove(TimephasedData item)
Removes
TimephasedData instance from this collection object. |
List<TimephasedData> |
selectBetweenStartAndFinish(int timephasedDataType,
Date startTime,
Date finishTime)
Selects all time phases between
startTime and finishTime . |
int |
size()
Gets the number of objects contained in this
TimephasedDataCollection object. |
void |
sort(Comparator<? super T> c) |
List<TimephasedData> |
toList()
Converts the
TimephasedDataCollection object to a list of TimephasedData objects. |
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(TimephasedData item)
Adds TimephasedData
instance to this collection object.
add
in interface Collection<TimephasedData>
add
in interface List<TimephasedData>
add
in class AbstractList<TimephasedData>
item
- TimephasedData
instance to add.com.aspose.ms.System.ArgumentNullException
- if parameter td is null.public final void addRange(Iterable<TimephasedData> timephasedCollection)
Adds a collection of TimephasedData
instances to this collection object.
timephasedCollection
- A collection of TimephasedData
objects to add.public final void clear()
Removes all items from the TimephasedDataCollection
.
clear
in interface Collection<TimephasedData>
clear
in interface List<TimephasedData>
clear
in class AbstractList<TimephasedData>
public final boolean containsItem(TimephasedData item)
Determines whether the TimephasedDataCollection
contains a specific value.
item
- The object to locate in the collection.item
is found in the collection; otherwise, false.public final void copyToTArray(TimephasedData[] array, int arrayIndex)
Copies the elements of the TimephasedDataCollection
to an Array
,
starting at a particular Array
index.
array
- The one-dimensional Array
that is the destination of the elements copied from TimephasedDataCollection
.
The Array
must have zero-based indexing.arrayIndex
- The zero-based index in array
at which copying begins.com.aspose.ms.System.ArgumentNullException
- array
is null.ArgumentOutOfRangeException
- arrayIndex
is less than 0.ArgumentException
- The number of elements in the source TimephasedDataCollection
is greater than the available space from arrayIndex
to the end of the destination array
.public final boolean remove(TimephasedData item)
Removes TimephasedData
instance from this collection object.
item
- TimephasedData
instance to remove.item
was successfully removed from the TimephasedDataCollection
; otherwise,
false.
This method also returns false if item
is not found in the TimephasedDataCollection
.public final List<TimephasedData> selectBetweenStartAndFinish(int timephasedDataType, Date startTime, Date finishTime)
Selects all time phases between startTime
and finishTime
. Has O(log n) complexity in average
case.
timephasedDataType
- Type of time phases to select.startTime
- Interval's start.finishTime
- Interval's finish.TimephasedDataCollection
data ordered by Start property.public final int size()
size
in interface Collection<TimephasedData>
size
in interface List<TimephasedData>
size
in class AbstractCollection<TimephasedData>
TimephasedDataCollection
object.public final List<TimephasedData> toList()
Converts the TimephasedDataCollection
object to a list of TimephasedData
objects.
TimephasedData
objects.public TimephasedData get(int index)
get
in interface List<TimephasedData>
get
in class AbstractList<TimephasedData>
index
- public void sort(Comparator<? super T> c)
c
-