blob: 575a811781b15f95f540ebb0d4075638575a9f9d [file] [log] [blame]
<!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:59 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OpenShortDoubleHashMap (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="OpenShortDoubleHashMap (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};
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/OpenShortDoubleHashMap.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/map/OpenShortCharHashMap.MapIterator.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.MapElement.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/math/map/OpenShortDoubleHashMap.html" target="_top">Frames</a></li>
<li><a href="OpenShortDoubleHashMap.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.map</div>
<h2 title="Class OpenShortDoubleHashMap" class="title">Class OpenShortDoubleHashMap</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/set/AbstractSet.html" title="class in org.apache.mahout.math.set">org.apache.mahout.math.set.AbstractSet</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">org.apache.mahout.math.map.AbstractShortDoubleMap</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.math.map.OpenShortDoubleHashMap</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">OpenShortDoubleHashMap</span>
extends <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></pre>
<div class="block">Open hash map from short keys to double values.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#org.apache.mahout.math.map.OpenShortDoubleHashMap">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.MapElement.html" title="class in org.apache.mahout.math.map">OpenShortDoubleHashMap.MapElement</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.MapIterator.html" title="class in org.apache.mahout.math.map">OpenShortDoubleHashMap.MapIterator</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- =========== 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">&nbsp;</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 static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#FREE">FREE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#freeEntries">freeEntries</a></span></code>
<div class="block">The number of table entries in state==FREE.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#FULL">FULL</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#NO_KEY_VALUE">NO_KEY_VALUE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#REMOVED">REMOVED</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#state">state</a></span></code>
<div class="block">The state of each hash table entry (FREE, FULL, REMOVED).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected short[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#table">table</a></span></code>
<div class="block">The hash table keys.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected double[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#values">values</a></span></code>
<div class="block">The hash table values.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.mahout.math.set.AbstractSet">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.mahout.math.set.<a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></h3>
<code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#DEFAULT_CAPACITY">DEFAULT_CAPACITY</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#DEFAULT_MAX_LOAD_FACTOR">DEFAULT_MAX_LOAD_FACTOR</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#DEFAULT_MIN_LOAD_FACTOR">DEFAULT_MIN_LOAD_FACTOR</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#distinct">distinct</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#highWaterMark">highWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#lowWaterMark">lowWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#maxLoadFactor">maxLoadFactor</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#minLoadFactor">minLoadFactor</a></code></li>
</ul>
</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">&nbsp;</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/map/OpenShortDoubleHashMap.html#OpenShortDoubleHashMap--">OpenShortDoubleHashMap</a></span>()</code>
<div class="block">Constructs an empty map with default capacity and default load factors.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#OpenShortDoubleHashMap-int-">OpenShortDoubleHashMap</a></span>(int&nbsp;initialCapacity)</code>
<div class="block">Constructs an empty map with the specified initial capacity and default load factors.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#OpenShortDoubleHashMap-int-double-double-">OpenShortDoubleHashMap</a></span>(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;maxLoadFactor)</code>
<div class="block">Constructs an empty map with the specified initial capacity and the specified minimum and maximum load factor.</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#adjustOrPutValue-short-double-double-">adjustOrPutValue</a></span>(short&nbsp;key,
double&nbsp;newValue,
double&nbsp;incrValue)</code>
<div class="block">Check the map for a key.</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/map/OpenShortDoubleHashMap.html#clear--">clear</a></span>()</code>
<div class="block">Removes all (key,value) associations from the receiver.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<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/map/OpenShortDoubleHashMap.html#clone--">clone</a></span>()</code>
<div class="block">Returns a deep copy of the receiver.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#containsKey-short-">containsKey</a></span>(short&nbsp;key)</code>
<div class="block">Returns <tt>true</tt> if the receiver contains the specified key.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#containsValue-double-">containsValue</a></span>(double&nbsp;value)</code>
<div class="block">Returns <tt>true</tt> if the receiver contains the specified value.</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/map/OpenShortDoubleHashMap.html#ensureCapacity-int-">ensureCapacity</a></span>(int&nbsp;minCapacity)</code>
<div class="block">Ensures that the receiver can hold at least the specified number of associations without needing to allocate new
internal memory.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#forEachKey-org.apache.mahout.math.function.ShortProcedure-">forEachKey</a></span>(<a href="../../../../../org/apache/mahout/math/function/ShortProcedure.html" title="interface in org.apache.mahout.math.function">ShortProcedure</a>&nbsp;procedure)</code>
<div class="block">Applies a procedure to each key of the receiver, if any.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#forEachPair-org.apache.mahout.math.function.ShortDoubleProcedure-">forEachPair</a></span>(<a href="../../../../../org/apache/mahout/math/function/ShortDoubleProcedure.html" title="interface in org.apache.mahout.math.function">ShortDoubleProcedure</a>&nbsp;procedure)</code>
<div class="block">Applies a procedure to each (key,value) pair of the receiver, if any.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#get-short-">get</a></span>(short&nbsp;key)</code>
<div class="block">Returns the value associated with the specified key.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#getInternalFactors-int:A-double:A-double:A-">getInternalFactors</a></span>(int[]&nbsp;capacity,
double[]&nbsp;minLoadFactor,
double[]&nbsp;maxLoadFactor)</code>
<div class="block">Access for unit tests.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#indexOfInsertion-short-">indexOfInsertion</a></span>(short&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#indexOfKey-short-">indexOfKey</a></span>(short&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#indexOfValue-double-">indexOfValue</a></span>(double&nbsp;value)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a>&lt;<a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.MapElement.html" title="class in org.apache.mahout.math.map">OpenShortDoubleHashMap.MapElement</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#iterator--">iterator</a></span>()</code>&nbsp;</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/map/OpenShortDoubleHashMap.html#keys-org.apache.mahout.math.list.ShortArrayList-">keys</a></span>(<a href="../../../../../org/apache/mahout/math/list/ShortArrayList.html" title="class in org.apache.mahout.math.list">ShortArrayList</a>&nbsp;list)</code>
<div class="block">Fills all keys contained in the receiver into the specified list.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#pairsMatching-org.apache.mahout.math.function.ShortDoubleProcedure-org.apache.mahout.math.list.ShortArrayList-org.apache.mahout.math.list.DoubleArrayList-">pairsMatching</a></span>(<a href="../../../../../org/apache/mahout/math/function/ShortDoubleProcedure.html" title="interface in org.apache.mahout.math.function">ShortDoubleProcedure</a>&nbsp;condition,
<a href="../../../../../org/apache/mahout/math/list/ShortArrayList.html" title="class in org.apache.mahout.math.list">ShortArrayList</a>&nbsp;keyList,
<a href="../../../../../org/apache/mahout/math/list/DoubleArrayList.html" title="class in org.apache.mahout.math.list">DoubleArrayList</a>&nbsp;valueList)</code>
<div class="block">Fills all pairs satisfying a given condition into the specified lists.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#put-short-double-">put</a></span>(short&nbsp;key,
double&nbsp;value)</code>
<div class="block">Associates the given key with the given value.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#rehash-int-">rehash</a></span>(int&nbsp;newCapacity)</code>
<div class="block">Rehashes the contents of the receiver into a new table with a smaller or larger capacity.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#removeKey-short-">removeKey</a></span>(short&nbsp;key)</code>
<div class="block">Removes the given key with its associated element from the receiver, if present.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#setUp-int-double-double-">setUp</a></span>(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;maxLoadFactor)</code>
<div class="block">Initializes 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/map/OpenShortDoubleHashMap.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>
<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/map/OpenShortDoubleHashMap.html#values-org.apache.mahout.math.list.DoubleArrayList-">values</a></span>(<a href="../../../../../org/apache/mahout/math/list/DoubleArrayList.html" title="class in org.apache.mahout.math.list">DoubleArrayList</a>&nbsp;list)</code>
<div class="block">Fills all values contained in the receiver into the specified list.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.map.AbstractShortDoubleMap">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.math.map.<a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></h3>
<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#assign-org.apache.mahout.math.map.AbstractShortDoubleMap-">assign</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#assign-org.apache.mahout.math.function.DoubleFunction-">assign</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#copy--">copy</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#hashCode--">hashCode</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#keys--">keys</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#keysSortedByValue-org.apache.mahout.math.list.ShortArrayList-">keysSortedByValue</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#pairsSortedByKey-org.apache.mahout.math.list.ShortArrayList-org.apache.mahout.math.list.DoubleArrayList-">pairsSortedByKey</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#pairsSortedByValue-org.apache.mahout.math.list.ShortArrayList-org.apache.mahout.math.list.DoubleArrayList-">pairsSortedByValue</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#toString--">toString</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#toStringByValue--">toStringByValue</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#values--">values</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.set.AbstractSet">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.math.set.<a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></h3>
<code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseGrowCapacity-int-double-double-">chooseGrowCapacity</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseHighWaterMark-int-double-">chooseHighWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseLowWaterMark-int-double-">chooseLowWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseMeanCapacity-int-double-double-">chooseMeanCapacity</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseShrinkCapacity-int-double-double-">chooseShrinkCapacity</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#equalsMindTheNull-java.lang.Object-java.lang.Object-">equalsMindTheNull</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#isEmpty--">isEmpty</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#nextPrime-int-">nextPrime</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#size--">size</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&nbsp;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#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="FREE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FREE</h4>
<pre>protected static final&nbsp;byte FREE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenShortDoubleHashMap.FREE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="FULL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FULL</h4>
<pre>protected static final&nbsp;byte FULL</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenShortDoubleHashMap.FULL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="REMOVED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REMOVED</h4>
<pre>protected static final&nbsp;byte REMOVED</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenShortDoubleHashMap.REMOVED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NO_KEY_VALUE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NO_KEY_VALUE</h4>
<pre>protected static final&nbsp;short NO_KEY_VALUE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenShortDoubleHashMap.NO_KEY_VALUE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="table">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>table</h4>
<pre>protected&nbsp;short[] table</pre>
<div class="block">The hash table keys.</div>
</li>
</ul>
<a name="values">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>values</h4>
<pre>protected&nbsp;double[] values</pre>
<div class="block">The hash table values.</div>
</li>
</ul>
<a name="state">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>state</h4>
<pre>protected&nbsp;byte[] state</pre>
<div class="block">The state of each hash table entry (FREE, FULL, REMOVED).</div>
</li>
</ul>
<a name="freeEntries">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>freeEntries</h4>
<pre>protected&nbsp;int freeEntries</pre>
<div class="block">The number of table entries in state==FREE.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="OpenShortDoubleHashMap--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OpenShortDoubleHashMap</h4>
<pre>public&nbsp;OpenShortDoubleHashMap()</pre>
<div class="block">Constructs an empty map with default capacity and default load factors.</div>
</li>
</ul>
<a name="OpenShortDoubleHashMap-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OpenShortDoubleHashMap</h4>
<pre>public&nbsp;OpenShortDoubleHashMap(int&nbsp;initialCapacity)</pre>
<div class="block">Constructs an empty map with the specified initial capacity and default load factors.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>initialCapacity</code> - the initial capacity of the map.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<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 the initial capacity is less than zero.</dd>
</dl>
</li>
</ul>
<a name="OpenShortDoubleHashMap-int-double-double-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>OpenShortDoubleHashMap</h4>
<pre>public&nbsp;OpenShortDoubleHashMap(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;maxLoadFactor)</pre>
<div class="block">Constructs an empty map with the specified initial capacity and the specified minimum and maximum load factor.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>initialCapacity</code> - the initial capacity.</dd>
<dd><code>minLoadFactor</code> - the minimum load factor.</dd>
<dd><code>maxLoadFactor</code> - the maximum load factor.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<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>initialCapacity < 0 || (minLoadFactor < 0.0 || minLoadFactor >= 1.0) ||
(maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) || (minLoadFactor >=
maxLoadFactor)</tt>.</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="clear--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear</h4>
<pre>public&nbsp;void&nbsp;clear()</pre>
<div class="block">Removes all (key,value) associations from the receiver. Implicitly calls <tt>trimToSize()</tt>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#clear--">clear</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd>
</dl>
</li>
</ul>
<a name="clone--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre>public&nbsp;<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>&nbsp;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>&nbsp;in class&nbsp;<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="containsKey-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsKey</h4>
<pre>public&nbsp;boolean&nbsp;containsKey(short&nbsp;key)</pre>
<div class="block">Returns <tt>true</tt> if the receiver contains the specified key.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#containsKey-short-">containsKey</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><tt>true</tt> if the receiver contains the specified key.</dd>
</dl>
</li>
</ul>
<a name="containsValue-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsValue</h4>
<pre>public&nbsp;boolean&nbsp;containsValue(double&nbsp;value)</pre>
<div class="block">Returns <tt>true</tt> if the receiver contains the specified value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#containsValue-double-">containsValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><tt>true</tt> if the receiver contains the specified value.</dd>
</dl>
</li>
</ul>
<a name="ensureCapacity-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ensureCapacity</h4>
<pre>public&nbsp;void&nbsp;ensureCapacity(int&nbsp;minCapacity)</pre>
<div class="block">Ensures that the receiver can hold at least the specified number of associations without needing to allocate new
internal memory. If necessary, allocates new internal memory and increases the capacity of the receiver. <p> This
method never need be called; it is for performance tuning only. Calling this method before <tt>put()</tt>ing a
large number of associations boosts performance, because the receiver will grow only once instead of potentially
many times and hash collisions get less probable.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#ensureCapacity-int-">ensureCapacity</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minCapacity</code> - the desired minimum capacity.</dd>
</dl>
</li>
</ul>
<a name="forEachKey-org.apache.mahout.math.function.ShortProcedure-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>forEachKey</h4>
<pre>public&nbsp;boolean&nbsp;forEachKey(<a href="../../../../../org/apache/mahout/math/function/ShortProcedure.html" title="interface in org.apache.mahout.math.function">ShortProcedure</a>&nbsp;procedure)</pre>
<div class="block">Applies a procedure to each key of the receiver, if any. Note: Iterates over the keys in no particular order.
Subclasses can define a particular order, for example, "sorted by key". All methods which <i>can</i> be expressed
in terms of this method (most methods can) <i>must guarantee</i> to use the <i>same</i> order defined by this
method, even if it is no particular order. This is necessary so that, for example, methods <tt>keys</tt> and
<tt>values</tt> will yield association pairs, not two uncorrelated lists.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#forEachKey-org.apache.mahout.math.function.ShortProcedure-">forEachKey</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<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 keys where iterated over, <tt>true</tt> otherwise.</dd>
</dl>
</li>
</ul>
<a name="forEachPair-org.apache.mahout.math.function.ShortDoubleProcedure-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>forEachPair</h4>
<pre>public&nbsp;boolean&nbsp;forEachPair(<a href="../../../../../org/apache/mahout/math/function/ShortDoubleProcedure.html" title="interface in org.apache.mahout.math.function">ShortDoubleProcedure</a>&nbsp;procedure)</pre>
<div class="block">Applies a procedure to each (key,value) pair of the receiver, if any. Iteration order is guaranteed to be
<i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#forEachKey-org.apache.mahout.math.function.ShortProcedure-"><code>forEachKey(ShortProcedure)</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#forEachPair-org.apache.mahout.math.function.ShortDoubleProcedure-">forEachPair</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<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 keys where iterated over, <tt>true</tt> otherwise.</dd>
</dl>
</li>
</ul>
<a name="get-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;double&nbsp;get(short&nbsp;key)</pre>
<div class="block">Returns the value associated with the specified key. It is often a good idea to first check with
containsKey(short) whether the given key has a value associated or not, i.e. whether there exists an association
for the given key or not.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#get-short-">get</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key to be searched for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value associated with the specified key; <tt>0</tt> if no such key is present.</dd>
</dl>
</li>
</ul>
<a name="indexOfInsertion-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfInsertion</h4>
<pre>protected&nbsp;int&nbsp;indexOfInsertion(short&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key to be added to the receiver.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index where the key would need to be inserted, if it is not already contained. Returns -index-1 if the
key is already contained at slot index. Therefore, if the returned index < 0, then it is already contained
at slot -index-1. If the returned index >= 0, then it is NOT already contained and should be inserted at
slot index.</dd>
</dl>
</li>
</ul>
<a name="indexOfKey-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfKey</h4>
<pre>protected&nbsp;int&nbsp;indexOfKey(short&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key to be searched in the receiver.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index where the key is contained in the receiver, returns -1 if the key was not found.</dd>
</dl>
</li>
</ul>
<a name="indexOfValue-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfValue</h4>
<pre>protected&nbsp;int&nbsp;indexOfValue(double&nbsp;value)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the value to be searched in the receiver.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the index where the value is contained in the receiver, returns -1 if the value was not found.</dd>
</dl>
</li>
</ul>
<a name="keys-org.apache.mahout.math.list.ShortArrayList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>keys</h4>
<pre>public&nbsp;void&nbsp;keys(<a href="../../../../../org/apache/mahout/math/list/ShortArrayList.html" title="class in org.apache.mahout.math.list">ShortArrayList</a>&nbsp;list)</pre>
<div class="block">Fills all keys contained in the receiver into the specified list. Fills the list, starting at index 0. After this
call returns the specified list has a new size that equals <tt>this.size()</tt>. Iteration order is guaranteed to
be <i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#forEachKey-org.apache.mahout.math.function.ShortProcedure-"><code>forEachKey(ShortProcedure)</code></a>.
<p> This method can be used
to iterate over the keys of the receiver.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#keys-org.apache.mahout.math.list.ShortArrayList-">keys</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>list</code> - the list to be filled, can have any size.</dd>
</dl>
</li>
</ul>
<a name="iterator--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterator</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a>&lt;<a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.MapElement.html" title="class in org.apache.mahout.math.map">OpenShortDoubleHashMap.MapElement</a>&gt;&nbsp;iterator()</pre>
</li>
</ul>
<a name="pairsMatching-org.apache.mahout.math.function.ShortDoubleProcedure-org.apache.mahout.math.list.ShortArrayList-org.apache.mahout.math.list.DoubleArrayList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pairsMatching</h4>
<pre>public&nbsp;void&nbsp;pairsMatching(<a href="../../../../../org/apache/mahout/math/function/ShortDoubleProcedure.html" title="interface in org.apache.mahout.math.function">ShortDoubleProcedure</a>&nbsp;condition,
<a href="../../../../../org/apache/mahout/math/list/ShortArrayList.html" title="class in org.apache.mahout.math.list">ShortArrayList</a>&nbsp;keyList,
<a href="../../../../../org/apache/mahout/math/list/DoubleArrayList.html" title="class in org.apache.mahout.math.list">DoubleArrayList</a>&nbsp;valueList)</pre>
<div class="block">Fills all pairs satisfying a given condition into the specified lists. Fills into the lists, starting at index 0.
After this call returns the specified lists both have a new size, the number of pairs satisfying the condition.
Iteration order is guaranteed to be <i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#forEachKey-org.apache.mahout.math.function.ShortProcedure-"><code>forEachKey(ShortProcedure)</code></a>. <p> <b>Example:</b> <br>
<pre>
ShortDoubleProcedure condition = new ShortDoubleProcedure() { // match even values only
public boolean apply(short key, double value) { return value%2==0; }
}
keys = (8,7,6), values = (1,2,2) --> keyList = (6,8), valueList = (2,1)</tt>
</pre></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#pairsMatching-org.apache.mahout.math.function.ShortDoubleProcedure-org.apache.mahout.math.list.ShortArrayList-org.apache.mahout.math.list.DoubleArrayList-">pairsMatching</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>condition</code> - the condition to be matched. Takes the current key as first and the current value as second
argument.</dd>
<dd><code>keyList</code> - the list to be filled with keys, can have any size.</dd>
<dd><code>valueList</code> - the list to be filled with values, can have any size.</dd>
</dl>
</li>
</ul>
<a name="put-short-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;boolean&nbsp;put(short&nbsp;key,
double&nbsp;value)</pre>
<div class="block">Associates the given key with the given value. Replaces any old <tt>(key,someOtherValue)</tt> association, if
existing.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#put-short-double-">put</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key the value shall be associated with.</dd>
<dd><code>value</code> - the value to be associated.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><tt>true</tt> if the receiver did not already contain such a key; <tt>false</tt> if the receiver did
already contain such a key - the new value has now replaced the formerly associated value.</dd>
</dl>
</li>
</ul>
<a name="adjustOrPutValue-short-double-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>adjustOrPutValue</h4>
<pre>public&nbsp;double&nbsp;adjustOrPutValue(short&nbsp;key,
double&nbsp;newValue,
double&nbsp;incrValue)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#adjustOrPutValue-short-double-double-">AbstractShortDoubleMap</a></code></span></div>
<div class="block">Check the map for a key. If present, add an increment to the value. If absent,
store a specified value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#adjustOrPutValue-short-double-double-">adjustOrPutValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key.</dd>
<dd><code>newValue</code> - the value to store if the key is not currently in the map.</dd>
<dd><code>incrValue</code> - the value to be added to the current value in the map.</dd>
</dl>
</li>
</ul>
<a name="rehash-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rehash</h4>
<pre>protected&nbsp;void&nbsp;rehash(int&nbsp;newCapacity)</pre>
<div class="block">Rehashes the contents of the receiver into a new table with a smaller or larger capacity. This method is called
automatically when the number of keys in the receiver exceeds the high water mark or falls below the low water
mark.</div>
</li>
</ul>
<a name="removeKey-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeKey</h4>
<pre>public&nbsp;boolean&nbsp;removeKey(short&nbsp;key)</pre>
<div class="block">Removes the given key with its associated element from the receiver, if present.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#removeKey-short-">removeKey</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key to be removed from the receiver.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><tt>true</tt> if the receiver contained the specified key, <tt>false</tt> otherwise.</dd>
</dl>
</li>
</ul>
<a name="setUp-int-double-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUp</h4>
<pre>protected final&nbsp;void&nbsp;setUp(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;maxLoadFactor)</pre>
<div class="block">Initializes the receiver.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#setUp-int-double-double-">setUp</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>initialCapacity</code> - the initial capacity of the receiver.</dd>
<dd><code>minLoadFactor</code> - the minLoadFactor of the receiver.</dd>
<dd><code>maxLoadFactor</code> - the maxLoadFactor 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/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <tt>initialCapacity < 0 || (minLoadFactor < 0.0 || minLoadFactor >= 1.0) ||
(maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) || (minLoadFactor >=
maxLoadFactor)</tt>.</dd>
</dl>
</li>
</ul>
<a name="trimToSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trimToSize</h4>
<pre>public&nbsp;void&nbsp;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/set/AbstractSet.html#trimToSize--">trimToSize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd>
</dl>
</li>
</ul>
<a name="values-org.apache.mahout.math.list.DoubleArrayList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>values</h4>
<pre>public&nbsp;void&nbsp;values(<a href="../../../../../org/apache/mahout/math/list/DoubleArrayList.html" title="class in org.apache.mahout.math.list">DoubleArrayList</a>&nbsp;list)</pre>
<div class="block">Fills all values contained in the receiver into the specified list. Fills the list, starting at index 0. After this
call returns the specified list has a new size that equals <tt>this.size()</tt>. Iteration order is guaranteed to
be <i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.html#forEachKey-org.apache.mahout.math.function.ShortProcedure-"><code>forEachKey(ShortProcedure)</code></a>.
<p> This method can be used
to iterate over the values of the receiver.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html#values-org.apache.mahout.math.list.DoubleArrayList-">values</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/map/AbstractShortDoubleMap.html" title="class in org.apache.mahout.math.map">AbstractShortDoubleMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>list</code> - the list to be filled, can have any size.</dd>
</dl>
</li>
</ul>
<a name="getInternalFactors-int:A-double:A-double:A-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getInternalFactors</h4>
<pre>protected&nbsp;void&nbsp;getInternalFactors(int[]&nbsp;capacity,
double[]&nbsp;minLoadFactor,
double[]&nbsp;maxLoadFactor)</pre>
<div class="block">Access for unit tests.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>capacity</code> - </dd>
<dd><code>minLoadFactor</code> - </dd>
<dd><code>maxLoadFactor</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/OpenShortDoubleHashMap.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/map/OpenShortCharHashMap.MapIterator.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/math/map/OpenShortDoubleHashMap.MapElement.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/math/map/OpenShortDoubleHashMap.html" target="_top">Frames</a></li>
<li><a href="OpenShortDoubleHashMap.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2008&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>