Skip to content

Commit 85782f3

Browse files
authored
SunTimesCalculator bogus getTimeAtAzimuth() Implementation
1 parent 46909da commit 85782f3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/main/java/com/kosherjava/zmanim/util/SunTimesCalculator.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,17 @@ public double getSolarElevation(ZonedDateTime zdt, GeoLocation geoLocation) {
293293
throw new UnsupportedOperationException(
294294
"The SunTimesCalculator class does not implement the getSolarElevation method. Use the NOAACalculator instead.");
295295
}
296+
297+
/**
298+
* <b>This calculator class does not implement the getTimeAtAzimuth method, and throws a {@link UnsupportedOperationException}.
299+
* Use the {@link NOAACalculator}if this method is required</b>.
300+
* <br>{@inheritDoc}
301+
* @throws UnsupportedOperationException This calculator class does not implement the getTimeAtAzimuth method. Use the
302+
* {@link NOAACalculator} instead.
303+
*/
304+
@Override
305+
public double getTimeAtAzimuth(LocalDate localDate, GeoLocation geoLocation, double azimuth) {
306+
throw new UnsupportedOperationException(
307+
"The SunTimesCalculator class does not implement the getTimeAtAzimuth method. Use the {@link NOAACalculator} instead.");
308+
}
296309
}

0 commit comments

Comments
 (0)