| <!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>AbstractCharList (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="AbstractCharList (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":6,"i15":10,"i16":10,"i17":10,"i18":10,"i19":6,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":6,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/AbstractCharList.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/AbstractByteList.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/AbstractDoubleList.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/AbstractCharList.html" target="_top">Frames</a></li> |
| <li><a href="AbstractCharList.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><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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 AbstractCharList" class="title">Class AbstractCharList</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>org.apache.mahout.math.list.AbstractCharList</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>, <a href="../../../../../org/apache/mahout/math/buffer/CharBufferConsumer.html" title="interface in org.apache.mahout.math.buffer">CharBufferConsumer</a></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../../../org/apache/mahout/math/list/CharArrayList.html" title="class in org.apache.mahout.math.list">CharArrayList</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="typeNameLabel">AbstractCharList</span> |
| extends <a href="../../../../../org/apache/mahout/math/list/AbstractList.html" title="class in org.apache.mahout.math.list">AbstractList</a> |
| implements <a href="../../../../../org/apache/mahout/math/buffer/CharBufferConsumer.html" title="interface in org.apache.mahout.math.buffer">CharBufferConsumer</a></pre> |
| <div class="block">Abstract base class for resizable lists holding <code>char</code> elements; abstract.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../serialized-form.html#org.apache.mahout.math.list.AbstractCharList">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#size">size</a></span></code> |
| <div class="block">The size of the list.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== 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/AbstractCharList.html#AbstractCharList--">AbstractCharList</a></span>()</code> </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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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/AbstractCharList.html#add-char-">add</a></span>(char 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/AbstractCharList.html#addAllOf-org.apache.mahout.math.list.AbstractCharList-">addAllOf</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other)</code> |
| <div class="block">Appends all elements of the specified list to the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#addAllOf-org.apache.mahout.math.list.CharArrayList-">addAllOf</a></span>(<a href="../../../../../org/apache/mahout/math/list/CharArrayList.html" title="class in org.apache.mahout.math.list">CharArrayList</a> other)</code> |
| <div class="block">Appends the specified list to the end of this list.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#addAllOfFromTo-org.apache.mahout.math.list.AbstractCharList-int-int-">addAllOfFromTo</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int from, |
| int to)</code> |
| <div class="block">Appends the part of the specified list between <code>from</code> (inclusive) and <code>to</code> (inclusive) to the |
| receiver.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#beforeInsert-int-char-">beforeInsert</a></span>(int index, |
| char element)</code> |
| <div class="block">Inserts the specified element before the specified position into the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#beforeInsertAllOfFromTo-int-org.apache.mahout.math.list.AbstractCharList-int-int-">beforeInsertAllOfFromTo</a></span>(int index, |
| <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int from, |
| int to)</code> |
| <div class="block">Inserts the part of the specified list between <code>otherFrom</code> (inclusive) and <code>otherTo</code> |
| (inclusive) before the specified position into the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.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="i7" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#binarySearch-char-">binarySearch</a></span>(char key)</code> |
| <div class="block">Searches the receiver for the specified value using the binary search algorithm.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#binarySearchFromTo-char-int-int-">binarySearchFromTo</a></span>(char key, |
| int from, |
| int to)</code> |
| <div class="block">Searches the receiver for the specified value using the binary search algorithm.</div> |
| </td> |
| </tr> |
| <tr id="i9" 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/AbstractCharList.html#clone--">clone</a></span>()</code> |
| <div class="block">Returns a deep copy of the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#contains-char-">contains</a></span>(char elem)</code> |
| <div class="block">Returns true if the receiver contains the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#delete-char-">delete</a></span>(char element)</code> |
| <div class="block">Deletes the first element from the receiver that is identical to the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>char[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#elements--">elements</a></span>()</code> |
| <div class="block">Returns the elements currently stored, possibly including invalid elements between size and capacity.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#elements-char:A-">elements</a></span>(char[] elements)</code> |
| <div class="block">Sets the receiver's elements to be the specified array.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>abstract void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.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="i15" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.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="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#fillFromToWith-int-int-char-">fillFromToWith</a></span>(int from, |
| int to, |
| char val)</code> |
| <div class="block">Sets the specified range of elements in the specified array to the specified value.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#forEach-org.apache.mahout.math.function.CharProcedure-">forEach</a></span>(<a href="../../../../../org/apache/mahout/math/function/CharProcedure.html" title="interface in org.apache.mahout.math.function">CharProcedure</a> procedure)</code> |
| <div class="block">Applies a procedure to each element of the receiver, if any.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>char</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.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="i19" class="rowColor"> |
| <td class="colFirst"><code>protected abstract char</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.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="i20" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#indexOf-char-">indexOf</a></span>(char element)</code> |
| <div class="block">Returns the index of the first occurrence of the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#indexOfFromTo-char-int-int-">indexOfFromTo</a></span>(char 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="i22" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#lastIndexOf-char-">lastIndexOf</a></span>(char element)</code> |
| <div class="block">Returns the index of the last occurrence of the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#lastIndexOfFromTo-char-int-int-">lastIndexOfFromTo</a></span>(char 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="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#mergeSortFromTo-int-int-">mergeSortFromTo</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="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#mergeSortFromTo-int-int-org.apache.mahout.math.function.CharComparator-">mergeSortFromTo</a></span>(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/function/CharComparator.html" title="interface in org.apache.mahout.math.function">CharComparator</a> c)</code> |
| <div class="block">Sorts the receiver according to the order induced by the specified comparator.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.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="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#quickSortFromTo-int-int-">quickSortFromTo</a></span>(int from, |
| int to)</code> |
| <div class="block">Sorts the specified range of the receiver into ascending numerical order.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#quickSortFromTo-int-int-org.apache.mahout.math.function.CharComparator-">quickSortFromTo</a></span>(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/function/CharComparator.html" title="interface in org.apache.mahout.math.function">CharComparator</a> c)</code> |
| <div class="block">Sorts the receiver according to the order induced by the specified comparator.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#removeAll-org.apache.mahout.math.list.AbstractCharList-">removeAll</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other)</code> |
| <div class="block">Removes from the receiver all elements that are contained in the specified list.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#removeFromTo-int-int-">removeFromTo</a></span>(int from, |
| int to)</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="i31" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#replaceFromToWithFrom-int-int-org.apache.mahout.math.list.AbstractCharList-int-">replaceFromToWithFrom</a></span>(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int otherFrom)</code> |
| <div class="block">Replaces a number of elements in the receiver with the same number of elements of another list.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#replaceFromToWithFromTo-int-int-org.apache.mahout.math.list.AbstractCharList-int-int-">replaceFromToWithFromTo</a></span>(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int otherFrom, |
| int otherTo)</code> |
| <div class="block">Replaces the part between <code>from</code> (inclusive) and <code>to</code> (inclusive) with the other list's part |
| between <code>otherFrom</code> and <code>otherTo</code>.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#retainAll-org.apache.mahout.math.list.AbstractCharList-">retainAll</a></span>(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other)</code> |
| <div class="block">Retains (keeps) only the elements in the receiver that are contained in the specified other list.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#reverse--">reverse</a></span>()</code> |
| <div class="block">Reverses the elements of the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#set-int-char-">set</a></span>(int index, |
| char element)</code> |
| <div class="block">Replaces the element at the specified position in the receiver with the specified element.</div> |
| </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>protected abstract void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#setQuick-int-char-">setQuick</a></span>(int index, |
| char 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="i37" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#setSizeRaw-int-">setSizeRaw</a></span>(int newSize)</code> |
| <div class="block">Sets the size of the receiver without modifying it otherwise.</div> |
| </td> |
| </tr> |
| <tr id="i38" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#size--">size</a></span>()</code> |
| <div class="block">Returns the number of elements contained in the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#times-int-">times</a></span>(int times)</code> |
| <div class="block">Returns a list which is a concatenation of <code>times</code> times the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i40" class="altColor"> |
| <td class="colFirst"><code>char[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#toArray-char:A-">toArray</a></span>(char[] values)</code> </td> |
| </tr> |
| <tr id="i41" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang">Character</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#toList--">toList</a></span>()</code> |
| <div class="block">Returns a <code>ArrayList</code> containing all the elements in the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i42" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html#toString--">toString</a></span>()</code> |
| <div class="block">Returns a string representation of the receiver, containing the String representation of each element.</div> |
| </td> |
| </tr> |
| </table> |
| <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>, <a href="../../../../../org/apache/mahout/math/list/AbstractList.html#trimToSize--">trimToSize</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#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"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="size"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>size</h4> |
| <pre>protected int size</pre> |
| <div class="block">The size of the list. This is a READ_ONLY variable for all methods but setSizeRaw(int newSize) !!! If you violate |
| this principle in subclasses, you should exactly know what you are doing.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="AbstractCharList--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>AbstractCharList</h4> |
| <pre>public AbstractCharList()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="add-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>add</h4> |
| <pre>public void add(char 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="addAllOf-org.apache.mahout.math.list.AbstractCharList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addAllOf</h4> |
| <pre>public void addAllOf(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other)</pre> |
| <div class="block">Appends all elements of the specified list to the receiver.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>other</code> - the list of which all elements shall be appended.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addAllOfFromTo-org.apache.mahout.math.list.AbstractCharList-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addAllOfFromTo</h4> |
| <pre>public void addAllOfFromTo(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int from, |
| int to)</pre> |
| <div class="block">Appends the part of the specified list between <code>from</code> (inclusive) and <code>to</code> (inclusive) to the |
| receiver.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>other</code> - the list to be added to the receiver.</dd> |
| <dd><code>from</code> - the index of the first element to be appended (inclusive).</dd> |
| <dd><code>to</code> - the index of the last element to be appended (inclusive).</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>other.size()>0 && (from<0 || from>to || |
| to>=other.size())</tt>).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addAllOf-org.apache.mahout.math.list.CharArrayList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addAllOf</h4> |
| <pre>public void addAllOf(<a href="../../../../../org/apache/mahout/math/list/CharArrayList.html" title="class in org.apache.mahout.math.list">CharArrayList</a> other)</pre> |
| <div class="block">Appends the specified list to the end of this list.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/buffer/CharBufferConsumer.html#addAllOf-org.apache.mahout.math.list.CharArrayList-">addAllOf</a></code> in interface <code><a href="../../../../../org/apache/mahout/math/buffer/CharBufferConsumer.html" title="interface in org.apache.mahout.math.buffer">CharBufferConsumer</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>other</code> - the list to be appended.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="beforeInsert-int-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>beforeInsert</h4> |
| <pre>public void beforeInsert(int index, |
| char 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="beforeInsertAllOfFromTo-int-org.apache.mahout.math.list.AbstractCharList-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>beforeInsertAllOfFromTo</h4> |
| <pre>public void beforeInsertAllOfFromTo(int index, |
| <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int from, |
| int to)</pre> |
| <div class="block">Inserts the part of the specified list between <code>otherFrom</code> (inclusive) and <code>otherTo</code> |
| (inclusive) 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 to insert first element from the specified list (must be in [0,size])..</dd> |
| <dd><code>other</code> - list of which a part is to be inserted into the receiver.</dd> |
| <dd><code>from</code> - the index of the first element to be inserted (inclusive).</dd> |
| <dd><code>to</code> - the index of the last element to be inserted (inclusive).</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>other.size()>0 && (from<0 || from>to || |
| to>=other.size())</tt>).</dd> |
| <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="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">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>.</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> |
| <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> - if <tt>index < 0 || index > size()</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="binarySearch-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>binarySearch</h4> |
| <pre>public int binarySearch(char key)</pre> |
| <div class="block">Searches the receiver for the specified value using the binary search algorithm. The receiver must |
| <strong>must</strong> be sorted (as by the sort method) prior to making this call. If it is not sorted, the |
| results are undefined: in particular, the call may enter an infinite loop. If the receiver contains multiple |
| elements equal to the specified object, there is no guarantee which instance will be found.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the value to be searched for.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>index of the search key, if it is contained in the receiver; otherwise, <tt>(-(<i>insertion point</i>) - |
| 1)</tt>. The <i>insertion point</i> is defined as the the point at which the value would be inserted into |
| the receiver: the index of the first element greater than the key, or <tt>receiver.size()</tt>, if all |
| elements in the receiver are less than the specified key. Note that this guarantees that the return value |
| will be >= 0 if and only if the key is found.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html?is-external=true" title="class or interface in java.util"><code>Arrays</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="binarySearchFromTo-char-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>binarySearchFromTo</h4> |
| <pre>public int binarySearchFromTo(char key, |
| int from, |
| int to)</pre> |
| <div class="block">Searches the receiver for the specified value using the binary search algorithm. The receiver must |
| <strong>must</strong> be sorted (as by the sort method) prior to making this call. If it is not sorted, the |
| results are undefined: in particular, the call may enter an infinite loop. If the receiver contains multiple |
| elements equal to the specified object, there is no guarantee which instance will be found.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the value to be searched 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>index of the search key, if it is contained in the receiver; otherwise, <tt>(-(<i>insertion point</i>) - |
| 1)</tt>. The <i>insertion point</i> is defined as the the point at which the value would be inserted into |
| the receiver: the index of the first element greater than the key, or <tt>receiver.size()</tt>, if all |
| elements in the receiver are less than the specified key. Note that this guarantees that the return value |
| will be >= 0 if and only if the key is found.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html?is-external=true" title="class or interface in java.util"><code>Arrays</code></a></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="contains-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>contains</h4> |
| <pre>public boolean contains(char elem)</pre> |
| <div class="block">Returns true if the receiver contains the specified element.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>elem</code> - element whose presence in the receiver is to be tested.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="delete-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>delete</h4> |
| <pre>public void delete(char element)</pre> |
| <div class="block">Deletes the first element from the receiver that is identical to the specified element. Does nothing, if no such |
| matching element is contained.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>element</code> - the element to be deleted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="elements--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>elements</h4> |
| <pre>public char[] elements()</pre> |
| <div class="block">Returns the elements currently stored, possibly including invalid elements between size and capacity. |
| |
| <b>WARNING:</b> For efficiency reasons and to keep memory usage low, this method may decide <b>not to copy the |
| array</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-char:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>elements</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> elements(char[] elements)</pre> |
| <div class="block">Sets the receiver's elements to be the specified array. 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, this method may decide <b>not to copy |
| the array</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="paramLabel">Parameters:</span></dt> |
| <dd><code>elements</code> - the new elements to be stored.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the receiver itself.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ensureCapacity-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureCapacity</h4> |
| <pre>public abstract 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="fillFromToWith-int-int-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fillFromToWith</h4> |
| <pre>public void fillFromToWith(int from, |
| int to, |
| char val)</pre> |
| <div class="block">Sets the specified range of elements in the specified array to the specified value.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>from</code> - the index of the first element (inclusive) to be filled with the specified value.</dd> |
| <dd><code>to</code> - the index of the last element (inclusive) to be filled with the specified value.</dd> |
| <dd><code>val</code> - the value to be stored in the specified elements of the receiver.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="forEach-org.apache.mahout.math.function.CharProcedure-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>forEach</h4> |
| <pre>public boolean forEach(<a href="../../../../../org/apache/mahout/math/function/CharProcedure.html" title="interface in org.apache.mahout.math.function">CharProcedure</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 char 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>protected abstract char 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>. |
| |
| This method is normally only used internally in large loops where bounds are explicitly checked before the loop and |
| need no be rechecked within the loop. However, when desperately, you can give this method <tt>public</tt> |
| visibility in subclasses.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - index of element to return.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="indexOf-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexOf</h4> |
| <pre>public int indexOf(char element)</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.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>element</code> - the element to be searched for.</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> |
| </dl> |
| </li> |
| </ul> |
| <a name="indexOfFromTo-char-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexOfFromTo</h4> |
| <pre>public int indexOfFromTo(char 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="lastIndexOf-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lastIndexOf</h4> |
| <pre>public int lastIndexOf(char element)</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.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>element</code> - the element to be searched for.</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> |
| </dl> |
| </li> |
| </ul> |
| <a name="lastIndexOfFromTo-char-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lastIndexOfFromTo</h4> |
| <pre>public int lastIndexOfFromTo(char 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="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">Sorts the specified range of the receiver into ascending order. |
| |
| 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> |
| <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="mergeSortFromTo-int-int-org.apache.mahout.math.function.CharComparator-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mergeSortFromTo</h4> |
| <pre>public void mergeSortFromTo(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/function/CharComparator.html" title="interface in org.apache.mahout.math.function">CharComparator</a> c)</pre> |
| <div class="block">Sorts the receiver according to the order induced by the specified comparator. All elements in the range must be |
| <i>mutually comparable</i> by the specified comparator (that is, <tt>c.compare(e1, e2)</tt> must not throw a |
| <tt>ClassCastException</tt> for any elements <tt>e1</tt> and <tt>e2</tt> in the range).<p> |
| |
| 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.</div> |
| <dl> |
| <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> |
| <dd><code>c</code> - the comparator to determine the order of the receiver.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the array contains elements that are not <i>mutually comparable</i> using |
| the specified comparator.</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <tt>fromIndex > toIndex</tt></dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <tt>fromIndex < 0</tt> or <tt>toIndex > a.length</tt></dd> |
| <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/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</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="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">Sorts the specified range of the receiver into ascending numerical 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> |
| <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="quickSortFromTo-int-int-org.apache.mahout.math.function.CharComparator-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>quickSortFromTo</h4> |
| <pre>public void quickSortFromTo(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/function/CharComparator.html" title="interface in org.apache.mahout.math.function">CharComparator</a> c)</pre> |
| <div class="block">Sorts the receiver according to the order induced by the specified comparator. All elements in the range must be |
| <i>mutually comparable</i> by the specified comparator (that is, <tt>c.compare(e1, e2)</tt> must not throw a |
| <tt>ClassCastException</tt> for any elements <tt>e1</tt> and <tt>e2</tt> in the range).<p> |
| |
| 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.</div> |
| <dl> |
| <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> |
| <dd><code>c</code> - the comparator to determine the order of the receiver.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the array contains elements that are not <i>mutually comparable</i> using |
| the specified comparator.</dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <tt>fromIndex > toIndex</tt></dd> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if <tt>fromIndex < 0</tt> or <tt>toIndex > a.length</tt></dd> |
| <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="removeAll-org.apache.mahout.math.list.AbstractCharList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeAll</h4> |
| <pre>public boolean removeAll(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other)</pre> |
| <div class="block">Removes from the receiver all elements that are contained in the specified list. Tests for identity.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>other</code> - the other list.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the receiver changed as a result of the call.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removeFromTo-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeFromTo</h4> |
| <pre>public void removeFromTo(int from, |
| int to)</pre> |
| <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>from</code> - index of first element to be removed.</dd> |
| <dd><code>to</code> - index of last element to be removed.</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="replaceFromToWithFrom-int-int-org.apache.mahout.math.list.AbstractCharList-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>replaceFromToWithFrom</h4> |
| <pre>public void replaceFromToWithFrom(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int otherFrom)</pre> |
| <div class="block">Replaces a number of elements in the receiver with the same number of elements of another list. Replaces elements |
| in the receiver, between <code>from</code> (inclusive) and <code>to</code> (inclusive), with elements of |
| <code>other</code>, starting from <code>otherFrom</code> (inclusive).</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>from</code> - the position of the first element to be replaced in the receiver</dd> |
| <dd><code>to</code> - the position of the last element to be replaced in the receiver</dd> |
| <dd><code>other</code> - list holding elements to be copied into the receiver.</dd> |
| <dd><code>otherFrom</code> - position of first element within other list to be copied.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="replaceFromToWithFromTo-int-int-org.apache.mahout.math.list.AbstractCharList-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>replaceFromToWithFromTo</h4> |
| <pre>public void replaceFromToWithFromTo(int from, |
| int to, |
| <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other, |
| int otherFrom, |
| int otherTo)</pre> |
| <div class="block">Replaces the part between <code>from</code> (inclusive) and <code>to</code> (inclusive) with the other list's part |
| between <code>otherFrom</code> and <code>otherTo</code>. Powerful (and tricky) method! Both parts need not be of |
| the same size (part A can both be smaller or larger than part B). Parts may overlap. Receiver and other list may |
| (but most not) be identical. If <code>from > to</code>, then inserts other part before <code>from</code>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>from</code> - the first element of the receiver (inclusive)</dd> |
| <dd><code>to</code> - the last element of the receiver (inclusive)</dd> |
| <dd><code>other</code> - the other list (may be identical with receiver)</dd> |
| <dd><code>otherFrom</code> - the first element of the other list (inclusive)</dd> |
| <dd><code>otherTo</code> - the last element of the other list (inclusive) |
| |
| <p><b>Examples:</b><pre> |
| a=[0, 1, 2, 3, 4, 5, 6, 7] |
| b=[50, 60, 70, 80, 90] |
| a.R(...)=a.replaceFromToWithFromTo(...) |
| |
| a.R(3,5,b,0,4)-->[0, 1, 2, 50, 60, 70, 80, 90, |
| 6, 7] |
| a.R(1,6,b,0,4)-->[0, 50, 60, 70, 80, 90, 7] |
| a.R(0,6,b,0,4)-->[50, 60, 70, 80, 90, 7] |
| a.R(3,5,b,1,2)-->[0, 1, 2, 60, 70, 6, 7] |
| a.R(1,6,b,1,2)-->[0, 60, 70, 7] |
| a.R(0,6,b,1,2)-->[60, 70, 7] |
| a.R(5,3,b,0,4)-->[0, 1, 2, 3, 4, 50, 60, 70, |
| 80, 90, 5, 6, 7] |
| a.R(5,0,b,0,4)-->[0, 1, 2, 3, 4, 50, 60, 70, |
| 80, 90, 5, 6, 7] |
| a.R(5,3,b,1,2)-->[0, 1, 2, 3, 4, 60, 70, 5, 6, |
| 7] |
| a.R(5,0,b,1,2)-->[0, 1, 2, 3, 4, 60, 70, 5, 6, |
| 7] |
| |
| Extreme cases: |
| a.R(5,3,b,0,0)-->[0, 1, 2, 3, 4, 50, 5, 6, 7] |
| a.R(5,3,b,4,4)-->[0, 1, 2, 3, 4, 90, 5, 6, 7] |
| a.R(3,5,a,0,1)-->[0, 1, 2, 0, 1, 6, 7] |
| a.R(3,5,a,3,5)-->[0, 1, 2, 3, 4, 5, 6, 7] |
| a.R(3,5,a,4,4)-->[0, 1, 2, 4, 6, 7] |
| a.R(5,3,a,0,4)-->[0, 1, 2, 3, 4, 0, 1, 2, 3, 4, |
| 5, 6, 7] |
| a.R(0,-1,b,0,4)-->[50, 60, 70, 80, 90, 0, 1, 2, |
| 3, 4, 5, 6, 7] |
| a.R(0,-1,a,0,4)-->[0, 1, 2, 3, 4, 0, 1, 2, 3, |
| 4, 5, 6, 7] |
| a.R(8,0,a,0,4)-->[0, 1, 2, 3, 4, 5, 6, 7, 0, 1, |
| 2, 3, 4] |
| </pre></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="retainAll-org.apache.mahout.math.list.AbstractCharList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>retainAll</h4> |
| <pre>public boolean retainAll(<a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> other)</pre> |
| <div class="block">Retains (keeps) only the elements in the receiver that are contained in the specified other list. In other words, |
| removes from the receiver all of its elements that are not contained in the specified other list.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>other</code> - the other list to test against.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the receiver changed as a result of the call.</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-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>set</h4> |
| <pre>public void set(int index, |
| char 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> - if <tt>index < 0 || index >= size()</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setQuick-int-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setQuick</h4> |
| <pre>protected abstract void setQuick(int index, |
| char 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): <tt>index >= 0 && index < size()</tt>. |
| |
| This method is normally only used internally in large loops where bounds are explicitly checked before the loop and |
| need no be rechecked within the loop. However, when desperately, you can give this method <tt>public</tt> |
| visibility in subclasses.</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="setSizeRaw-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSizeRaw</h4> |
| <pre>protected void setSizeRaw(int newSize)</pre> |
| <div class="block">Sets the size of the receiver without modifying it otherwise. This method should not release or allocate new memory |
| but simply set some instance variable like <tt>size</tt>. |
| |
| If your subclass overrides and delegates size changing methods to some other object, you must make sure that those |
| overriding methods not only update the size of the delegate but also of this class. For example: public |
| DatabaseList extends AbstractCharList { ... public void removeFromTo(int from,int to) { |
| myDatabase.removeFromTo(from,to); this.setSizeRaw(size-(to-from+1)); } }</div> |
| </li> |
| </ul> |
| <a name="size--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>size</h4> |
| <pre>public int size()</pre> |
| <div class="block">Returns the number of elements contained in the receiver.</div> |
| <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> |
| <a name="times-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>times</h4> |
| <pre>public <a href="../../../../../org/apache/mahout/math/list/AbstractCharList.html" title="class in org.apache.mahout.math.list">AbstractCharList</a> times(int times)</pre> |
| <div class="block">Returns a list which is a concatenation of <code>times</code> times the receiver.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>times</code> - the number of times the receiver shall be copied.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toList--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toList</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang">Character</a>> toList()</pre> |
| <div class="block">Returns a <code>ArrayList</code> containing all the elements in the receiver.</div> |
| </li> |
| </ul> |
| <a name="toArray-char:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toArray</h4> |
| <pre>public char[] toArray(char[] values)</pre> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> |
| <div class="block">Returns a string representation of the receiver, containing the String representation of each element.</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#toString--" title="class or interface in java.lang">toString</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> |
| </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/AbstractCharList.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/AbstractByteList.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/AbstractDoubleList.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/AbstractCharList.html" target="_top">Frames</a></li> |
| <li><a href="AbstractCharList.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><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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> |