Skip to content

Commit 07dd98c

Browse files
authored
SunTimesCalculator - caching
1 parent 31d907c commit 07dd98c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@
5151
*/
5252
@Deprecated (since = "3.0.0", forRemoval=false)
5353
public class SunTimesCalculator extends AstronomicalCalculator {
54+
55+
/**
56+
* {@inheritDoc} This calculator's results depend only on the arguments and on settings whose setters clear the cache.
57+
*/
58+
@Override
59+
protected boolean isResultCacheable() {
60+
return true;
61+
}
5462

5563
/**
5664
* Default constructor of the SunTimesCalculator.

0 commit comments

Comments
 (0)