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, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
getElementType
in interfaceCheckedContainer<Instant>
- Returns:
- the element type.
-
size
public int size()Returns the number of instants in this list.- Specified by:
size
in interfaceCollection<Instant>
- Specified by:
size
in interfaceList<Instant>
- Specified by:
size
in classAbstractCollection<Instant>
- Returns:
- number of instants in this list.
-
get
Returns the instant at the given index.
-