Package thredds.client.catalog
Class TimeCoverage.Builder
- java.lang.Object
-
- thredds.client.catalog.TimeCoverage.Builder
-
- Enclosing class:
- TimeCoverage
public static class TimeCoverage.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeCoverage
build()
TimeCoverage.Builder
setDuration(TimeDuration duration)
Set the duration of the interval.TimeCoverage.Builder
setEnd(DateType end)
Set the ending Date.TimeCoverage.Builder
setResolution(TimeDuration resolution)
Set the time resolution.TimeCoverage.Builder
setStart(DateType start)
Set the starting Date.
-
-
-
Method Detail
-
setDuration
public TimeCoverage.Builder setDuration(TimeDuration duration)
Set the duration of the interval. Makes useDuration true. If useStart, recalculate end, else recalculate start.- Parameters:
duration
- duration of the interval
-
setEnd
public TimeCoverage.Builder setEnd(DateType end)
Set the ending Date. Makes useEnd true. If useStart, recalculate the duration, else recalculate start.- Parameters:
end
- ending Date
-
setResolution
public TimeCoverage.Builder setResolution(TimeDuration resolution)
Set the time resolution.- Parameters:
resolution
- the time resolution
-
setStart
public TimeCoverage.Builder setStart(DateType start)
Set the starting Date. Makes useStart true. If useEnd, recalculate the duration, else recalculate end.- Parameters:
start
- starting Date
-
build
public TimeCoverage build()
-
-