public class TimeSeriesExtractor extends Object
Constructor and Description |
---|
TimeSeriesExtractor(int minCentury,
int maxCentury,
int minDecade,
int maxDecade) |
Modifier and Type | Method and Description |
---|---|
List<Integer> |
extractDecades(List<org.gbif.api.model.registry.eml.temporal.TemporalCoverage> temporalCoverages)
Produces a list of 4 digit decades or centuries with no duplicates, following normal ordering.
|
public TimeSeriesExtractor(int minCentury, int maxCentury, int minDecade, int maxDecade)
minCentury
- the minimum value ever extracted, eg 1500maxCentury
- the maximum value ever extracted, eg 2400minDecade
- the lowest decade value to be extracted, needs to be within the century range. Eg 1870maxDecade
- the largest decade value to be extracted, needs to be within the century range. Eg 2020public List<Integer> extractDecades(List<org.gbif.api.model.registry.eml.temporal.TemporalCoverage> temporalCoverages)
temporalCoverages
- the various time periodsCopyright © 2016 Global Biodiversity Information Facility. All rights reserved.