1
1
/*
2
2
* Zmanim Java API
3
- * Copyright (C) 2011 - 2020 Eliyahu Hershfeld
3
+ * Copyright (C) 2011 - 2023 Eliyahu Hershfeld
4
4
*
5
5
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
6
6
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
17
17
package com .kosherjava .zmanim .hebrewcalendar ;
18
18
19
19
/**
20
- * An Object representing a Daf in the Daf Yomi cycle.
20
+ * An Object representing a <em>daf</em> (page) in the <a href="https://en.wikipedia.org/wiki/Daf_Yomi"> Daf Yomi</a> cycle.
21
21
*
22
- * @author © Eliyahu Hershfeld 2011 - 2020
22
+ * @author © Eliyahu Hershfeld 2011 - 2023
23
23
*/
24
24
public class Daf {
25
25
/**
@@ -63,7 +63,7 @@ public class Daf {
63
63
"\u05E0 \u05D3 \u05D4 " };
64
64
65
65
/**
66
- * See {@link #getYerushlmiMasechtaTransliterated ()}.
66
+ * See {@link #getYerushalmiMasechtaTransliterated ()}.
67
67
*/
68
68
private static String [] masechtosYerushalmiTransliterated = { "Berachos" , "Pe'ah" , "Demai" , "Kilayim" , "Shevi'is" ,
69
69
"Terumos" , "Ma'asros" , "Ma'aser Sheni" , "Chalah" , "Orlah" , "Bikurim" , "Shabbos" , "Eruvin" , "Pesachim" ,
@@ -74,8 +74,8 @@ public class Daf {
74
74
/**
75
75
* See {@link #getYerushalmiMasechta()}.
76
76
*/
77
- private static final String [] masechtosYerushlmi = { "\u05d1 \u05e8 \u05db \u05d5 \u05ea " ,"\u05e4 \u05d9 \u05d0 \u05d4 " ,
78
- "\u05d3 \u05de \u05d0 \u05d9 " ,"\u05db \u05dc \u05d0 \u05d9 \u05d9 \ u05dd " ,"\u05e9 \u05d1 \u05d9 \u05e2 \u05d9 \u05ea " ,
77
+ private static final String [] masechtosYerushalmi = { "\u05d1 \u05e8 \u05db \u05d5 \u05ea " ,"\u05e4 \u05d9 \u05d0 \u05d4 " ,
78
+ "\u05d3 \u05de \u05d0 \u05d9 " ,"\u05db \u05dc \u05d0 \u05d9 \u05dd " ,"\u05e9 \u05d1 \u05d9 \u05e2 \u05d9 \u05ea " ,
79
79
"\u05ea \u05e8 \u05d5 \u05de \u05d5 \u05ea " ,"\u05de \u05e2 \u05e9 \u05e8 \u05d5 \u05ea " ,"\u05de \u05e2 \u05e9 \u05e8 \u05e9 \u05e0 \u05d9 " ,
80
80
"\u05d7 \u05dc \u05d4 " ,"\u05e2 \u05d5 \u05e8 \u05dc \u05d4 " ,"\u05d1 \u05d9 \u05db \u05d5 \u05e8 \u05d9 \u05dd " ,
81
81
"\u05e9 \u05d1 \u05ea " ,"\u05e2 \u05d9 \u05e8 \u05d5 \u05d1 \u05d9 \u05df " ,"\u05e4 \u05e1 \u05d7 \u05d9 \u05dd " ,
@@ -90,87 +90,87 @@ public class Daf {
90
90
"\u05d0 \u05d9 \u05df \u05d3 \u05e3 \u05d4 \u05d9 \u05d5 \u05dd " };
91
91
92
92
/**
93
- * Gets the masechta number of the currently set Daf. The sequence is: Berachos, Shabbos, Eruvin, Pesachim ,
94
- * Shekalim, Yoma, Sukkah, Beitzah, Rosh Hashana, Taanis, Megillah, Moed Katan, Chagigah, Yevamos, Kesubos, Nedarim ,
95
- * Nazir, Sotah, Gitin, Kiddushin, Bava Kamma, Bava Metzia, Bava Basra, Sanhedrin, Makkos, Shevuos, Avodah Zarah,
96
- * Horiyos, Zevachim, Menachos, Chullin, Bechoros, Arachin, Temurah, Kerisos, Meilah, Kinnim, Tamid, Midos and
93
+ * Gets the <em> masechta</em> number of the currently set <em> Daf</em> . The sequence is: Berachos, Shabbos, Eruvin,
94
+ * Pesachim, Shekalim, Yoma, Sukkah, Beitzah, Rosh Hashana, Taanis, Megillah, Moed Katan, Chagigah, Yevamos, Kesubos,
95
+ * Nedarim, Nazir, Sotah, Gitin, Kiddushin, Bava Kamma, Bava Metzia, Bava Basra, Sanhedrin, Makkos, Shevuos, Avodah
96
+ * Zarah, Horiyos, Zevachim, Menachos, Chullin, Bechoros, Arachin, Temurah, Kerisos, Meilah, Kinnim, Tamid, Midos and
97
97
* Niddah.
98
- * @return the masechtaNumber
98
+ * @return the masechtaNumber.
99
99
* @see #setMasechtaNumber(int)
100
100
*/
101
101
public int getMasechtaNumber () {
102
102
return masechtaNumber ;
103
103
}
104
104
105
105
/**
106
- * Set the masechta number in the order of the Daf Yomi. The sequence is: Berachos, Shabbos, Eruvin, Pesachim,
106
+ * Set the <em> masechta</em> number in the order of the Daf Yomi. The sequence is: Berachos, Shabbos, Eruvin, Pesachim,
107
107
* Shekalim, Yoma, Sukkah, Beitzah, Rosh Hashana, Taanis, Megillah, Moed Katan, Chagigah, Yevamos, Kesubos, Nedarim,
108
108
* Nazir, Sotah, Gitin, Kiddushin, Bava Kamma, Bava Metzia, Bava Basra, Sanhedrin, Makkos, Shevuos, Avodah Zarah,
109
109
* Horiyos, Zevachim, Menachos, Chullin, Bechoros, Arachin, Temurah, Kerisos, Meilah, Kinnim, Tamid, Midos and
110
110
* Niddah.
111
111
*
112
112
* @param masechtaNumber
113
- * the masechtaNumber in the order of the Daf Yomi to set
113
+ * the <em>masechta</em> number in the order of the Daf Yomi to set.
114
114
*/
115
115
public void setMasechtaNumber (int masechtaNumber ) {
116
116
this .masechtaNumber = masechtaNumber ;
117
117
}
118
118
119
119
/**
120
- * Constructor that creates a Daf setting the {@link #setMasechtaNumber(int) masechta Number } and
121
- * {@link #setDaf(int) daf Number}
120
+ * Constructor that creates a Daf setting the {@link #setMasechtaNumber(int) <em> masechta</em> number } and
121
+ * {@link #setDaf(int) <em> daf</em> number}.
122
122
*
123
- * @param masechtaNumber the masechtaNumber in the order of the Daf Yomi to set
124
- * @param daf the daf (page) number to set
123
+ * @param masechtaNumber the <em>masechta</em> number in the order of the Daf Yomi to set as the current <em>masechta</em>.
124
+ * @param daf the <em> daf</em> (page) number to set.
125
125
*/
126
126
public Daf (int masechtaNumber , int daf ) {
127
127
this .masechtaNumber = masechtaNumber ;
128
128
this .daf = daf ;
129
129
}
130
130
131
131
/**
132
- * Returns the daf (page number) of the Daf Yomi
133
- * @return the daf (page number) of the Daf Yomi
132
+ * Returns the <em> daf</em> (page) number of the Daf Yomi.
133
+ * @return the <em> daf</em> (page) number of the Daf Yomi.
134
134
*/
135
135
public int getDaf () {
136
136
return daf ;
137
137
}
138
138
139
139
/**
140
- * Sets the daf (page number) of the Daf Yomi
141
- * @param daf the daf (page) number
140
+ * Sets the <em> daf</em> (page) number of the Daf Yomi.
141
+ * @param daf the <em> daf</em> (page) number.
142
142
*/
143
143
public void setDaf (int daf ) {
144
144
this .daf = daf ;
145
145
}
146
146
147
147
/**
148
- * Returns the transliterated name of the masechta (tractate) of the Daf Yomi. The list of mashechtos is: Berachos,
149
- * Shabbos, Eruvin, Pesachim, Shekalim, Yoma, Sukkah, Beitzah, Rosh Hashana, Taanis, Megillah, Moed Katan, Chagigah ,
150
- * Yevamos, Kesubos, Nedarim, Nazir, Sotah, Gitin, Kiddushin, Bava Kamma, Bava Metzia, Bava Basra, Sanhedrin,
148
+ * Returns the transliterated name of the <em> masechta</em> (tractate) of the Daf Yomi. The list of <em> mashechtos</em>
149
+ * is: Berachos, Shabbos, Eruvin, Pesachim, Shekalim, Yoma, Sukkah, Beitzah, Rosh Hashana, Taanis, Megillah, Moed Katan,
150
+ * Chagigah, Yevamos, Kesubos, Nedarim, Nazir, Sotah, Gitin, Kiddushin, Bava Kamma, Bava Metzia, Bava Basra, Sanhedrin,
151
151
* Makkos, Shevuos, Avodah Zarah, Horiyos, Zevachim, Menachos, Chullin, Bechoros, Arachin, Temurah, Kerisos, Meilah,
152
152
* Kinnim, Tamid, Midos and Niddah.
153
153
*
154
- * @return the transliterated name of the masechta (tractate) of the Daf Yomi such as Berachos.
154
+ * @return the transliterated name of the <em> masechta</em> (tractate) of the Daf Yomi such as Berachos.
155
155
* @see #setMasechtaTransliterated(String[])
156
156
*/
157
157
public String getMasechtaTransliterated () {
158
158
return masechtosBavliTransliterated [masechtaNumber ];
159
159
}
160
160
161
161
/**
162
- * Setter method to allow overriding of the default list of masechtos transliterated into into Latin chars. The default
163
- * uses Ashkenazi American English transliteration.
162
+ * Setter method to allow overriding of the default list of <em> masechtos</em> transliterated into into Latin chars.
163
+ * The default values use Ashkenazi American English transliteration.
164
164
*
165
- * @param masechtosBavliTransliterated the list of transliterated Bavli masechtos to set.
165
+ * @param masechtosBavliTransliterated the list of transliterated Bavli <em> masechtos</em> to set.
166
166
* @see #getMasechtaTransliterated()
167
167
*/
168
168
public void setMasechtaTransliterated (String [] masechtosBavliTransliterated ) {
169
169
Daf .masechtosBavliTransliterated = masechtosBavliTransliterated ;
170
170
}
171
171
172
172
/**
173
- * Returns the masechta (tractate) of the Daf Yomi in Hebrew. The list is in the following format<br>
173
+ * Returns the <em> masechta</em> (tractate) of the Daf Yomi in Hebrew. The list is in the following format<br>
174
174
* <code>["ברכות",
175
175
* "שבת", "עירובין",
176
176
* "פסחים", "שקלים", "יומא",
@@ -188,64 +188,104 @@ public void setMasechtaTransliterated(String[] masechtosBavliTransliterated) {
188
188
* "מעילה", "קינים", "תמיד",
189
189
* "מידות", "נדה"]</code>.
190
190
*
191
- * @return the masechta (tractate) of the Daf Yomi in Hebrew, It will return
191
+ * @return the <em> masechta</em> (tractate) of the Daf Yomi in Hebrew. As an example, it will return
192
192
* ברכות for Berachos.
193
193
*/
194
194
public String getMasechta () {
195
195
return masechtosBavli [masechtaNumber ];
196
196
}
197
197
198
198
/**
199
- * Returns the transliterated name of the masechta (tractate) of the Daf Yomi in Yerushalmi. The list of mashechtos is:
199
+ * Returns the transliterated name of the <em>masechta</em> (tractate) of the Daf Yomi in Yerushalmi. The list of
200
+ * <em>mashechtos</em> is:
200
201
* Berachos, Pe'ah, Demai, Kilayim, Shevi'is, Terumos, Ma'asros, Ma'aser Sheni, Chalah, Orlah, Bikurim,
201
202
* Shabbos, Eruvin, Pesachim, Beitzah, Rosh Hashanah, Yoma, Sukah, Ta'anis, Shekalim, Megilah, Chagigah,
202
203
* Moed Katan, Yevamos, Kesuvos, Sotah, Nedarim, Nazir, Gitin, Kidushin, Bava Kama, Bava Metzia,
203
204
* Bava Basra, Shevuos, Makos, Sanhedrin, Avodah Zarah, Horayos, Nidah and No Daf Today.
204
205
*
205
- * @return the transliterated name of the masechta (tractate) of the Daf Yomi such as Berachos.
206
+ * @return the transliterated name of the <em> masechta</em> (tractate) of the Daf Yomi such as Berachos.
206
207
*/
207
- public String getYerushlmiMasechtaTransliterated () {
208
+ public String getYerushalmiMasechtaTransliterated () {
208
209
return masechtosYerushalmiTransliterated [masechtaNumber ];
209
210
}
210
211
211
212
/**
212
- * Setter method to allow overriding of the default list of Yerushalmi masechtos transliterated into into Latin chars.
213
+ * @see #getYerushalmiMasechtaTransliterated()
214
+ * @deprecated misspelled method name to be removed in 3.0.0.
215
+ * @return the transliterated name of the <em>masechta</em> (tractate) of the Daf Yomi such as Berachos.
216
+ */
217
+ @ Deprecated // (forRemoval=true) // add back once Java 9 is the minimum supported version
218
+ public String getYerushlmiMasechtaTransliterated () {
219
+ return getYerushalmiMasechtaTransliterated ();
220
+ }
221
+
222
+ /**
223
+ * Setter method to allow overriding of the default list of Yerushalmi <em>masechtos</em> transliterated into into Latin chars.
213
224
* The default uses Ashkenazi American English transliteration.
214
225
*
215
- * @param masechtosYerushalmiTransliterated the list of transliterated Yerushalmi masechtos to set.
226
+ * @param masechtosYerushalmiTransliterated the list of transliterated Yerushalmi <em> masechtos</em> to set.
216
227
*/
217
- public void setYerushlmiMasechtaTransliterated (String [] masechtosYerushalmiTransliterated ) {
228
+ public void setYerushalmiMasechtaTransliterated (String [] masechtosYerushalmiTransliterated ) {
218
229
Daf .masechtosYerushalmiTransliterated = masechtosYerushalmiTransliterated ;
219
230
}
220
231
221
232
/**
222
- * Getter method to allow retrieving the list of Yerushalmi masechtos transliterated into into Latin chars.
233
+ * @see #setYerushalmiMasechtaTransliterated(String[])
234
+ * @deprecated misspelled method name to be removed in 3.0.0.
235
+ * @param masechtosYerushalmiTransliterated the list of transliterated Yerushalmi <em>masechtos</em> to set.
236
+ */
237
+ @ Deprecated // (forRemoval=true) // add back once Java 9 is the minimum supported version
238
+ public void setYerushlmiMasechtaTransliterated (String [] masechtosYerushalmiTransliterated ) {
239
+ setYerushalmiMasechtaTransliterated (masechtosYerushalmiTransliterated );
240
+ }
241
+
242
+ /**
243
+ * Getter method to allow retrieving the list of Yerushalmi <em>masechtos</em> transliterated into into Latin chars.
223
244
* The default uses Ashkenazi American English transliteration.
224
245
*
225
- * @return the array of transliterated masechta (tractate) names of the Daf Yomi Yerushalmi.
246
+ * @return the array of transliterated <em> masechta</em> (tractate) names of the Daf Yomi Yerushalmi.
226
247
*/
227
- public static String [] getYerushlmiMasechtosTransliterated () {
248
+ public static String [] getYerushalmiMasechtosTransliterated () {
228
249
return masechtosYerushalmiTransliterated ;
229
250
}
230
251
231
252
/**
232
- * Getter method to allow retrieving the list of Yerushalmi masechtos.
253
+ * @see #getYerushalmiMasechtosTransliterated()
254
+ * @deprecated misspelled method name to be removed in 3.0.0.
255
+ * @return the array of transliterated <em>masechta</em> (tractate) names of the Daf Yomi Yerushalmi.
256
+ */
257
+ @ Deprecated // (forRemoval=true) // add back once Java 9 is the minimum supported version
258
+ public static String [] getYerushlmiMasechtosTransliterated () {
259
+ return getYerushalmiMasechtosTransliterated ();
260
+ }
261
+
262
+ /**
263
+ * Getter method to allow retrieving the list of Yerushalmi <em>masechtos</em>.
233
264
*
234
- * @return the array of Hebrew masechta (tractate) names of the Daf Yomi Yerushalmi.
265
+ * @return the array of Hebrew <em>masechta</em> (tractate) names of the Daf Yomi Yerushalmi.
266
+ */
267
+ public static String [] getYerushalmiMasechtos () {
268
+ return masechtosYerushalmi ;
269
+ }
270
+
271
+ /**
272
+ * @see #getYerushalmiMasechtos()
273
+ * @deprecated misspelled method name to be removed in 3.0.0.
274
+ * @return the array of Hebrew <em>masechta</em> (tractate) names of the Daf Yomi Yerushalmi.
235
275
*/
276
+ @ Deprecated // (forRemoval=true) // add back once Java 9 is the minimum supported version
236
277
public static String [] getYerushlmiMasechtos () {
237
- return masechtosYerushlmi ;
278
+ return getYerushalmiMasechtos () ;
238
279
}
239
280
240
281
/**
241
- * Returns the Yerushlmi masechta (tractate) of the Daf Yomi in Hebrew, It will return
282
+ * Returns the Yerushalmi <em> masechta</em> (tractate) of the Daf Yomi in Hebrew. As an example, it will return
242
283
* ברכות for Berachos.
243
284
*
244
- * @return the Yerushalmi masechta (tractate) of the Daf Yomi in Hebrew, It will return
285
+ * @return the Yerushalmi <em> masechta</em> (tractate) of the Daf Yomi in Hebrew. As an example, it will return
245
286
* ברכות for Berachos.
246
287
*/
247
288
public String getYerushalmiMasechta () {
248
- return masechtosYerushlmi [masechtaNumber ];
289
+ return masechtosYerushalmi [masechtaNumber ];
249
290
}
250
-
251
291
}
0 commit comments