Searched refs:roll (Results 1 - 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DCalendar.java159 * {@code set()}, {@code add()}, and {@code roll()}.
228 * <strong>{@code roll(f, delta)}</strong> adds {@code delta} to
241 * set to August 31, 1999. Calling <code>roll(Calendar.MONTH,
246 * sets it to the closest possible value, 30. Finally, the <strong>roll rule</strong>
252 * {@code roll(Calendar.WEEK_OF_MONTH, -1)} sets the calendar to Tuesday
254 * sets the calendar to Sunday May 30, 1999. This is because the roll rule
264 * and {@code roll()}, consider a user interface component with
272 * {@code add()} or {@code roll()}, depending on whether larger
277 * <b>Note:</b> You should always use {@code roll} and {@code add} rather than
281 * during non-leap years. The subclasses' <tt>add</tt> and <tt>roll</t
1090 public void roll(int field, int value) { method in class:Calendar
1104 public abstract void roll(int field, boolean increment); method in class:Calendar
[all...]
H A DGregorianCalendar.java1102 * the field to roll.
1110 public void roll(int field, int value) { method in class:GregorianCalendar
1214 * date. For example, March 31 will roll to April 30 when rolling the month
1218 * the field to roll.
1226 public void roll(int field, boolean increment) { method in class:GregorianCalendar
1227 roll(field, increment ? 1 : -1);
/libcore/luni/src/main/java/libcore/icu/
H A DDateIntervalFormat.java96 endCalendar.roll(Calendar.DAY_OF_MONTH, false);
/libcore/luni/src/test/java/tests/api/java/util/
H A DCalendarTest.java692 * java.util.Calendar#roll(int, int)
698 // roll up
699 calendar.roll(Calendar.DATE, 5);
702 // roll down
703 calendar.roll(Calendar.DATE, -5);
706 // roll 0
707 calendar.roll(Calendar.DATE, 0);
710 // roll overweight
712 calendar.roll(Calendar.MONTH, 1);
786 public void roll(in method in class:CalendarTest.MockCalendar
[all...]

Completed in 2843 milliseconds