src/share/classes/java/util/Date.java

Print this page

        

*** 982,993 **** /** * Returns a hash code value for this object. The result is the * exclusive OR of the two halves of the primitive <tt>long</tt> * value returned by the {@link Date#getTime} * method. That is, the hash code is the value of the expression: ! * <blockquote><pre> ! * (int)(this.getTime()^(this.getTime() >>> 32))</pre></blockquote> * * @return a hash code value for this object. */ public int hashCode() { long ht = this.getTime(); --- 982,994 ---- /** * Returns a hash code value for this object. The result is the * exclusive OR of the two halves of the primitive <tt>long</tt> * value returned by the {@link Date#getTime} * method. That is, the hash code is the value of the expression: ! * <blockquote><pre>{@code ! * (int)(this.getTime()^(this.getTime() >>> 32)) ! * }</pre></blockquote> * * @return a hash code value for this object. */ public int hashCode() { long ht = this.getTime();
*** 1083,1093 **** } /** * Creates a string representation of this <tt>Date</tt> object of * the form: ! * <blockquote<pre> * d mon yyyy hh:mm:ss GMT</pre></blockquote> * where:<ul> * <li><i>d</i> is the day of the month (<tt>1</tt> through <tt>31</tt>), * as one or two decimal digits. * <li><i>mon</i> is the month (<tt>Jan, Feb, Mar, Apr, May, Jun, Jul, --- 1084,1094 ---- } /** * Creates a string representation of this <tt>Date</tt> object of * the form: ! * <blockquote><pre> * d mon yyyy hh:mm:ss GMT</pre></blockquote> * where:<ul> * <li><i>d</i> is the day of the month (<tt>1</tt> through <tt>31</tt>), * as one or two decimal digits. * <li><i>mon</i> is the month (<tt>Jan, Feb, Mar, Apr, May, Jun, Jul,