1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_25) on Mon Jun 02 17:48:58 PDT 2014 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>LRUMap (jackson-databind 2.4.0 API)</title> 8<meta name="date" content="2014-06-02"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="LRUMap (jackson-databind 2.4.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/LRUMap.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../../index-all.html">Index</a></li> 35<li><a href="../../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../../com/fasterxml/jackson/databind/util/LinkedNode.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/util/Named.html" title="interface in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/LRUMap.html" target="_top">Frames</a></li> 45<li><a href="LRUMap.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li><a href="#nested_classes_inherited_from_class_java.util.AbstractMap">Nested</a> | </li> 66<li><a href="#field_summary">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#field_detail">Field</a> | </li> 73<li><a href="#constructor_detail">Constr</a> | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind.util</div> 84<h2 title="Class LRUMap" class="title">Class LRUMap<K,V></h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li><a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">java.util.AbstractMap</a><K,V></li> 92<li> 93<ul class="inheritance"> 94<li><a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">java.util.HashMap</a><K,V></li> 95<li> 96<ul class="inheritance"> 97<li><a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">java.util.LinkedHashMap</a><K,V></li> 98<li> 99<ul class="inheritance"> 100<li>com.fasterxml.jackson.databind.util.LRUMap<K,V></li> 101</ul> 102</li> 103</ul> 104</li> 105</ul> 106</li> 107</ul> 108</li> 109</ul> 110<div class="description"> 111<ul class="blockList"> 112<li class="blockList"> 113<dl> 114<dt>All Implemented Interfaces:</dt> 115<dd><a href="http://docs.oracle.com/javase/6/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/6/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V></dd> 116</dl> 117<hr> 118<br> 119<pre>public class <span class="strong">LRUMap<K,V></span> 120extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</a><K,V> 121implements <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 122<div class="block">Helper for simple bounded LRU maps used for reusing lookup values. 123<p> 124 Note that serialization behavior is such that contents are NOT serialized, 125 on assumption that all use cases are for caching where persistence 126 does not make sense. The only thing serialized is the cache size of Map. 127<p> 128 NOTE: the only reason we extend <a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util"><code>LinkedHashMap</code></a> instead of aggregating 129 it is that this way we can override <a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#removeEldestEntry(java.util.Map.Entry)"><code>removeEldestEntry(java.util.Map.Entry<K, V>)</code></a>. 130 Access, however, MUST be done using single-element access methods (or matching 131 <code>xxxAll()</code> methods that call them); access via iterators are not 132 guaranteed to work. 133<p> 134 NOTE: since version 2.4, uses <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/locks/ReentrantReadWriteLock.html?is-external=true" title="class or interface in java.util.concurrent.locks"><code>ReentrantReadWriteLock</code></a> to improve 135 concurrent access.</div> 136<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.util.LRUMap">Serialized Form</a></dd></dl> 137</li> 138</ul> 139</div> 140<div class="summary"> 141<ul class="blockList"> 142<li class="blockList"> 143<!-- ======== NESTED CLASS SUMMARY ======== --> 144<ul class="blockList"> 145<li class="blockList"><a name="nested_class_summary"> 146<!-- --> 147</a> 148<h3>Nested Class Summary</h3> 149<ul class="blockList"> 150<li class="blockList"><a name="nested_classes_inherited_from_class_java.util.AbstractMap"> 151<!-- --> 152</a> 153<h3>Nested classes/interfaces inherited from class java.util.<a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3> 154<code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleEntry</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">V</a>>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleImmutableEntry</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">V</a>></code></li> 155</ul> 156</li> 157</ul> 158<!-- =========== FIELD SUMMARY =========== --> 159<ul class="blockList"> 160<li class="blockList"><a name="field_summary"> 161<!-- --> 162</a> 163<h3>Field Summary</h3> 164<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 165<caption><span>Fields</span><span class="tabEnd"> </span></caption> 166<tr> 167<th class="colFirst" scope="col">Modifier and Type</th> 168<th class="colLast" scope="col">Field and Description</th> 169</tr> 170<tr class="altColor"> 171<td class="colFirst"><code>protected int</code></td> 172<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#_jdkSerializeMaxEntries">_jdkSerializeMaxEntries</a></strong></code> 173<div class="block">Ugly hack, to work through the requirement that _value is indeed final, 174 and that JDK serialization won't call ctor(s) if Serializable is implemented.</div> 175</td> 176</tr> 177<tr class="rowColor"> 178<td class="colFirst"><code>protected int</code></td> 179<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#_maxEntries">_maxEntries</a></strong></code> </td> 180</tr> 181<tr class="altColor"> 182<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks">Lock</a></code></td> 183<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#_readLock">_readLock</a></strong></code> </td> 184</tr> 185<tr class="rowColor"> 186<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks">Lock</a></code></td> 187<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#_writeLock">_writeLock</a></strong></code> </td> 188</tr> 189</table> 190</li> 191</ul> 192<!-- ======== CONSTRUCTOR SUMMARY ======== --> 193<ul class="blockList"> 194<li class="blockList"><a name="constructor_summary"> 195<!-- --> 196</a> 197<h3>Constructor Summary</h3> 198<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 199<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 200<tr> 201<th class="colOne" scope="col">Constructor and Description</th> 202</tr> 203<tr class="altColor"> 204<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#LRUMap(int, int)">LRUMap</a></strong>(int initialEntries, 205 int maxEntries)</code> </td> 206</tr> 207</table> 208</li> 209</ul> 210<!-- ========== METHOD SUMMARY =========== --> 211<ul class="blockList"> 212<li class="blockList"><a name="method_summary"> 213<!-- --> 214</a> 215<h3>Method Summary</h3> 216<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 217<caption><span>Methods</span><span class="tabEnd"> </span></caption> 218<tr> 219<th class="colFirst" scope="col">Modifier and Type</th> 220<th class="colLast" scope="col">Method and Description</th> 221</tr> 222<tr class="altColor"> 223<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a></code></td> 224<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#get(java.lang.Object)">get</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</code> </td> 225</tr> 226<tr class="rowColor"> 227<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a></code></td> 228<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#put(K, V)">put</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a> key, 229 <a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a> value)</code> </td> 230</tr> 231<tr class="altColor"> 232<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 233<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#readResolve()">readResolve</a></strong>()</code> </td> 234</tr> 235<tr class="rowColor"> 236<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a></code></td> 237<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#remove(java.lang.Object)">remove</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</code> </td> 238</tr> 239<tr class="altColor"> 240<td class="colFirst"><code>protected boolean</code></td> 241<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html#removeEldestEntry(java.util.Map.Entry)">removeEldestEntry</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>> eldest)</code> </td> 242</tr> 243</table> 244<ul class="blockList"> 245<li class="blockList"><a name="methods_inherited_from_class_java.util.LinkedHashMap"> 246<!-- --> 247</a> 248<h3>Methods inherited from class java.util.<a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</a></h3> 249<code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true#clear()" title="class or interface in java.util">clear</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true#containsValue(java.lang.Object)" title="class or interface in java.util">containsValue</a></code></li> 250</ul> 251<ul class="blockList"> 252<li class="blockList"><a name="methods_inherited_from_class_java.util.HashMap"> 253<!-- --> 254</a> 255<h3>Methods inherited from class java.util.<a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a></h3> 256<code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#clone()" title="class or interface in java.util">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#containsKey(java.lang.Object)" title="class or interface in java.util">containsKey</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#entrySet()" title="class or interface in java.util">entrySet</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#isEmpty()" title="class or interface in java.util">isEmpty</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#keySet()" title="class or interface in java.util">keySet</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#putAll(java.util.Map)" title="class or interface in java.util">putAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#size()" title="class or interface in java.util">size</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#values()" title="class or interface in java.util">values</a></code></li> 257</ul> 258<ul class="blockList"> 259<li class="blockList"><a name="methods_inherited_from_class_java.util.AbstractMap"> 260<!-- --> 261</a> 262<h3>Methods inherited from class java.util.<a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3> 263<code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.util">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.html?is-external=true#hashCode()" title="class or interface in java.util">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/AbstractMap.html?is-external=true#toString()" title="class or interface in java.util">toString</a></code></li> 264</ul> 265<ul class="blockList"> 266<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 267<!-- --> 268</a> 269<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 270<code><a href="http://docs.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 271</ul> 272<ul class="blockList"> 273<li class="blockList"><a name="methods_inherited_from_class_java.util.Map"> 274<!-- --> 275</a> 276<h3>Methods inherited from interface java.util.<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></h3> 277<code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#containsKey(java.lang.Object)" title="class or interface in java.util">containsKey</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#entrySet()" title="class or interface in java.util">entrySet</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.util">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#hashCode()" title="class or interface in java.util">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#isEmpty()" title="class or interface in java.util">isEmpty</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#keySet()" title="class or interface in java.util">keySet</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#putAll(java.util.Map)" title="class or interface in java.util">putAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#size()" title="class or interface in java.util">size</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#values()" title="class or interface in java.util">values</a></code></li> 278</ul> 279</li> 280</ul> 281</li> 282</ul> 283</div> 284<div class="details"> 285<ul class="blockList"> 286<li class="blockList"> 287<!-- ============ FIELD DETAIL =========== --> 288<ul class="blockList"> 289<li class="blockList"><a name="field_detail"> 290<!-- --> 291</a> 292<h3>Field Detail</h3> 293<a name="_readLock"> 294<!-- --> 295</a> 296<ul class="blockList"> 297<li class="blockList"> 298<h4>_readLock</h4> 299<pre>protected final transient <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks">Lock</a> _readLock</pre> 300</li> 301</ul> 302<a name="_writeLock"> 303<!-- --> 304</a> 305<ul class="blockList"> 306<li class="blockList"> 307<h4>_writeLock</h4> 308<pre>protected final transient <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks">Lock</a> _writeLock</pre> 309</li> 310</ul> 311<a name="_maxEntries"> 312<!-- --> 313</a> 314<ul class="blockList"> 315<li class="blockList"> 316<h4>_maxEntries</h4> 317<pre>protected final transient int _maxEntries</pre> 318</li> 319</ul> 320<a name="_jdkSerializeMaxEntries"> 321<!-- --> 322</a> 323<ul class="blockListLast"> 324<li class="blockList"> 325<h4>_jdkSerializeMaxEntries</h4> 326<pre>protected transient int _jdkSerializeMaxEntries</pre> 327<div class="block">Ugly hack, to work through the requirement that _value is indeed final, 328 and that JDK serialization won't call ctor(s) if Serializable is implemented.</div> 329<dl><dt><span class="strong">Since:</span></dt> 330 <dd>2.1</dd></dl> 331</li> 332</ul> 333</li> 334</ul> 335<!-- ========= CONSTRUCTOR DETAIL ======== --> 336<ul class="blockList"> 337<li class="blockList"><a name="constructor_detail"> 338<!-- --> 339</a> 340<h3>Constructor Detail</h3> 341<a name="LRUMap(int, int)"> 342<!-- --> 343</a> 344<ul class="blockListLast"> 345<li class="blockList"> 346<h4>LRUMap</h4> 347<pre>public LRUMap(int initialEntries, 348 int maxEntries)</pre> 349</li> 350</ul> 351</li> 352</ul> 353<!-- ============ METHOD DETAIL ========== --> 354<ul class="blockList"> 355<li class="blockList"><a name="method_detail"> 356<!-- --> 357</a> 358<h3>Method Detail</h3> 359<a name="removeEldestEntry(java.util.Map.Entry)"> 360<!-- --> 361</a> 362<ul class="blockList"> 363<li class="blockList"> 364<h4>removeEldestEntry</h4> 365<pre>protected boolean removeEldestEntry(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>> eldest)</pre> 366<dl> 367<dt><strong>Overrides:</strong></dt> 368<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true#removeEldestEntry(java.util.Map.Entry)" title="class or interface in java.util">removeEldestEntry</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>></code></dd> 369</dl> 370</li> 371</ul> 372<a name="get(java.lang.Object)"> 373<!-- --> 374</a> 375<ul class="blockList"> 376<li class="blockList"> 377<h4>get</h4> 378<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a> get(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</pre> 379<dl> 380<dt><strong>Specified by:</strong></dt> 381<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#get(java.lang.Object)" title="class or interface in java.util">get</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>></code></dd> 382<dt><strong>Overrides:</strong></dt> 383<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true#get(java.lang.Object)" title="class or interface in java.util">get</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>></code></dd> 384</dl> 385</li> 386</ul> 387<a name="put(java.lang.Object,java.lang.Object)"> 388<!-- --> 389</a><a name="put(K, V)"> 390<!-- --> 391</a> 392<ul class="blockList"> 393<li class="blockList"> 394<h4>put</h4> 395<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a> put(<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a> key, 396 <a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a> value)</pre> 397<dl> 398<dt><strong>Specified by:</strong></dt> 399<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#put(K, V)" title="class or interface in java.util">put</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>></code></dd> 400<dt><strong>Overrides:</strong></dt> 401<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#put(K, V)" title="class or interface in java.util">put</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>></code></dd> 402</dl> 403</li> 404</ul> 405<a name="remove(java.lang.Object)"> 406<!-- --> 407</a> 408<ul class="blockList"> 409<li class="blockList"> 410<h4>remove</h4> 411<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a> remove(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> key)</pre> 412<dl> 413<dt><strong>Specified by:</strong></dt> 414<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true#remove(java.lang.Object)" title="class or interface in java.util">remove</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>></code></dd> 415<dt><strong>Overrides:</strong></dt> 416<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true#remove(java.lang.Object)" title="class or interface in java.util">remove</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a><<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">K</a>,<a href="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="type parameter in LRUMap">V</a>></code></dd> 417</dl> 418</li> 419</ul> 420<a name="readResolve()"> 421<!-- --> 422</a> 423<ul class="blockListLast"> 424<li class="blockList"> 425<h4>readResolve</h4> 426<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> readResolve()</pre> 427</li> 428</ul> 429</li> 430</ul> 431</li> 432</ul> 433</div> 434</div> 435<!-- ========= END OF CLASS DATA ========= --> 436<!-- ======= START OF BOTTOM NAVBAR ====== --> 437<div class="bottomNav"><a name="navbar_bottom"> 438<!-- --> 439</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 440<!-- --> 441</a> 442<ul class="navList" title="Navigation"> 443<li><a href="../../../../../overview-summary.html">Overview</a></li> 444<li><a href="package-summary.html">Package</a></li> 445<li class="navBarCell1Rev">Class</li> 446<li><a href="class-use/LRUMap.html">Use</a></li> 447<li><a href="package-tree.html">Tree</a></li> 448<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 449<li><a href="../../../../../index-all.html">Index</a></li> 450<li><a href="../../../../../help-doc.html">Help</a></li> 451</ul> 452</div> 453<div class="subNav"> 454<ul class="navList"> 455<li><a href="../../../../../com/fasterxml/jackson/databind/util/LinkedNode.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 456<li><a href="../../../../../com/fasterxml/jackson/databind/util/Named.html" title="interface in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 457</ul> 458<ul class="navList"> 459<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/LRUMap.html" target="_top">Frames</a></li> 460<li><a href="LRUMap.html" target="_top">No Frames</a></li> 461</ul> 462<ul class="navList" id="allclasses_navbar_bottom"> 463<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 464</ul> 465<div> 466<script type="text/javascript"><!-- 467 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 468 if(window==top) { 469 allClassesLink.style.display = "block"; 470 } 471 else { 472 allClassesLink.style.display = "none"; 473 } 474 //--> 475</script> 476</div> 477<div> 478<ul class="subNavList"> 479<li>Summary: </li> 480<li><a href="#nested_classes_inherited_from_class_java.util.AbstractMap">Nested</a> | </li> 481<li><a href="#field_summary">Field</a> | </li> 482<li><a href="#constructor_summary">Constr</a> | </li> 483<li><a href="#method_summary">Method</a></li> 484</ul> 485<ul class="subNavList"> 486<li>Detail: </li> 487<li><a href="#field_detail">Field</a> | </li> 488<li><a href="#constructor_detail">Constr</a> | </li> 489<li><a href="#method_detail">Method</a></li> 490</ul> 491</div> 492<a name="skip-navbar_bottom"> 493<!-- --> 494</a></div> 495<!-- ======== END OF BOTTOM NAVBAR ======= --> 496<p class="legalCopy"><small>Copyright © 2014 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 497</body> 498</html> 499