| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_121) on Fri Apr 14 22:10:58 PDT 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>ObjectArrayList (Mahout Math 0.13.0 API)</title> |
| <meta name="date" content="2017-04-14"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ObjectArrayList (Mahout Math 0.13.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ObjectArrayList.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/mahout/math/list/LongArrayList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mahout/math/list/ShortArrayList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mahout/math/list/ObjectArrayList.html" target="_top">Frames</a></li> |
| <li><a href="ObjectArrayList.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.mahout.math.list</div> |
| <h2 title="Class ObjectArrayList" class="title">Class ObjectArrayList<T></h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/mahout/math/PersistentObject.html" title="class in org.apache.mahout.math">org.apache.mahout.math.PersistentObject</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">org.apache.mahout.math.list.AbstractList</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html" title="class in org.apache.mahout.math.list">org.apache.mahout.math.list.AbstractObjectList</a><T></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.mahout.math.list.ObjectArrayList<T></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">ObjectArrayList<T></span> |
| extends <a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html" title="class in org.apache.mahout.math.list">AbstractObjectList</a><T></pre> |
| <div class="block">Resizable list holding <code>${valueType}</code> elements; implemented with arrays.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../serialized-form.html#org.apache.mahout.math.list.ObjectArrayList">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#ObjectArrayList--">ObjectArrayList</a></span>()</code> |
| <div class="block">Constructs an empty list.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#ObjectArrayList-int-">ObjectArrayList</a></span>(int initialCapacity)</code> |
| <div class="block">Constructs an empty list with the specified initial capacity.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#ObjectArrayList-T:A-">ObjectArrayList</a></span>(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>[] elements)</code> |
| <div class="block">Constructs a list containing the specified elements.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#add-T-">add</a></span>(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</code> |
| <div class="block">Appends the specified element to the end of this list.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#beforeInsert-int-T-">beforeInsert</a></span>(int index, |
| <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</code> |
| <div class="block">Inserts the specified element before the specified position into the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#beforeInsertDummies-int-int-">beforeInsertDummies</a></span>(int index, |
| int length)</code> |
| <div class="block">Inserts <tt>length</tt> dummy elements before the specified position into the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#clone--">clone</a></span>()</code> |
| <div class="block">Returns a deep copy of the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="class in org.apache.mahout.math.list">ObjectArrayList</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#copy--">copy</a></span>()</code> |
| <div class="block">Returns a deep copy of the receiver; uses <code>clone()</code> and casts the result.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><Q> Q[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#elements--">elements</a></span>()</code> |
| <div class="block">Returns the elements currently stored, including invalid elements between size and capacity, if any.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#elements-T:A-">elements</a></span>(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>[] elements)</code> |
| <div class="block">Sets the receiver's elements to be the specified array (not a copy of it).</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#ensureCapacity-int-">ensureCapacity</a></span>(int minCapacity)</code> |
| <div class="block">Ensures that the receiver can hold at least the specified number of elements without needing to allocate new |
| internal memory.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#equals-java.lang.Object-">equals</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> otherObj)</code> |
| <div class="block">Compares the specified Object with the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#forEach-org.apache.mahout.math.function.ObjectProcedure-">forEach</a></span>(<a href="../../../../../org/apache/mahout/math/function/ObjectProcedure.html" title="interface in org.apache.mahout.math.function">ObjectProcedure</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>> procedure)</code> |
| <div class="block">Applies a procedure to each element of the receiver, if any.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#get-int-">get</a></span>(int index)</code> |
| <div class="block">Returns the element at the specified position in the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#getQuick-int-">getQuick</a></span>(int index)</code> |
| <div class="block">Returns the element at the specified position in the receiver; <b>WARNING:</b> Does not check preconditions.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#indexOfFromTo-T-int-int-">indexOfFromTo</a></span>(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element, |
| int from, |
| int to)</code> |
| <div class="block">Returns the index of the first occurrence of the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#lastIndexOfFromTo-T-int-int-">lastIndexOfFromTo</a></span>(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element, |
| int from, |
| int to)</code> |
| <div class="block">Returns the index of the last occurrence of the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#mergeSortFromTo-int-int-">mergeSortFromTo</a></span>(int from, |
| int to)</code> |
| <div class="block">Sorts the receiver into ascending order.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html" title="class in org.apache.mahout.math.list">AbstractObjectList</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#partFromTo-int-int-">partFromTo</a></span>(int from, |
| int to)</code> |
| <div class="block">Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>, |
| inclusive.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#quickSortFromTo-int-int-">quickSortFromTo</a></span>(int from, |
| int to)</code> |
| <div class="block">Sorts the specified range of the receiver into ascending order.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#removeFromTo-int-int-">removeFromTo</a></span>(int fromIndex, |
| int toIndex)</code> |
| <div class="block">Removes from the receiver all elements whose index is between <code>from</code>, inclusive and <code>to</code>, |
| inclusive.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#replaceFromWith-int-java.util.Collection-">replaceFromWith</a></span>(int from, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>> other)</code> |
| <div class="block">Replaces the part of the receiver starting at <code>from</code> (inclusive) with all the elements of the specified |
| collection.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#reverse--">reverse</a></span>()</code> |
| <div class="block">Reverses the elements of the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#set-int-T-">set</a></span>(int index, |
| <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</code> |
| <div class="block">Replaces the element at the specified position in the receiver with the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#setQuick-int-T-">setQuick</a></span>(int index, |
| <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</code> |
| <div class="block">Replaces the element at the specified position in the receiver with the specified element; <b>WARNING:</b> Does not |
| check preconditions.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#size--">size</a></span>()</code> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html#trimToSize--">trimToSize</a></span>()</code> |
| <div class="block">Trims the capacity of the receiver to be the receiver's current size.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.list.AbstractObjectList"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.mahout.math.list.<a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html" title="class in org.apache.mahout.math.list">AbstractObjectList</a></h3> |
| <code><a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html#addAllOf-java.util.Collection-">addAllOf</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html#beforeInsertAllOf-int-java.util.Collection-">beforeInsertAllOf</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.list.AbstractList"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.mahout.math.list.<a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></h3> |
| <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#checkRange-int-int-">checkRange</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#checkRangeFromTo-int-int-int-">checkRangeFromTo</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#clear--">clear</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#isEmpty--">isEmpty</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#mergeSort--">mergeSort</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#quickSort--">quickSort</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#remove-int-">remove</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#setSize-int-">setSize</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#sort--">sort</a>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#sortFromTo-int-int-">sortFromTo</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ObjectArrayList--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ObjectArrayList</h4> |
| <pre>public ObjectArrayList()</pre> |
| <div class="block">Constructs an empty list.</div> |
| </li> |
| </ul> |
| <a name="ObjectArrayList-java.lang.Object:A-"> |
| <!-- --> |
| </a><a name="ObjectArrayList-T:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ObjectArrayList</h4> |
| <pre>public ObjectArrayList(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>[] elements)</pre> |
| <div class="block">Constructs a list containing the specified elements. The initial size and capacity of the list is the length of the |
| array. |
| |
| <b>WARNING:</b> For efficiency reasons and to keep memory usage low, <b>the array is not copied</b>. So if |
| subsequently you modify the specified array directly via the [] operator, be sure you know what you're doing.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>elements</code> - the array to be backed by the the constructed list</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ObjectArrayList-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ObjectArrayList</h4> |
| <pre>public ObjectArrayList(int initialCapacity)</pre> |
| <div class="block">Constructs an empty list with the specified initial capacity.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>initialCapacity</code> - the number of elements the receiver can hold without auto-expanding itself by allocating new |
| internal memory.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="add-java.lang.Object-"> |
| <!-- --> |
| </a><a name="add-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre>public void add(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</pre> |
| <div class="block">Appends the specified element to the end of this list.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>element</code> - element to be appended to this list.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="beforeInsert-int-java.lang.Object-"> |
| <!-- --> |
| </a><a name="beforeInsert-int-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>beforeInsert</h4> |
| <pre>public void beforeInsert(int index, |
| <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</pre> |
| <div class="block">Inserts the specified element before the specified position into the receiver. Shifts the element currently at that |
| position (if any) and any subsequent elements to the right.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - index before which the specified element is to be inserted (must be in [0,size]).</dd> |
| <dd><code>element</code> - element to be inserted.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>index < 0 || index > size()</tt>).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="clone--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clone</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> clone()</pre> |
| <div class="block">Returns a deep copy of the receiver.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/PersistentObject.html#clone--">clone</a></code> in class <code><a href="../../../../../org/apache/mahout/math/PersistentObject.html" title="class in org.apache.mahout.math">PersistentObject</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a deep copy of the receiver.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="copy--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="class in org.apache.mahout.math.list">ObjectArrayList</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>> copy()</pre> |
| <div class="block">Returns a deep copy of the receiver; uses <code>clone()</code> and casts the result.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a deep copy of the receiver.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="elements--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>elements</h4> |
| <pre>public <Q> Q[] elements()</pre> |
| <div class="block">Returns the elements currently stored, including invalid elements between size and capacity, if any. |
| |
| <b>WARNING:</b> For efficiency reasons and to keep memory usage low, <b>the array is not copied</b>. So if |
| subsequently you modify the returned array directly via the [] operator, be sure you know what you're doing.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the elements currently stored.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="elements-java.lang.Object:A-"> |
| <!-- --> |
| </a><a name="elements-T:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>elements</h4> |
| <pre>public void elements(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>[] elements)</pre> |
| <div class="block">Sets the receiver's elements to be the specified array (not a copy of it). |
| |
| The size and capacity of the list is the length of the array. <b>WARNING:</b> For efficiency reasons and to keep |
| memory usage low, <b>the array is not copied</b>. So if subsequently you modify the specified array directly via |
| the [] operator, be sure you know what you're doing.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>elements</code> - the new elements to be stored.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ensureCapacity-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureCapacity</h4> |
| <pre>public void ensureCapacity(int minCapacity)</pre> |
| <div class="block">Ensures that the receiver can hold at least the specified number of elements without needing to allocate new |
| internal memory. If necessary, allocates new internal memory and increases the capacity of the receiver.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>minCapacity</code> - the desired minimum capacity.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="equals-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean equals(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> otherObj)</pre> |
| <div class="block">Compares the specified Object with the receiver. Returns true if and only if the specified Object is also an |
| ArrayList of the same type, both Lists have the same size, and all corresponding pairs of elements in the two Lists |
| are identical. In other words, two Lists are defined to be equal if they contain the same elements in the same |
| order.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>otherObj</code> - the Object to be compared for equality with the receiver.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the specified Object is equal to the receiver.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="forEach-org.apache.mahout.math.function.ObjectProcedure-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>forEach</h4> |
| <pre>public boolean forEach(<a href="../../../../../org/apache/mahout/math/function/ObjectProcedure.html" title="interface in org.apache.mahout.math.function">ObjectProcedure</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>> procedure)</pre> |
| <div class="block">Applies a procedure to each element of the receiver, if any. Starts at index 0, moving rightwards.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>procedure</code> - the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise |
| continues.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><tt>false</tt> if the procedure stopped before all elements where iterated over, <tt>true</tt> otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> get(int index)</pre> |
| <div class="block">Returns the element at the specified position in the receiver.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - index of element to return.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (index < 0 || index >= size()).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getQuick-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getQuick</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> getQuick(int index)</pre> |
| <div class="block">Returns the element at the specified position in the receiver; <b>WARNING:</b> Does not check preconditions. |
| Provided with invalid parameters this method may return invalid elements without throwing any exception! <b>You |
| should only use this method when you are absolutely sure that the index is within bounds.</b> Precondition |
| (unchecked): <tt>index >= 0 && index < size()</tt>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - index of element to return.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="indexOfFromTo-java.lang.Object-int-int-"> |
| <!-- --> |
| </a><a name="indexOfFromTo-T-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexOfFromTo</h4> |
| <pre>public int indexOfFromTo(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element, |
| int from, |
| int to)</pre> |
| <div class="block">Returns the index of the first occurrence of the specified element. Returns <code>-1</code> if the receiver does |
| not contain this element. Searches between <code>from</code>, inclusive and <code>to</code>, inclusive. Tests for |
| identity.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>element</code> - element to search for.</dd> |
| <dd><code>from</code> - the leftmost search position, inclusive.</dd> |
| <dd><code>to</code> - the rightmost search position, inclusive.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the index of the first occurrence of the element in the receiver; returns <code>-1</code> if the element is |
| not found.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()>0 && (from<0 || from>to || |
| to>=size())</tt>).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="lastIndexOfFromTo-java.lang.Object-int-int-"> |
| <!-- --> |
| </a><a name="lastIndexOfFromTo-T-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lastIndexOfFromTo</h4> |
| <pre>public int lastIndexOfFromTo(<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element, |
| int from, |
| int to)</pre> |
| <div class="block">Returns the index of the last occurrence of the specified element. Returns <code>-1</code> if the receiver does not |
| contain this element. Searches beginning at <code>to</code>, inclusive until <code>from</code>, inclusive. Tests |
| for identity.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>element</code> - element to search for.</dd> |
| <dd><code>from</code> - the leftmost search position, inclusive.</dd> |
| <dd><code>to</code> - the rightmost search position, inclusive.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the index of the last occurrence of the element in the receiver; returns <code>-1</code> if the element is |
| not found.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()>0 && (from<0 || from>to || |
| to>=size())</tt>).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="partFromTo-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>partFromTo</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html" title="class in org.apache.mahout.math.list">AbstractObjectList</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>> partFromTo(int from, |
| int to)</pre> |
| <div class="block">Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>, |
| inclusive.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>from</code> - the index of the first element (inclusive).</dd> |
| <dd><code>to</code> - the index of the last element (inclusive).</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new list</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (<tt>size()>0 && (from<0 || from>to || |
| to>=size())</tt>).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="reverse--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reverse</h4> |
| <pre>public void reverse()</pre> |
| <div class="block">Reverses the elements of the receiver. Last becomes first, second last becomes second first, and so on.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#reverse--">reverse</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="set-int-java.lang.Object-"> |
| <!-- --> |
| </a><a name="set-int-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public void set(int index, |
| <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</pre> |
| <div class="block">Replaces the element at the specified position in the receiver with the specified element.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - index of element to replace.</dd> |
| <dd><code>element</code> - element to be stored at the specified position.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - index is out of range (index < 0 || index >= size()).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setQuick-int-java.lang.Object-"> |
| <!-- --> |
| </a><a name="setQuick-int-T-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setQuick</h4> |
| <pre>public void setQuick(int index, |
| <a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a> element)</pre> |
| <div class="block">Replaces the element at the specified position in the receiver with the specified element; <b>WARNING:</b> Does not |
| check preconditions. Provided with invalid parameters this method may access invalid indexes without throwing any |
| exception! <b>You should only use this method when you are absolutely sure that the index is within bounds.</b> |
| Precondition (unchecked): <code>index >= 0 && index < size()</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - index of element to replace.</dd> |
| <dd><code>element</code> - element to be stored at the specified position.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="trimToSize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>trimToSize</h4> |
| <pre>public void trimToSize()</pre> |
| <div class="block">Trims the capacity of the receiver to be the receiver's current size. Releases any superfluous internal memory. An |
| application can use this operation to minimize the storage of the receiver.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#trimToSize--">trimToSize</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removeFromTo-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeFromTo</h4> |
| <pre>public void removeFromTo(int fromIndex, |
| int toIndex)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#removeFromTo-int-int-">AbstractList</a></code></span></div> |
| <div class="block">Removes from the receiver all elements whose index is between <code>from</code>, inclusive and <code>to</code>, |
| inclusive. Shifts any succeeding elements to the left (reduces their index). This call shortens the list by |
| <tt>(to - from + 1)</tt> elements.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#removeFromTo-int-int-">removeFromTo</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>fromIndex</code> - index of first element to be removed.</dd> |
| <dd><code>toIndex</code> - index of last element to be removed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="replaceFromWith-int-java.util.Collection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>replaceFromWith</h4> |
| <pre>public void replaceFromWith(int from, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>> other)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html#replaceFromWith-int-java.util.Collection-">AbstractObjectList</a></code></span></div> |
| <div class="block">Replaces the part of the receiver starting at <code>from</code> (inclusive) with all the elements of the specified |
| collection. Does not alter the size of the receiver. Replaces exactly <tt>Math.max(0,Math.min(size()-from, |
| other.size()))</tt> elements.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html#replaceFromWith-int-java.util.Collection-">replaceFromWith</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractObjectList.html" title="class in org.apache.mahout.math.list">AbstractObjectList</a><<a href="../../../../../org/apache/mahout/math/list/ObjectArrayList.html" title="type parameter in ObjectArrayList">T</a>></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>from</code> - the index at which to copy the first element from the specified collection.</dd> |
| <dd><code>other</code> - Collection to replace part of the receiver</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="beforeInsertDummies-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>beforeInsertDummies</h4> |
| <pre>protected void beforeInsertDummies(int index, |
| int length)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#beforeInsertDummies-int-int-">AbstractList</a></code></span></div> |
| <div class="block">Inserts <tt>length</tt> dummy elements before the specified position into the receiver. Shifts the element |
| currently at that position (if any) and any subsequent elements to the right. <b>This method must set the new size |
| to be <tt>size()+length</tt></b>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#beforeInsertDummies-int-int-">beforeInsertDummies</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - index before which to insert dummy elements (must be in [0,size])..</dd> |
| <dd><code>length</code> - number of dummy elements to be inserted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="mergeSortFromTo-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mergeSortFromTo</h4> |
| <pre>public void mergeSortFromTo(int from, |
| int to)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#mergeSortFromTo-int-int-">AbstractList</a></code></span></div> |
| <div class="block">Sorts the receiver into ascending order. This sort is guaranteed to be <i>stable</i>: equal elements will not be |
| reordered as a result of the sort.<p> |
| |
| The sorting algorithm is a modified mergesort (in which the merge is omitted if the highest element in the low |
| sublist is less than the lowest element in the high sublist). This algorithm offers guaranteed n*log(n) |
| performance, and can approach linear performance on nearly sorted lists. |
| |
| <p><b>You should never call this method unless you are sure that this particular sorting algorithm is the right one |
| for your data set.</b> It is generally better to call <tt>sort()</tt> or <tt>sortFromTo(...)</tt> instead, because |
| those methods automatically choose the best sorting algorithm.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#mergeSortFromTo-int-int-">mergeSortFromTo</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>from</code> - the index of the first element (inclusive) to be sorted.</dd> |
| <dd><code>to</code> - the index of the last element (inclusive) to be sorted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="quickSortFromTo-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>quickSortFromTo</h4> |
| <pre>public void quickSortFromTo(int from, |
| int to)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#quickSortFromTo-int-int-">AbstractList</a></code></span></div> |
| <div class="block">Sorts the specified range of the receiver into ascending order. The sorting algorithm is a tuned quicksort, |
| adapted from Jon L. Bentley and M. Douglas McIlroy's "Engineering a Sort Function", Software-Practice and |
| Experience, Vol. 23(11) P. 1249-1265 (November 1993). This algorithm offers n*log(n) performance on many data sets |
| that cause other quicksorts to degrade to quadratic performance. |
| |
| <p><b>You should never call this method unless you are sure that this particular sorting algorithm is the right one |
| for your data set.</b> It is generally better to call <tt>sort()</tt> or <tt>sortFromTo(...)</tt> instead, because |
| those methods automatically choose the best sorting algorithm.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#quickSortFromTo-int-int-">quickSortFromTo</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>from</code> - the index of the first element (inclusive) to be sorted.</dd> |
| <dd><code>to</code> - the index of the last element (inclusive) to be sorted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="size--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>size</h4> |
| <pre>public int size()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html#size--">size</a></code> in class <code><a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ObjectArrayList.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/mahout/math/list/LongArrayList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mahout/math/list/ShortArrayList.html" title="class in org.apache.mahout.math.list"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mahout/math/list/ObjectArrayList.html" target="_top">Frames</a></li> |
| <li><a href="ObjectArrayList.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2008–2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |