Class DateToTemporal
- All Implemented Interfaces:
Iterable<Temporal>,Collection<Temporal>
A collection where conversion from
Date to Temporal objects are performed on-the-fly.
This is used for handling legacy metadata, before the move to java.time.
This adapter may be deleted after deprecated metadata methods have been removed from Apache SIS.- Since:
- 1.3
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<? extends Date>The collection of dates. -
Constructor Summary
ConstructorsConstructorDescriptionDateToTemporal(Collection<? extends Date> source) Creates a new view over the given collection. -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream
-
Field Details
-
source
The collection of dates.
-
-
Constructor Details
-
DateToTemporal
Creates a new view over the given collection.- Parameters:
source- the collection of dates to wrap.
-
-
Method Details
-
size
public int size()Returns the number of dates in this collection.- Specified by:
sizein interfaceCollection<Temporal>- Specified by:
sizein classAbstractCollection<Temporal>- Returns:
- number of dates.
-
iterator
Returns an iterator over the dates in this collection.- Specified by:
iteratorin interfaceCollection<Temporal>- Specified by:
iteratorin interfaceIterable<Temporal>- Specified by:
iteratorin classAbstractCollection<Temporal>- Returns:
- an iterator over the dates.
-