mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
8 lines
2.3 KiB
HTML
8 lines
2.3 KiB
HTML
<html><head><base href="placeholder"></head><body><div class='definition'><pre><a href="psi_element://My"><code>My</code></a><br><i>@<a href="psi_element://org.jetbrains.annotations.Contract"><code>Contract</code></a>(pure = true)</i>
|
|
boolean <b>contains</b>(<a href="psi_element://java.lang.Object"><code>Object</code></a> o)</pre></div><table class='sections'><p><tr><td valign='top' class='section'><p>Description copied from interface:</td><td><p><a href="psi_element://java.util.Collection"><code>java.util.Collection</code></a><br>
|
|
Returns <tt>true</tt> if this collection contains the specified element.
|
|
More formally, returns <tt>true</tt> if and only if this collection
|
|
contains at least one element <tt>e</tt> such that
|
|
<tt>(o==null ? e==null : o.equals(e))</tt>.
|
|
|
|
</td><tr><td valign='top' class='section'><p>Overrides:</td><td><p><a href="psi_element://java.util.Collection#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://java.util.Collection"><code>Collection</code></a><br><a href="psi_element://I#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://I"><code>I</code></a></td><tr><td valign='top' class='section'><p>Params:</td><td>o – element whose presence in this collection is to be tested </td><tr><td valign='top' class='section'><p>Returns:</td><td><p><tt>true</tt> if this collection contains the specified element </td><tr><td valign='top' class='section'><p>Throws:</td><td><p><a href="psi_element://java.lang.ClassCastException"><code>ClassCastException</code></a> – if the type of the specified element is incompatible with this collection (<a href="psi_element://My###optional-restrictions">optional</a>) <p><a href="psi_element://java.lang.NullPointerException"><code>NullPointerException</code></a> – if the specified element is null and this collection does not permit null elements (<a href="psi_element://My###optional-restrictions">optional</a>)</td><tr><td valign='top' class='section'><p><i>Inferred</i> annotations:</td><td><p><i>@<a href="psi_element://org.jetbrains.annotations.Contract">org.jetbrains.annotations.Contract</a>(pure = true)</i></td></table> |