blob: dd94d9e9f940b4940b649dcb45596c5f010bab6a [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 (version 1.7.0_55) on Wed Oct 22 07:01:19 CEST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>LazyInitializedCacheMap (Apache MINA 2.0.9 API)</title>
<meta name="date" content="2014-10-22">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="LazyInitializedCacheMap (Apache MINA 2.0.9 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/LazyInitializedCacheMap.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/mina/util/IdentityHashSet.html" title="class in org.apache.mina.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.NoopInitializer.html" title="class in org.apache.mina.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mina/util/LazyInitializedCacheMap.html" target="_top">Frames</a></li>
<li><a href="LazyInitializedCacheMap.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&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>Field&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.mina.util</div>
<h2 title="Class LazyInitializedCacheMap" class="title">Class LazyInitializedCacheMap&lt;K,V&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/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>org.apache.mina.util.LazyInitializedCacheMap&lt;K,V&gt;</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/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;K,V&gt;</dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.43">LazyInitializedCacheMap</a>&lt;K,V&gt;
extends <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;K,V&gt;</pre>
<div class="block">This map is specially useful when reads are much more frequent than writes and
if the cost of instantiating the values is high like allocating an
<a href="../../../../org/apache/mina/core/buffer/IoBuffer.html" title="class in org.apache.mina.core.buffer"><code>IoBuffer</code></a> for example.
Based on the final implementation of Memoizer written by Brian Goetz and Tim
Peierls. This implementation will return an
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> on each method that is not intended to
be called by user code for performance reasons.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>MINA 2.0.0-M2</dd>
<dt><span class="strong">Author:</span></dt>
<dd><a href="http://mina.apache.org">Apache MINA Project</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="overviewSummary" 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><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.NoopInitializer.html" title="class in org.apache.mina.util">LazyInitializedCacheMap.NoopInitializer</a></strong></code>
<div class="block">This class provides a noop <a href="../../../../org/apache/mina/util/LazyInitializer.html" title="class in org.apache.mina.util"><code>LazyInitializer</code></a> meaning it
will return the same object it received when instantiated.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_java.util.Map">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;java.util.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a>&lt;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">V</a>&gt;</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" 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><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#LazyInitializedCacheMap()">LazyInitializedCacheMap</a></strong>()</code>
<div class="block">Default constructor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#LazyInitializedCacheMap(java.util.concurrent.ConcurrentHashMap)">LazyInitializedCacheMap</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentHashMap</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializer.html" title="class in org.apache.mina.util">LazyInitializer</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&gt;&nbsp;map)</code>
<div class="block">This constructor allows to provide a fine tuned <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html?is-external=true" title="class or interface in java.util.concurrent"><code>ConcurrentHashMap</code></a>
to stick with each special case the user needs.</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#clear()">clear</a></strong>()</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#containsKey(java.lang.Object)">containsKey</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#containsValue(java.lang.Object)">containsValue</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#entrySet()">entrySet</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#get(java.lang.Object)">get</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializer.html" title="class in org.apache.mina.util">LazyInitializer</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#getValues()">getValues</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#isEmpty()">isEmpty</a></strong>()</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#keySet()">keySet</a></strong>()</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#put(K, V)">put</a></strong>(<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>&nbsp;key,
<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&nbsp;value)</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#putAll(java.util.Map)">putAll</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;? extends <a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,? extends <a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&nbsp;m)</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#putIfAbsent(K, org.apache.mina.util.LazyInitializer)">putIfAbsent</a></strong>(<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>&nbsp;key,
<a href="../../../../org/apache/mina/util/LazyInitializer.html" title="class in org.apache.mina.util">LazyInitializer</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&nbsp;value)</code>
<div class="block">If the specified key is not already associated
with a value, associate it with the given value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#remove(java.lang.Object)">remove</a></strong>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#size()">size</a></strong>()</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html#values()">values</a></strong>()</code>&nbsp;</td>
</tr>
</table>
<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/1.5.0/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/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/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/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.util.Map">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;java.util.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/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/1.5.0/docs/api/java/util/Map.html?is-external=true#hashCode()" title="class or interface in java.util">hashCode</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="LazyInitializedCacheMap()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LazyInitializedCacheMap</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.66">LazyInitializedCacheMap</a>()</pre>
<div class="block">Default constructor. Uses the default parameters to initialize its internal
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html?is-external=true" title="class or interface in java.util.concurrent"><code>ConcurrentHashMap</code></a>.</div>
</li>
</ul>
<a name="LazyInitializedCacheMap(java.util.concurrent.ConcurrentHashMap)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LazyInitializedCacheMap</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.74">LazyInitializedCacheMap</a>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentHashMap</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializer.html" title="class in org.apache.mina.util">LazyInitializer</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&gt;&nbsp;map)</pre>
<div class="block">This constructor allows to provide a fine tuned <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html?is-external=true" title="class or interface in java.util.concurrent"><code>ConcurrentHashMap</code></a>
to stick with each special case the user needs.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="get(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.81">get</a>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#get(java.lang.Object)" title="class or interface in java.util">get</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="remove(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remove</h4>
<pre>public&nbsp;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.93">remove</a>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#remove(java.lang.Object)" title="class or interface in java.util">remove</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="putIfAbsent(java.lang.Object,org.apache.mina.util.LazyInitializer)">
<!-- -->
</a><a name="putIfAbsent(K, org.apache.mina.util.LazyInitializer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putIfAbsent</h4>
<pre>public&nbsp;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.119">putIfAbsent</a>(<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>&nbsp;key,
<a href="../../../../org/apache/mina/util/LazyInitializer.html" title="class in org.apache.mina.util">LazyInitializer</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&nbsp;value)</pre>
<div class="block">If the specified key is not already associated
with a value, associate it with the given value.
This is equivalent to
<pre>
if (!map.containsKey(key))
return map.put(key, value);
else
return map.get(key);</pre>
except that the action is performed atomically.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - key with which the specified value is to be associated</dd><dd><code>value</code> - a lazy initialized value object.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the previous value associated with the specified key,
or <tt>null</tt> if there was no mapping for the key</dd></dl>
</li>
</ul>
<a name="put(java.lang.Object,java.lang.Object)">
<!-- -->
</a><a name="put(K, V)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.134">put</a>(<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>&nbsp;key,
<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&nbsp;value)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#put(K, V)" title="class or interface in java.util">put</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="containsValue(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsValue</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.147">containsValue</a>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#containsValue(java.lang.Object)" title="class or interface in java.util">containsValue</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>{@link</code> - UnsupportedOperationException} as this method would imply
performance drops.</dd></dl>
</li>
</ul>
<a name="values()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>values</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.155">values</a>()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#values()" title="class or interface in java.util">values</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>{@link</code> - UnsupportedOperationException} as this method would imply
performance drops.</dd></dl>
</li>
</ul>
<a name="entrySet()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>entrySet</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&gt;&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.163">entrySet</a>()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#entrySet()" title="class or interface in java.util">entrySet</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>{@link</code> - UnsupportedOperationException} as this method would imply
performance drops.</dd></dl>
</li>
</ul>
<a name="putAll(java.util.Map)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putAll</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.170">putAll</a>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;? extends <a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,? extends <a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&nbsp;m)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#putAll(java.util.Map)" title="class or interface in java.util">putAll</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getValues()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValues</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializer.html" title="class in org.apache.mina.util">LazyInitializer</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;&gt;&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.179">getValues</a>()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>return the values from the cache</dd></dl>
</li>
</ul>
<a name="clear()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.186">clear</a>()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#clear()" title="class or interface in java.util">clear</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="containsKey(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsKey</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.193">containsKey</a>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;key)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#containsKey(java.lang.Object)" title="class or interface in java.util">containsKey</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="isEmpty()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmpty</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.200">isEmpty</a>()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#isEmpty()" title="class or interface in java.util">isEmpty</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="keySet()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>keySet</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>&gt;&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.207">keySet</a>()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#keySet()" title="class or interface in java.util">keySet</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="size()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>size</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/mina/util/LazyInitializedCacheMap.html#line.214">size</a>()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true#size()" title="class or interface in java.util">size</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">K</a>,<a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.html" title="type parameter in LazyInitializedCacheMap">V</a>&gt;</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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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/LazyInitializedCacheMap.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/mina/util/IdentityHashSet.html" title="class in org.apache.mina.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/mina/util/LazyInitializedCacheMap.NoopInitializer.html" title="class in org.apache.mina.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mina/util/LazyInitializedCacheMap.html" target="_top">Frames</a></li>
<li><a href="LazyInitializedCacheMap.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&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>Field&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; 2004&#x2013;2014 <a href="http://mina.apache.org/">Apache MINA Project</a>. All rights reserved.</small></p>
</body>
</html>