Class TemporalToDate
- All Implemented Interfaces:
Iterable<Date>, Collection<Date>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<? extends Temporal> The collection of dates. -
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
-
Field Details
-
source
The collection of dates.
-
-
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
-