Package org.apache.sis.internal.feature
Class InstantList
- All Implemented Interfaces:
Iterable<Instant>,Collection<Instant>,List<Instant>,CheckedContainer<Instant>
Unmodifiable lists of instants backed by a compressed vector.
- Since:
- 0.8
- Version:
- 1.1
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
times
The times in milliseconds since the epoch.
-
-
Constructor Details
-
InstantList
InstantList(Vector times) Creates a new list for the given times.
-
-
Method Details
-
vectorize
Creates a vector for the given times.- Parameters:
millis- times in milliseconds since the epoch.
-
getElementType
Returns the kind of elements in this list.- Specified by:
getElementTypein interfaceCheckedContainer<Instant>- Returns:
- the element type.
-
size
public int size()Returns the number of instants in this list.- Specified by:
sizein interfaceCollection<Instant>- Specified by:
sizein interfaceList<Instant>- Specified by:
sizein classAbstractCollection<Instant>- Returns:
- number of instants in this list.
-
get
Returns the instant at the given index.
-