<li><ahref="../../../../com/comphenix/protocol/concurrency/AbstractConcurrentListenerMultimap.html"title="class in com.comphenix.protocol.concurrency"><spanclass="strong">Prev Class</span></a></li>
<divclass="block">Construct an empty sorted array.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colOne"><code><strong><ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html#SortedCopyOnWriteArray(java.util.Collection)">SortedCopyOnWriteArray</a></strong>(java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>> wrapped)</code>
<divclass="block">Create a sorted array from the given list.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html#SortedCopyOnWriteArray(java.util.Collection, boolean)">SortedCopyOnWriteArray</a></strong>(java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>> wrapped,
boolean sort)</code>
<divclass="block">Create a sorted array from the given list.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html#add(T)">add</a></strong>(<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> value)</code>
<divclass="block">Inserts the given element in the proper location.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html#addAll(java.util.Collection)">addAll</a></strong>(java.util.Collection<? extends <ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>> values)</code> </td>
<tdclass="colFirst"><code><ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a></code></td>
<tdclass="colFirst"><code>java.util.Iterator<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>></code></td>
<pre>public SortedCopyOnWriteArray(java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>> wrapped)</pre>
<divclass="block">Create a sorted array from the given list. The elements will be automatically sorted.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>wrapped</code> - - the collection whose elements are to be placed into the list.</dd></dl>
<pre>public SortedCopyOnWriteArray(java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>> wrapped,
boolean sort)</pre>
<divclass="block">Create a sorted array from the given list.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>wrapped</code> - - the collection whose elements are to be placed into the list.</dd><dd><code>sort</code> - - TRUE to automatically sort the collection, FALSE if it is already sorted.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="add(java.lang.Comparable)">
<!---->
</a><aname="add(T)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>add</h4>
<pre>public boolean add(<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> value)</pre>
<divclass="block">Inserts the given element in the proper location.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>add</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - - element to insert.</dd></dl>
</li>
</ul>
<aname="addAll(java.util.Collection)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>addAll</h4>
<pre>public boolean addAll(java.util.Collection<? extends <ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>> values)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>addAll</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
Objects will be compared using the given objects equals() method.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>remove</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - - value to remove.</dd></dl>
<dd><code>removeAll</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dd><code>retainAll</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<divclass="block">Removes from the list by making a copy of every element except the one with the given index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - - index of the element to remove.</dd></dl>
</li>
</ul>
<aname="get(int)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>get</h4>
<pre>public <ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> get(int index)</pre>
<divclass="block">Retrieves an element by index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - - index of element to retrieve.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The element at the given location.</dd></dl>
</li>
</ul>
<aname="size()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>size</h4>
<pre>public int size()</pre>
<divclass="block">Retrieve the size of the list.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>size</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Size of the list.</dd></dl>
</li>
</ul>
<aname="iterator()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>iterator</h4>
<pre>public java.util.Iterator<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>> iterator()</pre>
Warning: No not attempt to remove elements using the iterator.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code> in interface <code>java.lang.Iterable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
</dl>
</li>
</ul>
<aname="clear()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>clear</h4>
<pre>public void clear()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>clear</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dd><code>contains</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dd><code>containsAll</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
</dl>
</li>
</ul>
<aname="isEmpty()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isEmpty</h4>
<pre>public boolean isEmpty()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>isEmpty</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dd><code>toArray</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<dd><code>toArray</code> in interface <code>java.util.Collection<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a> extends java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/concurrency/SortedCopyOnWriteArray.html"title="type parameter in SortedCopyOnWriteArray">T</a>>></code></dd>
<li><ahref="../../../../com/comphenix/protocol/concurrency/AbstractConcurrentListenerMultimap.html"title="class in com.comphenix.protocol.concurrency"><spanclass="strong">Prev Class</span></a></li>