Return-Path:
This constructs an This constructs an For instance, passing Thursday, July 4, 2002 and a
- * This method provides an iterator that returns Calendar objects.
+ * The days are progressed using {@link Calendar#add(int, int)}. This constructs an This constructs an For instance, passing Thursday, July 4, 2002 and a
- * This method provides an iterator that returns Calendar objects.
+ * The days are progressed using {@link Calendar#add(int, int)}. This constructs an This constructs an For instance, passing Thursday, July 4, 2002 and a
- * Iterator
that will
- * start and stop over a date range based on the focused
- * date and the range style.Iterator
over each day in a date
+ * range defined by a focus date and range style.RANGE_MONTH_SUNDAY
will return an
- * Iterator
that starts with Sunday, June 30,
- * 2002 and ends with Saturday, August 3, 2002.
- *
- * @param focus the date to work with
- * @param rangeStyle the style constant to use. Must be one of the range
- * styles listed for the {@link #iterator(Calendar, int)} method.
+ * RANGE_MONTH_SUNDAY
will return an Iterator
+ * that starts with Sunday, June 30, 2002 and ends with Saturday, August 3,
+ * 2002, returning a Calendar instance for each intermediate day.null
or if
- * the rangeStyle is not
+ * null
+ * @throws IllegalArgumentException if the rangeStyle is invalid
*/
public static Iterator iterator(Date focus, int rangeStyle) {
if (focus == null) {
@@ -724,15 +730,17 @@
}
/**
- * Iterator
that will
- * start and stop over a date range based on the focused
- * date and the range style.Iterator
over each day in a date
+ * range defined by a focus date and range style.RANGE_MONTH_SUNDAY
will return an
- * Iterator
that starts with Sunday, June 30,
- * 2002 and ends with Saturday, August 3, 2002.
- *
+ * RANGE_MONTH_SUNDAY
will return an Iterator
+ * that starts with Sunday, June 30, 2002 and ends with Saturday, August 3,
+ * 2002, returning a Calendar instance for each intermediate day.null
+ * @throws IllegalArgumentException if the rangeStyle is invalid
*/
public static Iterator iterator(Calendar focus, int rangeStyle) {
if (focus == null) {
@@ -817,15 +826,14 @@
}
/**
- * Iterator
that will
- * start and stop over a date range based on the focused
- * date and the range style.Iterator
over each day in a date
+ * range defined by a focus date and range style.RANGE_MONTH_SUNDAY
will return an
- * Iterator
that starts with Sunday, June 30,
- * 2002 and ends with Saturday, August 3, 2002.RANGE_MONTH_SUNDAY
will return an Iterator
+ * that starts with Sunday, June 30, 2002 and ends with Saturday, August 3,
+ * 2002, returning a Calendar instance for each intermediate day.
Date
or Calendar
* @param rangeStyle the style constant to use. Must be one of the range
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org