• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 (1.8.0_162) on Tue Mar 24 11:44:39 PDT 2020 -->
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<title>SimpleKeyDeserializers (jackson-databind 2.11.0.rc1 API)</title>
8<meta name="date" content="2020-03-24">
9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
10<script type="text/javascript" src="../../../../../script.js"></script>
11</head>
12<body>
13<script type="text/javascript"><!--
14    try {
15        if (location.href.indexOf('is-external=true') == -1) {
16            parent.document.title="SimpleKeyDeserializers (jackson-databind 2.11.0.rc1 API)";
17        }
18    }
19    catch(err) {
20    }
21//-->
22var methods = {"i0":10,"i1":10};
23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
24var altColor = "altColor";
25var rowColor = "rowColor";
26var tableTab = "tableTab";
27var activeTableTab = "activeTableTab";
28</script>
29<noscript>
30<div>JavaScript is disabled on your browser.</div>
31</noscript>
32<!-- ========= START OF TOP NAVBAR ======= -->
33<div class="topNav"><a name="navbar.top">
34<!--   -->
35</a>
36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
37<a name="navbar.top.firstrow">
38<!--   -->
39</a>
40<ul class="navList" title="Navigation">
41<li><a href="../../../../../overview-summary.html">Overview</a></li>
42<li><a href="package-summary.html">Package</a></li>
43<li class="navBarCell1Rev">Class</li>
44<li><a href="class-use/SimpleKeyDeserializers.html">Use</a></li>
45<li><a href="package-tree.html">Tree</a></li>
46<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
47<li><a href="../../../../../index-all.html">Index</a></li>
48<li><a href="../../../../../help-doc.html">Help</a></li>
49</ul>
50</div>
51<div class="subNav">
52<ul class="navList">
53<li><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
54<li><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
55</ul>
56<ul class="navList">
57<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" target="_top">Frames</a></li>
58<li><a href="SimpleKeyDeserializers.html" target="_top">No&nbsp;Frames</a></li>
59</ul>
60<ul class="navList" id="allclasses_navbar_top">
61<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
62</ul>
63<div>
64<script type="text/javascript"><!--
65  allClassesLink = document.getElementById("allclasses_navbar_top");
66  if(window==top) {
67    allClassesLink.style.display = "block";
68  }
69  else {
70    allClassesLink.style.display = "none";
71  }
72  //-->
73</script>
74</div>
75<div>
76<ul class="subNavList">
77<li>Summary:&nbsp;</li>
78<li>Nested&nbsp;|&nbsp;</li>
79<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
80<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
81<li><a href="#method.summary">Method</a></li>
82</ul>
83<ul class="subNavList">
84<li>Detail:&nbsp;</li>
85<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
86<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
87<li><a href="#method.detail">Method</a></li>
88</ul>
89</div>
90<a name="skip.navbar.top">
91<!--   -->
92</a></div>
93<!-- ========= END OF TOP NAVBAR ========= -->
94<!-- ======== START OF CLASS DATA ======== -->
95<div class="header">
96<div class="subTitle">com.fasterxml.jackson.databind.module</div>
97<h2 title="Class SimpleKeyDeserializers" class="title">Class SimpleKeyDeserializers</h2>
98</div>
99<div class="contentContainer">
100<ul class="inheritance">
101<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
102<li>
103<ul class="inheritance">
104<li>com.fasterxml.jackson.databind.module.SimpleKeyDeserializers</li>
105</ul>
106</li>
107</ul>
108<div class="description">
109<ul class="blockList">
110<li class="blockList">
111<dl>
112<dt>All Implemented Interfaces:</dt>
113<dd><a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
114</dl>
115<hr>
116<br>
117<pre>public class <span class="typeNameLabel">SimpleKeyDeserializers</span>
118extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
119implements <a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
120<div class="block">Simple implementation <a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser"><code>KeyDeserializers</code></a> which allows registration of
121 deserializers based on raw (type erased class).
122 It can work well for basic bean and scalar type deserializers, but is not
123 a good fit for handling generic types (like <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>s and <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a>s
124 or array types).
125<p>
126 Unlike <a href="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module"><code>SimpleSerializers</code></a>, this class does not currently support generic mappings;
127 all mappings must be to exact declared deserialization type.</div>
128<dl>
129<dt><span class="seeLabel">See Also:</span></dt>
130<dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.module.SimpleKeyDeserializers">Serialized Form</a></dd>
131</dl>
132</li>
133</ul>
134</div>
135<div class="summary">
136<ul class="blockList">
137<li class="blockList">
138<!-- =========== FIELD SUMMARY =========== -->
139<ul class="blockList">
140<li class="blockList"><a name="field.summary">
141<!--   -->
142</a>
143<h3>Field Summary</h3>
144<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
145<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
146<tr>
147<th class="colFirst" scope="col">Modifier and Type</th>
148<th class="colLast" scope="col">Field and Description</th>
149</tr>
150<tr class="altColor">
151<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="../../../../../com/fasterxml/jackson/databind/type/ClassKey.html" title="class in com.fasterxml.jackson.databind.type">ClassKey</a>,<a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a>&gt;</code></td>
152<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#Z:Z_classMappings">_classMappings</a></span></code>&nbsp;</td>
153</tr>
154</table>
155</li>
156</ul>
157<!-- ======== CONSTRUCTOR SUMMARY ======== -->
158<ul class="blockList">
159<li class="blockList"><a name="constructor.summary">
160<!--   -->
161</a>
162<h3>Constructor Summary</h3>
163<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
164<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
165<tr>
166<th class="colOne" scope="col">Constructor and Description</th>
167</tr>
168<tr class="altColor">
169<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#SimpleKeyDeserializers--">SimpleKeyDeserializers</a></span>()</code>&nbsp;</td>
170</tr>
171</table>
172</li>
173</ul>
174<!-- ========== METHOD SUMMARY =========== -->
175<ul class="blockList">
176<li class="blockList"><a name="method.summary">
177<!--   -->
178</a>
179<h3>Method Summary</h3>
180<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
181<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
182<tr>
183<th class="colFirst" scope="col">Modifier and Type</th>
184<th class="colLast" scope="col">Method and Description</th>
185</tr>
186<tr id="i0" class="altColor">
187<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</a></code></td>
188<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#addDeserializer-java.lang.Class-com.fasterxml.jackson.databind.KeyDeserializer-">addDeserializer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;forClass,
189               <a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a>&nbsp;deser)</code>&nbsp;</td>
190</tr>
191<tr id="i1" class="rowColor">
192<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a></code></td>
193<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#findKeyDeserializer-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.databind.DeserializationConfig-com.fasterxml.jackson.databind.BeanDescription-">findKeyDeserializer</a></span>(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;type,
194                   <a href="../../../../../com/fasterxml/jackson/databind/DeserializationConfig.html" title="class in com.fasterxml.jackson.databind">DeserializationConfig</a>&nbsp;config,
195                   <a href="../../../../../com/fasterxml/jackson/databind/BeanDescription.html" title="class in com.fasterxml.jackson.databind">BeanDescription</a>&nbsp;beanDesc)</code>&nbsp;</td>
196</tr>
197</table>
198<ul class="blockList">
199<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
200<!--   -->
201</a>
202<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
203<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <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">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
204</ul>
205</li>
206</ul>
207</li>
208</ul>
209</div>
210<div class="details">
211<ul class="blockList">
212<li class="blockList">
213<!-- ============ FIELD DETAIL =========== -->
214<ul class="blockList">
215<li class="blockList"><a name="field.detail">
216<!--   -->
217</a>
218<h3>Field Detail</h3>
219<a name="Z:Z_classMappings">
220<!--   -->
221</a>
222<ul class="blockListLast">
223<li class="blockList">
224<h4>_classMappings</h4>
225<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a>&lt;<a href="../../../../../com/fasterxml/jackson/databind/type/ClassKey.html" title="class in com.fasterxml.jackson.databind.type">ClassKey</a>,<a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a>&gt; _classMappings</pre>
226</li>
227</ul>
228</li>
229</ul>
230<!-- ========= CONSTRUCTOR DETAIL ======== -->
231<ul class="blockList">
232<li class="blockList"><a name="constructor.detail">
233<!--   -->
234</a>
235<h3>Constructor Detail</h3>
236<a name="SimpleKeyDeserializers--">
237<!--   -->
238</a>
239<ul class="blockListLast">
240<li class="blockList">
241<h4>SimpleKeyDeserializers</h4>
242<pre>public&nbsp;SimpleKeyDeserializers()</pre>
243</li>
244</ul>
245</li>
246</ul>
247<!-- ============ METHOD DETAIL ========== -->
248<ul class="blockList">
249<li class="blockList"><a name="method.detail">
250<!--   -->
251</a>
252<h3>Method Detail</h3>
253<a name="addDeserializer-java.lang.Class-com.fasterxml.jackson.databind.KeyDeserializer-">
254<!--   -->
255</a>
256<ul class="blockList">
257<li class="blockList">
258<h4>addDeserializer</h4>
259<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</a>&nbsp;addDeserializer(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;forClass,
260                                              <a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a>&nbsp;deser)</pre>
261</li>
262</ul>
263<a name="findKeyDeserializer-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.databind.DeserializationConfig-com.fasterxml.jackson.databind.BeanDescription-">
264<!--   -->
265</a>
266<ul class="blockListLast">
267<li class="blockList">
268<h4>findKeyDeserializer</h4>
269<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a>&nbsp;findKeyDeserializer(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;type,
270                                           <a href="../../../../../com/fasterxml/jackson/databind/DeserializationConfig.html" title="class in com.fasterxml.jackson.databind">DeserializationConfig</a>&nbsp;config,
271                                           <a href="../../../../../com/fasterxml/jackson/databind/BeanDescription.html" title="class in com.fasterxml.jackson.databind">BeanDescription</a>&nbsp;beanDesc)</pre>
272<dl>
273<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
274<dd><code><a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html#findKeyDeserializer-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.databind.DeserializationConfig-com.fasterxml.jackson.databind.BeanDescription-">findKeyDeserializer</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a></code></dd>
275</dl>
276</li>
277</ul>
278</li>
279</ul>
280</li>
281</ul>
282</div>
283</div>
284<!-- ========= END OF CLASS DATA ========= -->
285<!-- ======= START OF BOTTOM NAVBAR ====== -->
286<div class="bottomNav"><a name="navbar.bottom">
287<!--   -->
288</a>
289<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
290<a name="navbar.bottom.firstrow">
291<!--   -->
292</a>
293<ul class="navList" title="Navigation">
294<li><a href="../../../../../overview-summary.html">Overview</a></li>
295<li><a href="package-summary.html">Package</a></li>
296<li class="navBarCell1Rev">Class</li>
297<li><a href="class-use/SimpleKeyDeserializers.html">Use</a></li>
298<li><a href="package-tree.html">Tree</a></li>
299<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
300<li><a href="../../../../../index-all.html">Index</a></li>
301<li><a href="../../../../../help-doc.html">Help</a></li>
302</ul>
303</div>
304<div class="subNav">
305<ul class="navList">
306<li><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
307<li><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
308</ul>
309<ul class="navList">
310<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" target="_top">Frames</a></li>
311<li><a href="SimpleKeyDeserializers.html" target="_top">No&nbsp;Frames</a></li>
312</ul>
313<ul class="navList" id="allclasses_navbar_bottom">
314<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
315</ul>
316<div>
317<script type="text/javascript"><!--
318  allClassesLink = document.getElementById("allclasses_navbar_bottom");
319  if(window==top) {
320    allClassesLink.style.display = "block";
321  }
322  else {
323    allClassesLink.style.display = "none";
324  }
325  //-->
326</script>
327</div>
328<div>
329<ul class="subNavList">
330<li>Summary:&nbsp;</li>
331<li>Nested&nbsp;|&nbsp;</li>
332<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
333<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
334<li><a href="#method.summary">Method</a></li>
335</ul>
336<ul class="subNavList">
337<li>Detail:&nbsp;</li>
338<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
339<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
340<li><a href="#method.detail">Method</a></li>
341</ul>
342</div>
343<a name="skip.navbar.bottom">
344<!--   -->
345</a></div>
346<!-- ======== END OF BOTTOM NAVBAR ======= -->
347<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p>
348</body>
349</html>
350