Lines Matching defs:when
131 * (from 1 to 7). These numbers are taken from the locale resource data when a
245 * field <code>f</code>. Overflow occurs when a field value exceeds its
274 * rule 2, since it is expected to change when the month changes in a
359 // back out to fields is made when necessary. This is implemented by the
363 // ranges when they are regenerated.
831 // Recomputation of the time and fields happens when the object needs
855 * Pseudo-time-stamps which specify when each field was set. There
950 * values which are greater than 1 represents the (pseudo) time when the
1039 * time, calendar specific default values are used when building a
1146 * non-lenient mode when building a {@code Calendar}.
2728 * compareTo(when) < 0
2730 * if and only if <code>when</code> is a <code>Calendar</code>
2733 * @param when the <code>Object</code> to be compared
2736 * <code>when</code>; <code>false</code> otherwise.
2739 public boolean before(Object when) {
2740 return when instanceof Calendar
2741 && compareTo((Calendar)when) < 0;
2749 * compareTo(when) > 0
2751 * if and only if <code>when</code> is a <code>Calendar</code>
2754 * @param when the <code>Object</code> to be compared
2756 * after the time represented by <code>when</code>; <code>false</code>
2760 public boolean after(Object when) {
2761 return when instanceof Calendar
2762 && compareTo((Calendar)when) > 0;
3372 * a given locale. These must be set when a Calendar is constructed.