mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
Fixes IDEA-354610, IDEA-353932 Partially addresses IDEA-352642 fix(JavaDoc-format): handle indent on markdown fix(JavaDoc-backport): fix compilation GitOrigin-RevId: 5d1705da21be59ec0bc92a1b35bdf986a3227064
17 lines
3.1 KiB
HTML
17 lines
3.1 KiB
HTML
<html><head><base href="placeholder"></head><body><div class="bottom"><icon src="AllIcons.Nodes.Class"> <a href="psi_element://MarkdownJepExample"><code><span style="color:#000000;">MarkdownJepExample</span></code></a></div><div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <a href="psi_element://java.lang.String"><code><span style="color:#000000;">String</span></code></a> <span style="color:#000000;">longExample</span><span style="">(</span><span style="">)</span></pre></div><div class='content'><p>Returns a hash code value for the object. This method is
|
|
supported for the benefit of hash tables such as those provided by
|
|
<a href="psi_element://java.util.HashMap"><code><span style="color:#0000ff;">java.util.HashMap</span></code></a>.</p><p>The general contract of <code><span style="">hashCode</span></code> is:</p><ul><li>Whenever it is invoked on the same object more than once during
|
|
an execution of a Java application, the <code><span style="">hashCode</span></code> method
|
|
must consistently return the same integer, provided no information
|
|
used in <code><span style="">equals</span></code> comparisons on the object is modified.
|
|
This integer need not remain consistent from one execution of an
|
|
application to another execution of the same application.</li><li>If two objects are equal according to the
|
|
<a href="psi_element://java.lang.Object#equals(java.lang.Object)"><span style="color:#0000ff;">equals</span></a> method, then calling the
|
|
<code><span style="">hashCode</span></code> method on each of the two objects must produce the
|
|
same integer result.</li><li>It is <em>not</em> required that if two objects are unequal
|
|
according to the <a href="psi_element://java.lang.Object#equals(java.lang.Object)"><span style="color:#0000ff;">equals</span></a> method, then
|
|
calling the <code><span style="">hashCode</span></code> method on each of the two objects
|
|
must produce distinct integer results. However, the programmer
|
|
should be aware that producing distinct integer results for
|
|
unequal objects may improve the performance of hash tables.</li></ul></div><table class='sections'><tr><td valign='top' class='section'><p>Returns:</td><td valign='top'><p>a hash code value for this object.</td><tr><td valign='top' class='section'><p>Implementation<br>Requirements:</td><td valign='top'><p><p>As far as is reasonably practical, the <code><span style="">hashCode</span></code> method defined
|
|
by class <code><span style="">Object</span></code> returns distinct integers for distinct objects.</p></td><tr><td valign='top' class='section'><p>See Also:</td><td valign='top'><p><a href="psi_element://java.lang.Object#equals(java.lang.Object)"><code><span style="color:#0000ff;">Object</span><span style="">.</span><span style="color:#0000ff;">equals</span><span style="">(Object)</span></code></a>,<br><a href="psi_element://java.lang.System#identityHashCode(java.lang.Object)"><code><span style="color:#0000ff;">System</span><span style="">.</span><span style="color:#0000ff;">identityHashCode</span></code></a></td></table> |