Package org.shredzone.commons.suncalc
Interface MoonTimes.Parameters
- All Superinterfaces:
Builder<MoonTimes>
,GenericParameter<MoonTimes.Parameters>
,LocationParameter<MoonTimes.Parameters>
,TimeParameter<MoonTimes.Parameters>
- Enclosing class:
- MoonTimes
public static interface MoonTimes.Parameters
extends GenericParameter<MoonTimes.Parameters>, LocationParameter<MoonTimes.Parameters>, TimeParameter<MoonTimes.Parameters>, Builder<MoonTimes>
Collects all parameters for
MoonTimes
.-
Method Summary
Modifier and TypeMethodDescriptiondefault MoonTimes.Parameters
Computes until all rise and set times are found.Limits the calculation window to the givenDuration
.default MoonTimes.Parameters
oneDay()
Limits the time window to the next 24 hours.Methods inherited from interface org.shredzone.commons.suncalc.param.GenericParameter
copy
Methods inherited from interface org.shredzone.commons.suncalc.param.LocationParameter
at, at, elevation, elevationFt, height, heightFt, latitude, latitude, longitude, longitude, sameLocationAs
-
Method Details
-
limit
Limits the calculation window to the givenDuration
.- Parameters:
duration
- Duration of the calculation window. Must be positive.- Returns:
- itself
- Since:
- 3.1
-
oneDay
Limits the time window to the next 24 hours.- Returns:
- itself
-
fullCycle
Computes until all rise and set times are found.This is the default.
- Returns:
- itself
-