jdk/src/share/classes/java/util/Calendar.java
changeset 18156 edb590d448c5
parent 16481 8e30386cc014
child 18829 ec84f0c313b0
equal deleted inserted replaced
18155:889970e5b728 18156:edb590d448c5
  2679 
  2679 
  2680     /**
  2680     /**
  2681      * Returns whether this <code>Calendar</code> represents a time
  2681      * Returns whether this <code>Calendar</code> represents a time
  2682      * before the time represented by the specified
  2682      * before the time represented by the specified
  2683      * <code>Object</code>. This method is equivalent to:
  2683      * <code>Object</code>. This method is equivalent to:
  2684      * <pre><blockquote>
  2684      * <pre>{@code
  2685      *         compareTo(when) < 0
  2685      *         compareTo(when) < 0
  2686      * </blockquote></pre>
  2686      * }</pre>
  2687      * if and only if <code>when</code> is a <code>Calendar</code>
  2687      * if and only if <code>when</code> is a <code>Calendar</code>
  2688      * instance. Otherwise, the method returns <code>false</code>.
  2688      * instance. Otherwise, the method returns <code>false</code>.
  2689      *
  2689      *
  2690      * @param when the <code>Object</code> to be compared
  2690      * @param when the <code>Object</code> to be compared
  2691      * @return <code>true</code> if the time of this
  2691      * @return <code>true</code> if the time of this
  2700 
  2700 
  2701     /**
  2701     /**
  2702      * Returns whether this <code>Calendar</code> represents a time
  2702      * Returns whether this <code>Calendar</code> represents a time
  2703      * after the time represented by the specified
  2703      * after the time represented by the specified
  2704      * <code>Object</code>. This method is equivalent to:
  2704      * <code>Object</code>. This method is equivalent to:
  2705      * <pre><blockquote>
  2705      * <pre>{@code
  2706      *         compareTo(when) > 0
  2706      *         compareTo(when) > 0
  2707      * </blockquote></pre>
  2707      * }</pre>
  2708      * if and only if <code>when</code> is a <code>Calendar</code>
  2708      * if and only if <code>when</code> is a <code>Calendar</code>
  2709      * instance. Otherwise, the method returns <code>false</code>.
  2709      * instance. Otherwise, the method returns <code>false</code>.
  2710      *
  2710      *
  2711      * @param when the <code>Object</code> to be compared
  2711      * @param when the <code>Object</code> to be compared
  2712      * @return <code>true</code> if the time of this <code>Calendar</code> is
  2712      * @return <code>true</code> if the time of this <code>Calendar</code> is