Class TemporalToDate
- All Implemented Interfaces:
Iterable<Date>, Collection<Date>
A collection where conversion from
Temporal to Date 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
- Author:
- Martin Desruisseaux (Geomatys)
-
Constructor Summary
ConstructorsConstructorDescriptionTemporalToDate(Collection<? extends Temporal> source) Creates a new view over the given collection. -
Method Summary
Methods inherited from class AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream
-
Constructor Details
-
TemporalToDate
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<Date>- Specified by:
sizein classAbstractCollection<Date>- Returns:
- number of dates.
-
iterator
-