Class TemporalToDate

java.lang.Object
java.util.AbstractCollection<Date>
org.apache.sis.internal.metadata.legacy.TemporalToDate
All Implemented Interfaces:
Iterable<Date>, Collection<Date>

public final class TemporalToDate extends AbstractCollection<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
  • Field Details

  • Constructor Details

    • TemporalToDate

      public TemporalToDate(Collection<? extends Temporal> source)
      Creates a new view over the given collection.
      Parameters:
      source - the collection of dates to wrap.
  • Method Details