Skip to content

Commit c8dd09f

Browse files
committed
Many Javadoc tweaks, deprecate GeoLocationUtils
The javadoc tool no longer complains about anything empty. The only remaining issue seems to be a bug with the javadoc tool that complains about legitimate (and needed) lang attributes in html elements. Thankfully the elements make it to the documentation properly.
1 parent f7720c0 commit c8dd09f

File tree

10 files changed

+293
-10
lines changed

10 files changed

+293
-10
lines changed

src/main/java/com/kosherjava/zmanim/AstronomicalCalendar.java

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,14 @@ public class AstronomicalCalendar implements Cloneable {
109109
*/
110110
private Calendar calendar;
111111

112+
/**
113+
* the {@link GeoLocation} used for calculations.
114+
*/
112115
private GeoLocation geoLocation;
113116

117+
/**
118+
* the internal {@link AstronomicalCalculator} used for calculating solar based times.
119+
*/
114120
private AstronomicalCalculator astronomicalCalculator;
115121

116122
/**
@@ -601,7 +607,6 @@ public double getSunriseSolarDipFromOffset(double minutes) {
601607
degrees = degrees.subtract(incrementor);
602608
}
603609
offsetByDegrees = getSunriseOffsetByDegrees(GEOMETRIC_ZENITH + degrees.doubleValue());
604-
//System.out.println("offsetByDegrees: " + offsetByDegrees);
605610
}
606611
return degrees.doubleValue();
607612
}
@@ -634,6 +639,31 @@ public double getSunsetSolarDipFromOffset(double minutes) {
634639
return degrees.doubleValue();
635640
}
636641

642+
/**
643+
* FIXME broken for czc.getRiseSetSolarDipFromOffset(-72, czc.getSunrise());
644+
* and boken in other was as well
645+
* @param minutes
646+
* @param riseSet
647+
* @return
648+
*/
649+
/*public double getRiseSetSolarDipFromOffset(double minutes, Date riseSet) {
650+
Date offsetByDegrees = riseSet;
651+
Date offsetByTime = getTimeOffset(riseSet, minutes * MINUTE_MILLIS);
652+
BigDecimal degrees = new BigDecimal(0);
653+
BigDecimal incrementor = new BigDecimal("0.001");
654+
while (offsetByDegrees == null || ((minutes > 0.0 && offsetByDegrees.getTime() < offsetByTime.getTime()) ||
655+
(minutes < 0.0 && offsetByDegrees.getTime() > offsetByTime.getTime()))) {
656+
if(minutes > 0.0) {
657+
degrees = degrees.add(incrementor);
658+
} else {
659+
degrees = degrees.subtract(incrementor);
660+
}
661+
offsetByDegrees = getSunsetOffsetByDegrees(GEOMETRIC_ZENITH + degrees.doubleValue());
662+
}
663+
return degrees.doubleValue();
664+
}*/
665+
666+
637667
/**
638668
* Adjusts the <code>Calendar</code> to deal with edge cases where the location crosses the antimeridian.
639669
*

src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,14 @@ public class ComplexZmanimCalendar extends ZmanimCalendar {
414414
*/
415415
private double ateretTorahSunsetOffset = 40;
416416

417+
/**
418+
* A constructor that takes a {@link GeoLocation} as a parameter.
419+
*
420+
* @param location
421+
* the location
422+
*
423+
* @see ZmanimCalendar#ZmanimCalendar(GeoLocation)
424+
*/
417425
public ComplexZmanimCalendar(GeoLocation location) {
418426
super(location);
419427
}

src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,51 +46,131 @@
4646
* @author &copy; Eliyahu Hershfeld 2011 - 2020
4747
*/
4848
public class JewishCalendar extends JewishDate {
49+
/** The 14th day of Nisan, the day before of Pesach (Passover).*/
4950
public static final int EREV_PESACH = 0;
51+
/** The holiday of Pesach (Passover) on the 15th (and 16th out of Israel) day of Nisan.*/
5052
public static final int PESACH = 1;
53+
/** Chol Hamoed (interim days) of Pesach (Passover)*/
5154
public static final int CHOL_HAMOED_PESACH = 2;
55+
/**Pesach Sheni, the 14th day of Iyar, a minor holiday.*/
5256
public static final int PESACH_SHENI = 3;
57+
/**Erev Shavuos (the day before Shavuos), the 5th of Sivan*/
5358
public static final int EREV_SHAVUOS = 4;
59+
/**Shavuos (Pentecost), the 6th of Sivan*/
5460
public static final int SHAVUOS = 5;
61+
/** The fast of the 17th day of Tamuz*/
5562
public static final int SEVENTEEN_OF_TAMMUZ = 6;
63+
/** The fast of the 9th of Av*/
5664
public static final int TISHA_BEAV = 7;
65+
/** The 15th day of Av, a minor holiday*/
5766
public static final int TU_BEAV = 8;
67+
/**Erev Rosh Hashana (the day before Rosh Hashana), the 29th of Elul*/
5868
public static final int EREV_ROSH_HASHANA = 9;
69+
/** Rosh Hashana, the first of Tishrei.*/
5970
public static final int ROSH_HASHANA = 10;
71+
/** The fast of Gedalyah, the 3rd of Tishrei.*/
6072
public static final int FAST_OF_GEDALYAH = 11;
73+
/** The 9th day of Tishrei, the day before of Yom Kippur.*/
6174
public static final int EREV_YOM_KIPPUR = 12;
75+
/** The holiday of Yom Kippur, the 10th day of Tishrei*/
6276
public static final int YOM_KIPPUR = 13;
77+
/** The 14th day of Tishrei, the day before of Succos/Sukkos (Tabernacles).*/
6378
public static final int EREV_SUCCOS = 14;
79+
/** The holiday of Succos/Sukkos (Tabernacles), the 15th (and 16th out of Israel) day of Tishrei */
6480
public static final int SUCCOS = 15;
81+
/** Chol Hamoed (interim days) of Succos/Sukkos (Tabernacles)*/
6582
public static final int CHOL_HAMOED_SUCCOS = 16;
83+
/** Hoshana Rabba, the 7th day of Succos/Sukkos that occurs on the 21st of Tishrei. */
6684
public static final int HOSHANA_RABBA = 17;
85+
/** Shmini Atzeres, the 8th day of Succos/Sukkos is an independent holiday that occurs on the 22nd of Tishrei. */
6786
public static final int SHEMINI_ATZERES = 18;
87+
/** Simchas Torah, the 9th day of Succos/Sukkos, or the second day of Shmini Atzeres that is celebrated
88+
* {@link #getInIsrael() out of Israel} on the 23rd of Tishrei.
89+
*/
6890
public static final int SIMCHAS_TORAH = 19;
6991
// public static final int EREV_CHANUKAH = 20;// probably remove this
92+
/** The holiday of Chanukah. 8 days starting on the 25th day Kislev.*/
7093
public static final int CHANUKAH = 21;
94+
/** The fast of the 10th day of Teves.*/
7195
public static final int TENTH_OF_TEVES = 22;
96+
/** Tu Bishvat on the 15th day of Shevat, a minor holiday.*/
7297
public static final int TU_BESHVAT = 23;
98+
/** The fast of Esther, usually on the 13th day of Adar (or Adar II on leap years). It is earlier on some years.*/
7399
public static final int FAST_OF_ESTHER = 24;
100+
/** The holiday of Purim on the 14th day of Adar (or Adar II on leap years).*/
74101
public static final int PURIM = 25;
102+
/** The holiday of Shushan Purim on the 15th day of Adar (or Adar II on leap years).*/
75103
public static final int SHUSHAN_PURIM = 26;
104+
/** The holiday of Purim Katan on the 14th day of Adar I on a leap year when Purim is on Adar II, a minor holiday.*/
76105
public static final int PURIM_KATAN = 27;
106+
/**
107+
* Rosh Chodesh, the new moon on the first day of the Jewish month, and the 30th day of the previous month in the
108+
* case of a month with 30 days.
109+
*/
77110
public static final int ROSH_CHODESH = 28;
111+
/** Yom HaShoah, Holocaust Remembrance Day, usually held on the 27th of Nisan. If it falls on a Friday, it is moved
112+
* to the 26th, and if it falls on a Sunday it is moved to the 28th. A {@link #isUseModernHolidays() modern holiday}.
113+
*/
78114
public static final int YOM_HASHOAH = 29;
115+
/**
116+
* Yom HaZikaron, Israeli Memorial Day, held a day before Yom Ha'atzmaut. A {@link #isUseModernHolidays() modern holiday}.
117+
*/
79118
public static final int YOM_HAZIKARON = 30;
119+
120+
/** Yom Ha'atzmaut, Israel Independence Day, the 5th of Iyar, but if it occurs on a Friday or Saturday, the holiday is
121+
* moved back to Thursday, the 3rd of 4th of Iyar, and if it falls on a Monday, it is moved forward to Tuesday the
122+
* 6th of Iyar. A {@link #isUseModernHolidays() modern holiday}.*/
80123
public static final int YOM_HAATZMAUT = 31;
124+
/**
125+
* Yom Yerushalayim or Jerusalem Day, on 28 Iyar. A {@link #isUseModernHolidays() modern holiday}.
126+
*/
81127
public static final int YOM_YERUSHALAYIM = 32;
128+
129+
/** The 33rd day of the Omer, the 18th of Iyar, a minor holiday.*/
82130
public static final int LAG_BAOMER = 33;
131+
132+
/** The holiday of Purim Katan on the 15th day of Adar I on a leap year when Purim is on Adar II, a minor holiday.*/
83133
public static final int SHUSHAN_PURIM_KATAN = 34;
84134

135+
/**
136+
* Is the calendar set to Israel, where some holidays have different rules.
137+
* @see #getInIsrael()
138+
* @see #setInIsrael(boolean)
139+
*/
85140
private boolean inIsrael = false;
141+
142+
/**
143+
* Is the calendar set to use modern Israeli holidays such as Yom Haatzmaut.
144+
* @see #isUseModernHolidays()
145+
* @see #setUseModernHolidays(boolean)
146+
*/
86147
private boolean useModernHolidays = false;
87148

88149
/**
89-
* The {@link #VZOS_HABERACHA} enum exists for consistency, but is not currently used.
150+
* List of <em>parshiyos</em>. {@link #NONE} indicates a week without a <em>parsha</em>, while the enum for the <em>parsha</em> of
151+
* {@link #VZOS_HABERACHA} exists for consistency, but is not currently used.
90152
*/
91153
public static enum Parsha {
92-
NONE, BERESHIS, NOACH, LECH_LECHA, VAYERA, CHAYEI_SARA, TOLDOS, VAYETZEI, VAYISHLACH, VAYESHEV, MIKETZ, VAYIGASH, VAYECHI, SHEMOS, VAERA, BO, BESHALACH, YISRO, MISHPATIM, TERUMAH, TETZAVEH, KI_SISA, VAYAKHEL, PEKUDEI, VAYIKRA, TZAV, SHMINI, TAZRIA, METZORA, ACHREI_MOS, KEDOSHIM, EMOR, BEHAR, BECHUKOSAI, BAMIDBAR, NASSO, BEHAALOSCHA, SHLACH, KORACH, CHUKAS, BALAK, PINCHAS, MATOS, MASEI, DEVARIM, VAESCHANAN, EIKEV, REEH, SHOFTIM, KI_SEITZEI, KI_SAVO, NITZAVIM, VAYEILECH, HAAZINU, VZOS_HABERACHA, VAYAKHEL_PEKUDEI, TAZRIA_METZORA, ACHREI_MOS_KEDOSHIM, BEHAR_BECHUKOSAI, CHUKAS_BALAK, MATOS_MASEI, NITZAVIM_VAYEILECH, SHKALIM, ZACHOR, PARA, HACHODESH
154+
/**NONE A week without any <em>parsha</em> such as <em>Shabbos Chol Hamoed</em> */NONE,
155+
/**BERESHIS*/BERESHIS, /**NOACH*/NOACH, /**LECH_LECHA*/LECH_LECHA, /**VAYERA*/VAYERA, /**CHAYEI_SARA*/CHAYEI_SARA, /**TOLDOS*/TOLDOS,
156+
/**VAYETZEI*/VAYETZEI, /**VAYISHLACH*/VAYISHLACH, /**VAYESHEV*/VAYESHEV, /**MIKETZ*/MIKETZ, /**VAYIGASH*/VAYIGASH, /**VAYECHI*/VAYECHI,
157+
/**SHEMOS*/SHEMOS, /**VAERA*/VAERA, /**BO*/BO, /**BESHALACH*/BESHALACH, /**YISRO*/YISRO, /**MISHPATIM*/MISHPATIM, /**TERUMAH*/TERUMAH,
158+
/**TETZAVEH*/TETZAVEH, /***KI_SISA*/KI_SISA, /**VAYAKHEL*/VAYAKHEL, /**PEKUDEI*/PEKUDEI, /**VAYIKRA*/VAYIKRA, /**TZAV*/TZAV, /**SHMINI*/SHMINI,
159+
/**TAZRIA*/TAZRIA, /**METZORA*/METZORA, /**ACHREI_MOS*/ACHREI_MOS, /**KEDOSHIM*/KEDOSHIM, /**EMOR*/EMOR, /**BEHAR*/BEHAR, /**BECHUKOSAI*/BECHUKOSAI,
160+
/**BAMIDBAR*/BAMIDBAR, /**NASSO*/NASSO, /**BEHAALOSCHA*/BEHAALOSCHA, /**SHLACH*/SHLACH, /**KORACH*/KORACH, /**CHUKAS*/CHUKAS, /**BALAK*/BALAK,
161+
/**PINCHAS*/PINCHAS, /**MATOS*/MATOS, /**MASEI*/MASEI, /**DEVARIM*/DEVARIM, /**VAESCHANAN*/VAESCHANAN, /**EIKEV*/EIKEV, /**REEH*/REEH,
162+
/**SHOFTIM*/SHOFTIM, /**KI_SEITZEI*/KI_SEITZEI, /**KI_SAVO*/KI_SAVO, /**NITZAVIM*/NITZAVIM, /**VAYEILECH*/VAYEILECH, /**HAAZINU*/HAAZINU,
163+
/**VZOS_HABERACHA*/VZOS_HABERACHA, /**The double parsha of Vayakhel &amp; Peudei*/VAYAKHEL_PEKUDEI, /**The double <em>parsha</em> of Tazria
164+
* &amp; Metzora*/TAZRIA_METZORA,/**The double <em>parsha</em> of Achrei Mos &amp; Kedoshim*/ACHREI_MOS_KEDOSHIM,/**The double <em>parsha</em>
165+
* of Behar &amp; Bechukosai*/BEHAR_BECHUKOSAI,/**The double <em>parsha</em> of Chukas &amp; Balak*/CHUKAS_BALAK, /**The double
166+
* <em>parsha</em> of Matos &amp; Masei*/MATOS_MASEI,/**The double <em>parsha</em> of Nitzavim &amp; Vayelech*/NITZAVIM_VAYEILECH,
167+
/**The special <em>parsha</em> of Shekalim*/SHKALIM, /** The special <em>parsha</em> of Zachor*/ZACHOR, /**The special <em>parsha</em> of
168+
* Para*/PARA, /** The special <em>parsha</em> of Hachodesh*/HACHODESH
93169
};
170+
171+
/**
172+
* An array of <em>parshiyos</em> in the 17 possible combinations.
173+
*/
94174
public static final Parsha[][] parshalist = {
95175
{Parsha.NONE, Parsha.VAYEILECH, Parsha.HAAZINU, Parsha.NONE, Parsha.BERESHIS, Parsha.NOACH, Parsha.LECH_LECHA, Parsha.VAYERA, Parsha.CHAYEI_SARA, Parsha.TOLDOS, Parsha.VAYETZEI, Parsha.VAYISHLACH, Parsha.VAYESHEV, Parsha.MIKETZ, Parsha.VAYIGASH, Parsha.VAYECHI, Parsha.SHEMOS, Parsha.VAERA, Parsha.BO, Parsha.BESHALACH, Parsha.YISRO, Parsha.MISHPATIM, Parsha.TERUMAH, Parsha.TETZAVEH, Parsha.KI_SISA, Parsha.VAYAKHEL_PEKUDEI, Parsha.VAYIKRA, Parsha.TZAV, Parsha.NONE, Parsha.SHMINI, Parsha.TAZRIA_METZORA, Parsha.ACHREI_MOS_KEDOSHIM, Parsha.EMOR, Parsha.BEHAR_BECHUKOSAI, Parsha.BAMIDBAR, Parsha.NASSO, Parsha.BEHAALOSCHA, Parsha.SHLACH, Parsha.KORACH, Parsha.CHUKAS, Parsha.BALAK, Parsha.PINCHAS, Parsha.MATOS_MASEI, Parsha.DEVARIM, Parsha.VAESCHANAN, Parsha.EIKEV, Parsha.REEH, Parsha.SHOFTIM, Parsha.KI_SEITZEI, Parsha.KI_SAVO, Parsha.NITZAVIM_VAYEILECH},
96176
{Parsha.NONE, Parsha.VAYEILECH, Parsha.HAAZINU, Parsha.NONE, Parsha.BERESHIS, Parsha.NOACH, Parsha.LECH_LECHA, Parsha.VAYERA, Parsha.CHAYEI_SARA, Parsha.TOLDOS, Parsha.VAYETZEI, Parsha.VAYISHLACH, Parsha.VAYESHEV, Parsha.MIKETZ, Parsha.VAYIGASH, Parsha.VAYECHI, Parsha.SHEMOS, Parsha.VAERA, Parsha.BO, Parsha.BESHALACH, Parsha.YISRO, Parsha.MISHPATIM, Parsha.TERUMAH, Parsha.TETZAVEH, Parsha.KI_SISA, Parsha.VAYAKHEL_PEKUDEI, Parsha.VAYIKRA, Parsha.TZAV, Parsha.NONE, Parsha.SHMINI, Parsha.TAZRIA_METZORA, Parsha.ACHREI_MOS_KEDOSHIM, Parsha.EMOR, Parsha.BEHAR_BECHUKOSAI, Parsha.BAMIDBAR, Parsha.NONE, Parsha.NASSO, Parsha.BEHAALOSCHA, Parsha.SHLACH, Parsha.KORACH, Parsha.CHUKAS_BALAK, Parsha.PINCHAS, Parsha.MATOS_MASEI, Parsha.DEVARIM, Parsha.VAESCHANAN, Parsha.EIKEV, Parsha.REEH, Parsha.SHOFTIM, Parsha.KI_SEITZEI, Parsha.KI_SAVO, Parsha.NITZAVIM_VAYEILECH},

src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishDate.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,14 @@ public class JewishDate implements Comparable<JewishDate>, Cloneable {
148148
*/
149149
private static final int JEWISH_EPOCH = -1373429;
150150

151+
/** The number of <em>chalakim</em> (18) in a minute.*/
151152
private static final int CHALAKIM_PER_MINUTE = 18;
153+
/** The number of <em>chalakim</em> (1080) in an hour.*/
152154
private static final int CHALAKIM_PER_HOUR = 1080;
155+
/** The number of <em>chalakim</em> (25,920) in a 24 hour day .*/
153156
private static final int CHALAKIM_PER_DAY = 25920; // 24 * 1080
157+
/** The number of <em>chalakim</em> in an average Jewish month. A month has 29 days, 12 hours and 793
158+
* <em>chalakim</em> (44 minutes and 3.3 seconds) for a total of 765,433 <em>chalakim</em>*/
154159
private static final long CHALAKIM_PER_MONTH = 765433; // (29 * 24 + 12) * 1080 + 793
155160
/**
156161
* Days from the beginning of Sunday till molad BaHaRaD. Calculated as 1 day, 5 hours and 204 chalakim = (24 + 5) *
@@ -182,11 +187,17 @@ public class JewishDate implements Comparable<JewishDate>, Cloneable {
182187
*/
183188
public static final int SHELAIMIM = 2;
184189

190+
/** the internal Jewish month.*/
185191
private int jewishMonth;
192+
/** the internal Jewish day.*/
186193
private int jewishDay;
194+
/** the internal Jewish year.*/
187195
private int jewishYear;
196+
/** the internal count of <em>molad</em> hours.*/
188197
private int moladHours;
198+
/** the internal count of <em>molad</em> minutes.*/
189199
private int moladMinutes;
200+
/** the internal count of <em>molad</em> <em>chalakim</em>.*/
190201
private int moladChalakim;
191202

192203
/**
@@ -305,6 +316,10 @@ int getLastDayOfGregorianMonth(int month) {
305316
/** 1 == Sunday, 2 == Monday, etc... */
306317
private int dayOfWeek;
307318

319+
/** Returns the absolute date (days since January 1, 0001 on the Gregorian calendar).
320+
* @see #getAbsDate()
321+
* @see #absDateToJewishDate()
322+
*/
308323
private int gregorianAbsDate;
309324

310325
/**
@@ -800,7 +815,7 @@ public int getDaysInJewishMonth() {
800815
}
801816

802817
/**
803-
* Computes the Jewish date from the absolute date. ND+ER
818+
* Computes the Jewish date from the absolute date.
804819
*/
805820
private void absDateToJewishDate() {
806821
// Approximation from below

src/main/java/com/kosherjava/zmanim/hebrewcalendar/YerushalmiYomiCalculator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
/**
23-
* This class calculates the <a href="https://en.wikipedia.org/wiki/Jerusalem_Talmud">Yerusalmi</a> <a href=
23+
* This class calculates the <a href="https://en.wikipedia.org/wiki/Jerusalem_Talmud">Talmud Yerusalmi</a> <a href=
2424
* "https://en.wikipedia.org/wiki/Daf_Yomi">Daf Yomi</a> page ({@link Daf}) for the a given date.
2525
*
2626
* @author &copy; elihaidv
@@ -32,8 +32,11 @@ public class YerushalmiYomiCalculator {
3232
* The start date of the first Daf Yomi Yerushalmi cycle of February 2, 1980 / 18 Teves, 5740.
3333
*/
3434
private final static Calendar DAF_YOMI_START_DAY = new GregorianCalendar(1980, Calendar.FEBRUARY, 2);
35+
/** The number of milliseconds in a day. */
3536
private final static int DAY_MILIS = 1000 * 60 * 60 * 24;
37+
/** The number of pages in the Talmud Yerushalmi.*/
3638
private final static int WHOLE_SHAS_DAFS = 1554;
39+
/** The number of pages per <em>masechta</em> (tractate).*/
3740
private final static int[] BLATT_PER_MASSECTA = {
3841
68, 37, 34, 44, 31, 59, 26, 33, 28, 20, 13, 92, 65, 71, 22, 22, 42, 26, 26, 33, 34, 22,
3942
19, 85, 72, 47, 40, 47, 54, 48, 44, 37, 34, 44, 9, 57, 37, 19, 13};

src/main/java/com/kosherjava/zmanim/hebrewcalendar/YomiCalculator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ public class YomiCalculator {
3131
* The start date of the first Daf Yomi Bavli cycle of September 11, 1923 / Rosh Hashana 5684.
3232
*/
3333
private static final Calendar dafYomiStartDay = new GregorianCalendar(1923, Calendar.SEPTEMBER, 11);
34+
/** The start date of the first Daf Yomi Bavli cycle in the Julian calendar. Used internally for claculations.*/
3435
private static final int dafYomiJulianStartDay = getJulianDay(dafYomiStartDay);
3536
/**
3637
* The date that the pagination for the Daf Yomi <em>Maseches Shekalim</em> changed to use the commonly used Vilna
3738
* Shas pagination from the no longer commonly available Zhitomir / Slavuta Shas used by Rabbi Meir Shapiro.
3839
*/
3940
private static final Calendar shekalimChangeDay = new GregorianCalendar(1975, Calendar.JUNE, 24);
41+
42+
/** The Julian date that the cycle for Shekalim changed.
43+
* @see #getDafYomiBavli(JewishCalendar) for details.
44+
*/
4045
private static final int shekalimJulianChangeDay = getJulianDay(shekalimChangeDay);
4146

4247
/**

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

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Zmanim Java API
3-
* Copyright (C) 2004-2018 Eliyahu Hershfeld
3+
* Copyright (C) 2004-2020 Eliyahu Hershfeld
44
*
55
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
66
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
@@ -24,16 +24,56 @@
2424
* algorithm.
2525
*
2626
* @author &copy; Eliyahu Hershfeld 2004 - 2020
27-
* @version 1.1
2827
*/
2928
public class GeoLocation implements Cloneable {
29+
/**
30+
* @see #getLatitude()
31+
* @see #setLatitude(double)
32+
* @see #setLatitude(int, int, double, String)
33+
*/
3034
private double latitude;
35+
36+
/**
37+
* @see #getLongitude()
38+
* @see #setLongitude(double)
39+
* @see #setLongitude(int, int, double, String)
40+
*/
3141
private double longitude;
42+
43+
/**
44+
* @see #getLocationName()
45+
* @see #setLocationName(String)
46+
*/
3247
private String locationName;
48+
49+
/**
50+
* @see #getTimeZone()
51+
* @see #setTimeZone(TimeZone)
52+
*/
3353
private TimeZone timeZone;
54+
55+
/**
56+
* @see #getElevation()
57+
* @see #setElevation(double)
58+
*/
3459
private double elevation;
60+
61+
/**
62+
* Constant for a distance type calculation.
63+
* @see #getGeodesicDistance(GeoLocation)
64+
*/
3565
private static final int DISTANCE = 0;
66+
67+
/**
68+
* Constant for a initial bearing type calculation.
69+
* @see #getGeodesicInitialBearing(GeoLocation)
70+
*/
3671
private static final int INITIAL_BEARING = 1;
72+
73+
/**
74+
* Constant for a final bearing type calculation.
75+
* @see #getGeodesicFinalBearing(GeoLocation)
76+
*/
3777
private static final int FINAL_BEARING = 2;
3878

3979
/** constant for milliseconds in a minute (60,000) */

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Zmanim Java API
3-
* Copyright (C) 2004-2018 Eliyahu Hershfeld
3+
* Copyright (C) 2004-2020 Eliyahu Hershfeld
44
*
55
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
66
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
@@ -21,10 +21,26 @@
2121
* <a href="http://www.fsf.org/licensing/licenses/lgpl.html">LGPL</a> Javascript Implementation
2222
*
2323
* @author &copy; Eliyahu Hershfeld 2009 - 2020
24+
* @deprecated All methods in this call are available in the {@link GeoLocation} class, and this class that duplicates that
25+
* code will be removed in release 3.0.
2426
*/
2527
public class GeoLocationUtils {
28+
/**
29+
* Constant for a distance type calculation.
30+
* @see #getGeodesicDistance(GeoLocation, GeoLocation)
31+
*/
2632
private static int DISTANCE = 0;
33+
34+
/**
35+
* Constant for a initial bearing type calculation.
36+
* @see #getGeodesicInitialBearing(GeoLocation, GeoLocation)
37+
*/
2738
private static int INITIAL_BEARING = 1;
39+
40+
/**
41+
* Constant for a final bearing type calculation.
42+
* @see #getGeodesicFinalBearing(GeoLocation, GeoLocation)
43+
*/
2844
private static int FINAL_BEARING = 2;
2945

3046
/**

0 commit comments

Comments
 (0)