| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (14.0.2) on Thu Aug 20 21:25:36 CDT 2020 --> |
| <title>ObjectShortMap (Eclipse Collections - 10.4.0)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2020-08-20"> |
| <meta name="description" content="declaration: package: org.eclipse.collections.api.map.primitive, interface: ObjectShortMap"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../../script-dir/jquery-3.4.1.js"></script> |
| <script type="text/javascript" src="../../../../../../script-dir/jquery-ui.js"></script> |
| </head> |
| <body class="class-declaration"> |
| <script type="text/javascript">var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":18,"i15":6,"i16":6,"i17":6}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flexBox"> |
| <header role="banner" class="flexHeader"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ObjectShortMap.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"> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="navListSearch"><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <div class="skipNav"><a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| </nav> |
| </header> |
| <div class="flexContent"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.eclipse.collections.api.map.primitive</a></div> |
| <h1 title="Interface ObjectShortMap" class="title">Interface ObjectShortMap<K></h1> |
| </div> |
| <div class="contentContainer"> |
| <section class="description"> |
| <dl> |
| <dt>All Superinterfaces:</dt> |
| <dd><code><a href="../../PrimitiveIterable.html" title="interface in org.eclipse.collections.api">PrimitiveIterable</a></code>, <code><a href="../../ShortIterable.html" title="interface in org.eclipse.collections.api">ShortIterable</a></code></dd> |
| </dl> |
| <dl> |
| <dt>All Known Subinterfaces:</dt> |
| <dd><code><a href="ImmutableObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ImmutableObjectShortMap</a><K></code>, <code><a href="MutableObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">MutableObjectShortMap</a><K></code></dd> |
| </dl> |
| <dl> |
| <dt>All Known Implementing Classes:</dt> |
| <dd><code><a href="../../../impl/map/immutable/primitive/AbstractImmutableObjectShortMap.html" title="class in org.eclipse.collections.impl.map.immutable.primitive">AbstractImmutableObjectShortMap</a></code>, <code><a href="../../../impl/map/mutable/primitive/ObjectShortHashMap.html" title="class in org.eclipse.collections.impl.map.mutable.primitive">ObjectShortHashMap</a></code>, <code><a href="../../../impl/map/mutable/primitive/ObjectShortHashMapWithHashingStrategy.html" title="class in org.eclipse.collections.impl.map.mutable.primitive">ObjectShortHashMapWithHashingStrategy</a></code>, <code><a href="../../../impl/map/mutable/primitive/SynchronizedObjectShortMap.html" title="class in org.eclipse.collections.impl.map.mutable.primitive">SynchronizedObjectShortMap</a></code>, <code><a href="../../../impl/map/mutable/primitive/UnmodifiableObjectShortMap.html" title="class in org.eclipse.collections.impl.map.mutable.primitive">UnmodifiableObjectShortMap</a></code></dd> |
| </dl> |
| <hr> |
| <pre>public interface <span class="typeNameLabel">ObjectShortMap<K></span> |
| extends <a href="../../ShortIterable.html" title="interface in org.eclipse.collections.api">ShortIterable</a></pre> |
| <div class="block">This file was automatically generated from template file objectPrimitiveMap.stg.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>3.0.</dd> |
| </dl> |
| </section> |
| <section class="summary"> |
| <ul class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li class="blockList"> |
| <section class="methodSummary"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h2>Method Summary</h2> |
| <div class="memberSummary"> |
| <div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t3" class="tableTab" onclick="show(4);">Abstract Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t5" class="tableTab" onclick="show(16);">Default Methods</button></div> |
| <div id="memberSummary_tabpanel" role="tabpanel"> |
| <table aria-labelledby="t0"> |
| <thead> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr class="altColor" id="i0"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#containsKey(java.lang.Object)">containsKey</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns whether or not the key is present in the map.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i1"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#containsValue(short)">containsValue</a></span>​(short value)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns whether or not this map contains the value.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i2"> |
| <td class="colFirst"><code><a href="ShortObjectMap.html" title="interface in org.eclipse.collections.api.map.primitive">ShortObjectMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flipUniqueValues()">flipUniqueValues</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Return the ShortObjectMap that is obtained by flipping the direction of this map and making the associations |
| from value to key.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i3"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachKey(org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a></span>​(<a href="../../block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates through each key in the map, invoking the procedure for each.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i4"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectShortProcedure)">forEachKeyValue</a></span>​(<a href="../../block/procedure/primitive/ObjectShortProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectShortProcedure</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates through each key/value pair in the map, invoking the procedure for each.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i5"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachValue(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure)">forEachValue</a></span>​(<a href="../../block/procedure/primitive/ShortProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ShortProcedure</a> procedure)</code></th> |
| <td class="colLast"> |
| <div class="block">Iterates through each value in this map.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i6"> |
| <td class="colFirst"><code>short</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#get(java.lang.Object)">get</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key)</code></th> |
| <td class="colLast"> |
| <div class="block">Retrieves the value associated with the key.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i7"> |
| <td class="colFirst"><code>short</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIfAbsent(java.lang.Object,short)">getIfAbsent</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key, |
| short ifAbsent)</code></th> |
| <td class="colLast"> |
| <div class="block">Retrieves the value associated with the key, returning the specified default |
| value if no such mapping exists.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i8"> |
| <td class="colFirst"><code>short</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOrThrow(java.lang.Object)">getOrThrow</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key)</code></th> |
| <td class="colLast"> |
| <div class="block">Retrieves the value associated with the key, throwing an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>IllegalStateException</code></a> |
| if no such mapping exists.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i9"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#keySet()">keySet</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a set containing all the keys in this map.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i10"> |
| <td class="colFirst"><code><a href="../../LazyIterable.html" title="interface in org.eclipse.collections.api">LazyIterable</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#keysView()">keysView</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a view of the keys in this map.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i11"> |
| <td class="colFirst"><code><a href="../../RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="../../tuple/primitive/ObjectShortPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">ObjectShortPair</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#keyValuesView()">keyValuesView</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a view of the key/value pairs in this map.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i12"> |
| <td class="colFirst"><code><a href="ObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reject(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate)">reject</a></span>​(<a href="../../block/predicate/primitive/ObjectShortPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">ObjectShortPredicate</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Return a copy of this map containing only the key/value pairs that do not match the |
| predicate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i13"> |
| <td class="colFirst"><code><a href="ObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#select(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate)">select</a></span>​(<a href="../../block/predicate/primitive/ObjectShortPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">ObjectShortPredicate</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> predicate)</code></th> |
| <td class="colLast"> |
| <div class="block">Return a copy of this map containing only the key/value pairs that match the predicate.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i14"> |
| <td class="colFirst"><code>default <a href="ObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tap(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure)">tap</a></span>​(<a href="../../block/procedure/primitive/ShortProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ShortProcedure</a> procedure)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor" id="i15"> |
| <td class="colFirst"><code><a href="ImmutableObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ImmutableObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toImmutable()">toImmutable</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a copy of this map that is immutable (if this map is mutable) or |
| itself if it is already immutable.</div> |
| </td> |
| </tr> |
| <tr class="altColor" id="i16"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Follows the same general contract as <a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true#toString()" title="class or interface in java.util" class="externalLink"><code>AbstractMap.toString()</code></a></div> |
| </td> |
| </tr> |
| <tr class="rowColor" id="i17"> |
| <td class="colFirst"><code><a href="../../collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#values()">values</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the values in this map as a separate collection.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.<a href="../../PrimitiveIterable.html" title="interface in org.eclipse.collections.api">PrimitiveIterable</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.PrimitiveIterable"> |
| <!-- --> |
| </a><code><a href="../../PrimitiveIterable.html#appendString(java.lang.Appendable)">appendString</a>, <a href="../../PrimitiveIterable.html#appendString(java.lang.Appendable,java.lang.String)">appendString</a>, <a href="../../PrimitiveIterable.html#appendString(java.lang.Appendable,java.lang.String,java.lang.String,java.lang.String)">appendString</a>, <a href="../../PrimitiveIterable.html#isEmpty()">isEmpty</a>, <a href="../../PrimitiveIterable.html#makeString()">makeString</a>, <a href="../../PrimitiveIterable.html#makeString(java.lang.String)">makeString</a>, <a href="../../PrimitiveIterable.html#makeString(java.lang.String,java.lang.String,java.lang.String)">makeString</a>, <a href="../../PrimitiveIterable.html#notEmpty()">notEmpty</a>, <a href="../../PrimitiveIterable.html#size()">size</a></code></div> |
| <div class="inheritedList"> |
| <h3>Methods inherited from interface org.eclipse.collections.api.<a href="../../ShortIterable.html" title="interface in org.eclipse.collections.api">ShortIterable</a></h3> |
| <a id="methods.inherited.from.class.org.eclipse.collections.api.ShortIterable"> |
| <!-- --> |
| </a><code><a href="../../ShortIterable.html#allSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate)">allSatisfy</a>, <a href="../../ShortIterable.html#anySatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate)">anySatisfy</a>, <a href="../../ShortIterable.html#asLazy()">asLazy</a>, <a href="../../ShortIterable.html#average()">average</a>, <a href="../../ShortIterable.html#averageIfEmpty(double)">averageIfEmpty</a>, <a href="../../ShortIterable.html#chunk(int)">chunk</a>, <a href="../../ShortIterable.html#collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction)">collect</a>, <a href="../../ShortIterable.html#collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction,R)">collect</a>, <a href="../../ShortIterable.html#collectBoolean(org.eclipse.collections.api.block.function.primitive.ShortToBooleanFunction,R)">collectBoolean</a>, <a href="../../ShortIterable.html#collectByte(org.eclipse.collections.api.block.function.primitive.ShortToByteFunction,R)">collectByte</a>, <a href="../../ShortIterable.html#collectChar(org.eclipse.collections.api.block.function.primitive.ShortToCharFunction,R)">collectChar</a>, <a href="../../ShortIterable.html#collectDouble(org.eclipse.collections.api.block.function.primitive.ShortToDoubleFunction,R)">collectDouble</a>, <a href="../../ShortIterable.html#collectFloat(org.eclipse.collections.api.block.function.primitive.ShortToFloatFunction,R)">collectFloat</a>, <a href="../../ShortIterable.html#collectInt(org.eclipse.collections.api.block.function.primitive.ShortToIntFunction,R)">collectInt</a>, <a href="../../ShortIterable.html#collectLong(org.eclipse.collections.api.block.function.primitive.ShortToLongFunction,R)">collectLong</a>, <a href="../../ShortIterable.html#collectShort(org.eclipse.collections.api.block.function.primitive.ShortToShortFunction,R)">collectShort</a>, <a href="../../ShortIterable.html#contains(short)">contains</a>, <a href="../../ShortIterable.html#containsAll(short...)">containsAll</a>, <a href="../../ShortIterable.html#containsAll(org.eclipse.collections.api.ShortIterable)">containsAll</a>, <a href="../../ShortIterable.html#count(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate)">count</a>, <a href="../../ShortIterable.html#detectIfNone(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate,short)">detectIfNone</a>, <a href="../../ShortIterable.html#each(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure)">each</a>, <a href="../../ShortIterable.html#flatCollect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction,R)">flatCollect</a>, <a href="../../ShortIterable.html#forEach(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure)">forEach</a>, <a href="../../ShortIterable.html#injectInto(T,org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction)">injectInto</a>, <a href="../../ShortIterable.html#max()">max</a>, <a href="../../ShortIterable.html#maxIfEmpty(short)">maxIfEmpty</a>, <a href="../../ShortIterable.html#median()">median</a>, <a href="../../ShortIterable.html#medianIfEmpty(double)">medianIfEmpty</a>, <a href="../../ShortIterable.html#min()">min</a>, <a href="../../ShortIterable.html#minIfEmpty(short)">minIfEmpty</a>, <a href="../../ShortIterable.html#noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate)">noneSatisfy</a>, <a href="../../ShortIterable.html#reduce(org.eclipse.collections.api.block.function.primitive.LongShortToLongFunction)">reduce</a>, <a href="../../ShortIterable.html#reduceIfEmpty(org.eclipse.collections.api.block.function.primitive.LongShortToLongFunction,long)">reduceIfEmpty</a>, <a href="../../ShortIterable.html#reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate)">reject</a>, <a href="../../ShortIterable.html#reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate,R)">reject</a>, <a href="../../ShortIterable.html#select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate)">select</a>, <a href="../../ShortIterable.html#select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate,R)">select</a>, <a href="../../ShortIterable.html#shortIterator()">shortIterator</a>, <a href="../../ShortIterable.html#sum()">sum</a>, <a href="../../ShortIterable.html#summaryStatistics()">summaryStatistics</a>, <a href="../../ShortIterable.html#toArray()">toArray</a>, <a href="../../ShortIterable.html#toArray(short%5B%5D)">toArray</a>, <a href="../../ShortIterable.html#toBag()">toBag</a>, <a href="../../ShortIterable.html#toList()">toList</a>, <a href="../../ShortIterable.html#toSet()">toSet</a>, <a href="../../ShortIterable.html#toSortedArray()">toSortedArray</a>, <a href="../../ShortIterable.html#toSortedList()">toSortedList</a></code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li class="blockList"> |
| <section class="methodDetails"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h2>Method Details</h2> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="get(java.lang.Object)">get</a></h3> |
| <div class="memberSignature"><span class="returnType">short</span> <span class="memberName">get</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key)</span></div> |
| <div class="block">Retrieves the value associated with the key. If no mapping exists for the key, |
| the default value (usually <code>0</code>) is returned.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value associated with the key, or the default value if no such |
| mapping exists</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getOrThrow(java.lang.Object)">getOrThrow</a></h3> |
| <div class="memberSignature"><span class="returnType">short</span> <span class="memberName">getOrThrow</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key)</span></div> |
| <div class="block">Retrieves the value associated with the key, throwing an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>IllegalStateException</code></a> |
| if no such mapping exists.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value associated with the key</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></code> - if no mapping exists for the key</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="getIfAbsent(java.lang.Object,short)">getIfAbsent</a></h3> |
| <div class="memberSignature"><span class="returnType">short</span> <span class="memberName">getIfAbsent</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key, |
| short ifAbsent)</span></div> |
| <div class="block">Retrieves the value associated with the key, returning the specified default |
| value if no such mapping exists.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key</dd> |
| <dd><code>ifAbsent</code> - the default value to return if no mapping exists for <code>key</code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value associated with the key, or <code>ifAbsent</code> if no such |
| mapping exists.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="containsKey(java.lang.Object)">containsKey</a></h3> |
| <div class="memberSignature"><span class="returnType">boolean</span> <span class="memberName">containsKey</span>​(<span class="arguments"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> key)</span></div> |
| <div class="block">Returns whether or not the key is present in the map.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>if a mapping exists in this map for the key</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="containsValue(short)">containsValue</a></h3> |
| <div class="memberSignature"><span class="returnType">boolean</span> <span class="memberName">containsValue</span>​(<span class="arguments">short value)</span></div> |
| <div class="block">Returns whether or not this map contains the value.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the value to test</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>if this collection contains the value</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachValue(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure)">forEachValue</a></h3> |
| <div class="memberSignature"><span class="returnType">void</span> <span class="memberName">forEachValue</span>​(<span class="arguments"><a href="../../block/procedure/primitive/ShortProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ShortProcedure</a> procedure)</span></div> |
| <div class="block">Iterates through each value in this map.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>procedure</code> - the procedure to invoke for each value in this map.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachKey(org.eclipse.collections.api.block.procedure.Procedure)">forEachKey</a></h3> |
| <div class="memberSignature"><span class="returnType">void</span> <span class="memberName">forEachKey</span>​(<span class="arguments"><a href="../../block/procedure/Procedure.html" title="interface in org.eclipse.collections.api.block.procedure">Procedure</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> procedure)</span></div> |
| <div class="block">Iterates through each key in the map, invoking the procedure for each.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>procedure</code> - the procedure to invoke for each key</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectShortProcedure)">forEachKeyValue</a></h3> |
| <div class="memberSignature"><span class="returnType">void</span> <span class="memberName">forEachKeyValue</span>​(<span class="arguments"><a href="../../block/procedure/primitive/ObjectShortProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ObjectShortProcedure</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> procedure)</span></div> |
| <div class="block">Iterates through each key/value pair in the map, invoking the procedure for each.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>procedure</code> - the procedure to invoke for each key/value pair</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="flipUniqueValues()">flipUniqueValues</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="ShortObjectMap.html" title="interface in org.eclipse.collections.api.map.primitive">ShortObjectMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></span> <span class="memberName">flipUniqueValues</span>()</div> |
| <div class="block">Return the ShortObjectMap that is obtained by flipping the direction of this map and making the associations |
| from value to key.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></code> - if the ShortObjectMap contains duplicate values.</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>9.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="select(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate)">select</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="ObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></span> <span class="memberName">select</span>​(<span class="arguments"><a href="../../block/predicate/primitive/ObjectShortPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">ObjectShortPredicate</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> predicate)</span></div> |
| <div class="block">Return a copy of this map containing only the key/value pairs that match the predicate.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>predicate</code> - the predicate to determine which key/value pairs in this map should be |
| included in the returned map</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a copy of this map with the matching key/value pairs</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="reject(org.eclipse.collections.api.block.predicate.primitive.ObjectShortPredicate)">reject</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="ObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></span> <span class="memberName">reject</span>​(<span class="arguments"><a href="../../block/predicate/primitive/ObjectShortPredicate.html" title="interface in org.eclipse.collections.api.block.predicate.primitive">ObjectShortPredicate</a><? super <a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>> predicate)</span></div> |
| <div class="block">Return a copy of this map containing only the key/value pairs that do not match the |
| predicate.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>predicate</code> - the predicate to determine which key/value pairs in this map should be |
| excluded from the returned map</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a copy of this map without the matching key/value pairs</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="tap(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure)">tap</a></h3> |
| <div class="memberSignature"><span class="modifiers">default</span> <span class="returnType"><a href="ObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></span> <span class="memberName">tap</span>​(<span class="arguments"><a href="../../block/procedure/primitive/ShortProcedure.html" title="interface in org.eclipse.collections.api.block.procedure.primitive">ShortProcedure</a> procedure)</span></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../ShortIterable.html#tap(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure)">tap</a></code> in interface <code><a href="../../ShortIterable.html" title="interface in org.eclipse.collections.api">ShortIterable</a></code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>9.0.</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toString()">toString</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></span> <span class="memberName">toString</span>()</div> |
| <div class="block">Follows the same general contract as <a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true#toString()" title="class or interface in java.util" class="externalLink"><code>AbstractMap.toString()</code></a></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../PrimitiveIterable.html#toString()">toString</a></code> in interface <code><a href="../../PrimitiveIterable.html" title="interface in org.eclipse.collections.api">PrimitiveIterable</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a string representation of this ObjectShortMap</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractCollection.html?is-external=true#toString()" title="class or interface in java.util" class="externalLink"><code>AbstractCollection.toString()</code></a></dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="toImmutable()">toImmutable</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="ImmutableObjectShortMap.html" title="interface in org.eclipse.collections.api.map.primitive">ImmutableObjectShortMap</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></span> <span class="memberName">toImmutable</span>()</div> |
| <div class="block">Returns a copy of this map that is immutable (if this map is mutable) or |
| itself if it is already immutable.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an immutable map that is equivalent to this one</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="keySet()">keySet</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></span> <span class="memberName">keySet</span>()</div> |
| <div class="block">Returns a set containing all the keys in this map. The set is backed by the |
| map, so any modifications to the returned set will affect this map.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a mutable set containing the keys in this map</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="values()">values</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="../../collection/primitive/MutableShortCollection.html" title="interface in org.eclipse.collections.api.collection.primitive">MutableShortCollection</a></span> <span class="memberName">values</span>()</div> |
| <div class="block">Returns the values in this map as a separate collection. The returned collection is backed by the map, so any |
| changes made to the returned collection will affect the state of this map.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the values as a collection backed by this map</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="keysView()">keysView</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="../../LazyIterable.html" title="interface in org.eclipse.collections.api">LazyIterable</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>></span> <span class="memberName">keysView</span>()</div> |
| <div class="block">Returns a view of the keys in this map. This iterable is backed by the map, so |
| any modifications to the underlying map will be reflected in the keys returned |
| by the iterable.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a view of the keys in this map</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>5.0</dd> |
| </dl> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section class="detail"> |
| <h3><a id="keyValuesView()">keyValuesView</a></h3> |
| <div class="memberSignature"><span class="returnType"><a href="../../RichIterable.html" title="interface in org.eclipse.collections.api">RichIterable</a><<a href="../../tuple/primitive/ObjectShortPair.html" title="interface in org.eclipse.collections.api.tuple.primitive">ObjectShortPair</a><<a href="ObjectShortMap.html" title="type parameter in ObjectShortMap">K</a>>></span> <span class="memberName">keyValuesView</span>()</div> |
| <div class="block">Returns a view of the key/value pairs in this map. This iterable is backed by |
| the map, so any modifications to the underlying map will be reflected in the |
| pairs returned by the iterable.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a view of the keys in this map</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>5.0</dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ObjectShortMap.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"> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2004–2020. All rights reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |