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 Nov 05 19:39:11 PST 2019 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>EnumResolver (jackson-databind 2.10.0 API)</title> 8<meta name="date" content="2019-11-05"> 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="EnumResolver (jackson-databind 2.10.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":9,"i1":10,"i2":9,"i3":9,"i4":9,"i5":9,"i6":41,"i7":9,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10}; 23var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated 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/EnumResolver.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/util/Converter.None.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../../com/fasterxml/jackson/databind/util/EnumValues.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/EnumResolver.html" target="_top">Frames</a></li> 58<li><a href="EnumResolver.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../../allclasses-noframe.html">All 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: </li> 78<li>Nested | </li> 79<li><a href="#field.summary">Field</a> | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li><a href="#field.detail">Field</a> | </li> 86<li><a href="#constructor.detail">Constr</a> | </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.util</div> 97<h2 title="Class EnumResolver" class="title">Class EnumResolver</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.util.EnumResolver</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="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">EnumResolver</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="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">Helper class used to resolve String values (either JSON Object field 121 names or regular String values) into Java Enum instances.</div> 122<dl> 123<dt><span class="seeLabel">See Also:</span></dt> 124<dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.util.EnumResolver">Serialized Form</a></dd> 125</dl> 126</li> 127</ul> 128</div> 129<div class="summary"> 130<ul class="blockList"> 131<li class="blockList"> 132<!-- =========== FIELD SUMMARY =========== --> 133<ul class="blockList"> 134<li class="blockList"><a name="field.summary"> 135<!-- --> 136</a> 137<h3>Field Summary</h3> 138<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 139<caption><span>Fields</span><span class="tabEnd"> </span></caption> 140<tr> 141<th class="colFirst" scope="col">Modifier and Type</th> 142<th class="colLast" scope="col">Field and Description</th> 143</tr> 144<tr class="altColor"> 145<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?></code></td> 146<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#Z:Z_defaultValue">_defaultValue</a></span></code> </td> 147</tr> 148<tr class="rowColor"> 149<td class="colFirst"><code>protected <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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 150<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#Z:Z_enumClass">_enumClass</a></span></code> </td> 151</tr> 152<tr class="altColor"> 153<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[]</code></td> 154<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#Z:Z_enums">_enums</a></span></code> </td> 155</tr> 156<tr class="rowColor"> 157<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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 158<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#Z:Z_enumsById">_enumsById</a></span></code> </td> 159</tr> 160</table> 161</li> 162</ul> 163<!-- ======== CONSTRUCTOR SUMMARY ======== --> 164<ul class="blockList"> 165<li class="blockList"><a name="constructor.summary"> 166<!-- --> 167</a> 168<h3>Constructor Summary</h3> 169<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 170<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 171<tr> 172<th class="colFirst" scope="col">Modifier</th> 173<th class="colLast" scope="col">Constructor and Description</th> 174</tr> 175<tr class="altColor"> 176<td class="colFirst"><code>protected </code></td> 177<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#EnumResolver-java.lang.Class-java.lang.Enum:A-java.util.HashMap-java.lang.Enum-">EnumResolver</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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumClass, 178 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] enums, 179 <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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> map, 180 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> defaultValue)</code> </td> 181</tr> 182</table> 183</li> 184</ul> 185<!-- ========== METHOD SUMMARY =========== --> 186<ul class="blockList"> 187<li class="blockList"><a name="method.summary"> 188<!-- --> 189</a> 190<h3>Method Summary</h3> 191<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 192<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> 193<tr> 194<th class="colFirst" scope="col">Modifier and Type</th> 195<th class="colLast" scope="col">Method and Description</th> 196</tr> 197<tr id="i0" class="altColor"> 198<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 199<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructFor-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-">constructFor</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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 200 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 201<div class="block">Factory method for constructing resolver that maps from Enum.name() into 202 Enum value</div> 203</td> 204</tr> 205<tr id="i1" class="rowColor"> 206<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/CompactStringObjectMap.html" title="class in com.fasterxml.jackson.databind.util">CompactStringObjectMap</a></code></td> 207<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructLookup--">constructLookup</a></span>()</code> </td> 208</tr> 209<tr id="i2" class="altColor"> 210<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 211<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafe-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-">constructUnsafe</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><?> rawEnumCls, 212 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 213<div class="block">This method is needed because of the dynamic nature of constructing Enum 214 resolvers.</div> 215</td> 216</tr> 217<tr id="i3" class="rowColor"> 218<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 219<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafeUsingMethod-java.lang.Class-com.fasterxml.jackson.databind.introspect.AnnotatedMember-com.fasterxml.jackson.databind.AnnotationIntrospector-">constructUnsafeUsingMethod</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><?> rawEnumCls, 220 <a href="../../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMember.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMember</a> accessor, 221 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 222<div class="block">Method used when actual String serialization is indicated using @JsonValue 223 on a method.</div> 224</td> 225</tr> 226<tr id="i4" class="altColor"> 227<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 228<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafeUsingToString-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-">constructUnsafeUsingToString</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><?> rawEnumCls, 229 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 230<div class="block">Method that needs to be used instead of <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString-java.lang.Class-"><code>constructUsingToString(java.lang.Class<java.lang.Enum<?>>)</code></a> 231 if static type of enum is not known.</div> 232</td> 233</tr> 234<tr id="i5" class="rowColor"> 235<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 236<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingMethod-java.lang.Class-com.fasterxml.jackson.databind.introspect.AnnotatedMember-com.fasterxml.jackson.databind.AnnotationIntrospector-">constructUsingMethod</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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 237 <a href="../../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMember.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMember</a> accessor, 238 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> </td> 239</tr> 240<tr id="i6" class="altColor"> 241<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 242<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString-java.lang.Class-">constructUsingToString</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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls)</code> 243<div class="block"><span class="deprecatedLabel">Deprecated.</span> 244<div class="block"><span class="deprecationComment">Since 2.8, use <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-"><code>constructUsingToString(Class, AnnotationIntrospector)</code></a> instead</span></div> 245</div> 246</td> 247</tr> 248<tr id="i7" class="rowColor"> 249<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 250<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-">constructUsingToString</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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 251 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 252<div class="block">Factory method for constructing resolver that maps from Enum.toString() into 253 Enum value</div> 254</td> 255</tr> 256<tr id="i8" class="altColor"> 257<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?></code></td> 258<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#findEnum-java.lang.String-">findEnum</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> </td> 259</tr> 260<tr id="i9" class="rowColor"> 261<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?></code></td> 262<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getDefaultValue--">getDefaultValue</a></span>()</code> </td> 263</tr> 264<tr id="i10" class="altColor"> 265<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?></code></td> 266<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnum-int-">getEnum</a></span>(int index)</code> </td> 267</tr> 268<tr id="i11" class="rowColor"> 269<td class="colFirst"><code><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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 270<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnumClass--">getEnumClass</a></span>()</code> </td> 271</tr> 272<tr id="i12" class="altColor"> 273<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> 274<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnumIds--">getEnumIds</a></span>()</code> </td> 275</tr> 276<tr id="i13" class="rowColor"> 277<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 278<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnums--">getEnums</a></span>()</code> </td> 279</tr> 280<tr id="i14" class="altColor"> 281<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[]</code></td> 282<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getRawEnums--">getRawEnums</a></span>()</code> </td> 283</tr> 284<tr id="i15" class="rowColor"> 285<td class="colFirst"><code>int</code></td> 286<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#lastValidIndex--">lastValidIndex</a></span>()</code> </td> 287</tr> 288</table> 289<ul class="blockList"> 290<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 291<!-- --> 292</a> 293<h3>Methods inherited from class 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> 294<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> 295</ul> 296</li> 297</ul> 298</li> 299</ul> 300</div> 301<div class="details"> 302<ul class="blockList"> 303<li class="blockList"> 304<!-- ============ FIELD DETAIL =========== --> 305<ul class="blockList"> 306<li class="blockList"><a name="field.detail"> 307<!-- --> 308</a> 309<h3>Field Detail</h3> 310<a name="Z:Z_enumClass"> 311<!-- --> 312</a> 313<ul class="blockList"> 314<li class="blockList"> 315<h4>_enumClass</h4> 316<pre>protected final <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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> _enumClass</pre> 317</li> 318</ul> 319<a name="Z:Z_enums"> 320<!-- --> 321</a> 322<ul class="blockList"> 323<li class="blockList"> 324<h4>_enums</h4> 325<pre>protected final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] _enums</pre> 326</li> 327</ul> 328<a name="Z:Z_enumsById"> 329<!-- --> 330</a> 331<ul class="blockList"> 332<li class="blockList"> 333<h4>_enumsById</h4> 334<pre>protected final <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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> _enumsById</pre> 335</li> 336</ul> 337<a name="Z:Z_defaultValue"> 338<!-- --> 339</a> 340<ul class="blockListLast"> 341<li class="blockList"> 342<h4>_defaultValue</h4> 343<pre>protected final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> _defaultValue</pre> 344</li> 345</ul> 346</li> 347</ul> 348<!-- ========= CONSTRUCTOR DETAIL ======== --> 349<ul class="blockList"> 350<li class="blockList"><a name="constructor.detail"> 351<!-- --> 352</a> 353<h3>Constructor Detail</h3> 354<a name="EnumResolver-java.lang.Class-java.lang.Enum:A-java.util.HashMap-java.lang.Enum-"> 355<!-- --> 356</a> 357<ul class="blockListLast"> 358<li class="blockList"> 359<h4>EnumResolver</h4> 360<pre>protected EnumResolver(<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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumClass, 361 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] enums, 362 <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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> map, 363 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> defaultValue)</pre> 364</li> 365</ul> 366</li> 367</ul> 368<!-- ============ METHOD DETAIL ========== --> 369<ul class="blockList"> 370<li class="blockList"><a name="method.detail"> 371<!-- --> 372</a> 373<h3>Method Detail</h3> 374<a name="constructFor-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-"> 375<!-- --> 376</a> 377<ul class="blockList"> 378<li class="blockList"> 379<h4>constructFor</h4> 380<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructFor(<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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 381 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 382<div class="block">Factory method for constructing resolver that maps from Enum.name() into 383 Enum value</div> 384</li> 385</ul> 386<a name="constructUsingToString-java.lang.Class-"> 387<!-- --> 388</a> 389<ul class="blockList"> 390<li class="blockList"> 391<h4>constructUsingToString</h4> 392<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 393public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUsingToString(<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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls)</pre> 394<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since 2.8, use <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-"><code>constructUsingToString(Class, AnnotationIntrospector)</code></a> instead</span></div> 395</li> 396</ul> 397<a name="constructUsingToString-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-"> 398<!-- --> 399</a> 400<ul class="blockList"> 401<li class="blockList"> 402<h4>constructUsingToString</h4> 403<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUsingToString(<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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 404 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 405<div class="block">Factory method for constructing resolver that maps from Enum.toString() into 406 Enum value</div> 407<dl> 408<dt><span class="simpleTagLabel">Since:</span></dt> 409<dd>2.8</dd> 410</dl> 411</li> 412</ul> 413<a name="constructUsingMethod-java.lang.Class-com.fasterxml.jackson.databind.introspect.AnnotatedMember-com.fasterxml.jackson.databind.AnnotationIntrospector-"> 414<!-- --> 415</a> 416<ul class="blockList"> 417<li class="blockList"> 418<h4>constructUsingMethod</h4> 419<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUsingMethod(<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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 420 <a href="../../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMember.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMember</a> accessor, 421 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 422<dl> 423<dt><span class="simpleTagLabel">Since:</span></dt> 424<dd>2.9</dd> 425</dl> 426</li> 427</ul> 428<a name="constructUnsafe-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-"> 429<!-- --> 430</a> 431<ul class="blockList"> 432<li class="blockList"> 433<h4>constructUnsafe</h4> 434<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUnsafe(<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><?> rawEnumCls, 435 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 436<div class="block">This method is needed because of the dynamic nature of constructing Enum 437 resolvers.</div> 438</li> 439</ul> 440<a name="constructUnsafeUsingToString-java.lang.Class-com.fasterxml.jackson.databind.AnnotationIntrospector-"> 441<!-- --> 442</a> 443<ul class="blockList"> 444<li class="blockList"> 445<h4>constructUnsafeUsingToString</h4> 446<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUnsafeUsingToString(<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><?> rawEnumCls, 447 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 448<div class="block">Method that needs to be used instead of <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString-java.lang.Class-"><code>constructUsingToString(java.lang.Class<java.lang.Enum<?>>)</code></a> 449 if static type of enum is not known.</div> 450<dl> 451<dt><span class="simpleTagLabel">Since:</span></dt> 452<dd>2.8</dd> 453</dl> 454</li> 455</ul> 456<a name="constructUnsafeUsingMethod-java.lang.Class-com.fasterxml.jackson.databind.introspect.AnnotatedMember-com.fasterxml.jackson.databind.AnnotationIntrospector-"> 457<!-- --> 458</a> 459<ul class="blockList"> 460<li class="blockList"> 461<h4>constructUnsafeUsingMethod</h4> 462<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUnsafeUsingMethod(<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><?> rawEnumCls, 463 <a href="../../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMember.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMember</a> accessor, 464 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 465<div class="block">Method used when actual String serialization is indicated using @JsonValue 466 on a method.</div> 467<dl> 468<dt><span class="simpleTagLabel">Since:</span></dt> 469<dd>2.9</dd> 470</dl> 471</li> 472</ul> 473<a name="constructLookup--"> 474<!-- --> 475</a> 476<ul class="blockList"> 477<li class="blockList"> 478<h4>constructLookup</h4> 479<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/CompactStringObjectMap.html" title="class in com.fasterxml.jackson.databind.util">CompactStringObjectMap</a> constructLookup()</pre> 480</li> 481</ul> 482<a name="findEnum-java.lang.String-"> 483<!-- --> 484</a> 485<ul class="blockList"> 486<li class="blockList"> 487<h4>findEnum</h4> 488<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> findEnum(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> 489</li> 490</ul> 491<a name="getEnum-int-"> 492<!-- --> 493</a> 494<ul class="blockList"> 495<li class="blockList"> 496<h4>getEnum</h4> 497<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> getEnum(int index)</pre> 498</li> 499</ul> 500<a name="getDefaultValue--"> 501<!-- --> 502</a> 503<ul class="blockList"> 504<li class="blockList"> 505<h4>getDefaultValue</h4> 506<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> getDefaultValue()</pre> 507</li> 508</ul> 509<a name="getRawEnums--"> 510<!-- --> 511</a> 512<ul class="blockList"> 513<li class="blockList"> 514<h4>getRawEnums</h4> 515<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] getRawEnums()</pre> 516</li> 517</ul> 518<a name="getEnums--"> 519<!-- --> 520</a> 521<ul class="blockList"> 522<li class="blockList"> 523<h4>getEnums</h4> 524<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> getEnums()</pre> 525</li> 526</ul> 527<a name="getEnumIds--"> 528<!-- --> 529</a> 530<ul class="blockList"> 531<li class="blockList"> 532<h4>getEnumIds</h4> 533<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> getEnumIds()</pre> 534<dl> 535<dt><span class="simpleTagLabel">Since:</span></dt> 536<dd>2.7.3</dd> 537</dl> 538</li> 539</ul> 540<a name="getEnumClass--"> 541<!-- --> 542</a> 543<ul class="blockList"> 544<li class="blockList"> 545<h4>getEnumClass</h4> 546<pre>public <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><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> getEnumClass()</pre> 547</li> 548</ul> 549<a name="lastValidIndex--"> 550<!-- --> 551</a> 552<ul class="blockListLast"> 553<li class="blockList"> 554<h4>lastValidIndex</h4> 555<pre>public int lastValidIndex()</pre> 556</li> 557</ul> 558</li> 559</ul> 560</li> 561</ul> 562</div> 563</div> 564<!-- ========= END OF CLASS DATA ========= --> 565<!-- ======= START OF BOTTOM NAVBAR ====== --> 566<div class="bottomNav"><a name="navbar.bottom"> 567<!-- --> 568</a> 569<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 570<a name="navbar.bottom.firstrow"> 571<!-- --> 572</a> 573<ul class="navList" title="Navigation"> 574<li><a href="../../../../../overview-summary.html">Overview</a></li> 575<li><a href="package-summary.html">Package</a></li> 576<li class="navBarCell1Rev">Class</li> 577<li><a href="class-use/EnumResolver.html">Use</a></li> 578<li><a href="package-tree.html">Tree</a></li> 579<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 580<li><a href="../../../../../index-all.html">Index</a></li> 581<li><a href="../../../../../help-doc.html">Help</a></li> 582</ul> 583</div> 584<div class="subNav"> 585<ul class="navList"> 586<li><a href="../../../../../com/fasterxml/jackson/databind/util/Converter.None.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Prev Class</span></a></li> 587<li><a href="../../../../../com/fasterxml/jackson/databind/util/EnumValues.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next Class</span></a></li> 588</ul> 589<ul class="navList"> 590<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/EnumResolver.html" target="_top">Frames</a></li> 591<li><a href="EnumResolver.html" target="_top">No Frames</a></li> 592</ul> 593<ul class="navList" id="allclasses_navbar_bottom"> 594<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 595</ul> 596<div> 597<script type="text/javascript"><!-- 598 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 599 if(window==top) { 600 allClassesLink.style.display = "block"; 601 } 602 else { 603 allClassesLink.style.display = "none"; 604 } 605 //--> 606</script> 607</div> 608<div> 609<ul class="subNavList"> 610<li>Summary: </li> 611<li>Nested | </li> 612<li><a href="#field.summary">Field</a> | </li> 613<li><a href="#constructor.summary">Constr</a> | </li> 614<li><a href="#method.summary">Method</a></li> 615</ul> 616<ul class="subNavList"> 617<li>Detail: </li> 618<li><a href="#field.detail">Field</a> | </li> 619<li><a href="#constructor.detail">Constr</a> | </li> 620<li><a href="#method.detail">Method</a></li> 621</ul> 622</div> 623<a name="skip.navbar.bottom"> 624<!-- --> 625</a></div> 626<!-- ======== END OF BOTTOM NAVBAR ======= --> 627<p class="legalCopy"><small>Copyright © 2008–2019 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 628</body> 629</html> 630