Class DateToTemporal
- All Implemented Interfaces:
Iterable<Temporal>, Collection<Temporal>
-
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 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
-
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.
-