Package org.shredzone.commons.suncalc
Interface MoonPhase.Parameters
- All Superinterfaces:
Builder<MoonPhase>
,GenericParameter<MoonPhase.Parameters>
,TimeParameter<MoonPhase.Parameters>
,TimeResultParameter<MoonPhase.Parameters>
- Enclosing class:
- MoonPhase
public static interface MoonPhase.Parameters
extends GenericParameter<MoonPhase.Parameters>, TimeParameter<MoonPhase.Parameters>, TimeResultParameter<MoonPhase.Parameters>, Builder<MoonPhase>
Collects all parameters for
MoonPhase
.- Since:
- 2.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.shredzone.commons.suncalc.param.TimeResultParameter
TimeResultParameter.Unit
-
Method Summary
Modifier and TypeMethodDescriptionphase
(double phase) Sets a free phase to be used.phase
(MoonPhase.Phase phase) Sets the desiredMoonPhase.Phase
.Methods inherited from interface org.shredzone.commons.suncalc.param.GenericParameter
copy
Methods inherited from interface org.shredzone.commons.suncalc.param.TimeParameter
localTime, midnight, now, on, on, on, on, plusDays, sameTimeAs, timezone, timezone, today, tomorrow, utc
Methods inherited from interface org.shredzone.commons.suncalc.param.TimeResultParameter
truncatedTo
-
Method Details
-
phase
Sets the desiredMoonPhase.Phase
.Defaults to
MoonPhase.Phase.NEW_MOON
.- Parameters:
phase
-MoonPhase.Phase
to be used.- Returns:
- itself
-
phase
Sets a free phase to be used.- Parameters:
phase
- Desired phase, in degrees. 0 = new moon, 90 = first quarter, 180 = full moon, 270 = third quarter.- Returns:
- itself
-