1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_10-ea) on Sun Jul 14 20:03:21 PDT 2013 --> 6<title>Version (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="Version (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/Version.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../index-all.html">Index</a></li> 34<li><a href="../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../index.html?org/codehaus/jackson/Version.html" target="_top">Frames</a></li> 44<li><a href="Version.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li>Nested | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#field_detail">Field</a> | </li> 72<li><a href="#constructor_detail">Constr</a> | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson</div> 83<h2 title="Class Version" class="title">Class Version</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 88<li> 89<ul class="inheritance"> 90<li>org.codehaus.jackson.Version</li> 91</ul> 92</li> 93</ul> 94<div class="description"> 95<ul class="blockList"> 96<li class="blockList"> 97<dl> 98<dt>All Implemented Interfaces:</dt> 99<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a>></dd> 100</dl> 101<hr> 102<br> 103<pre>public class <span class="strong">Version</span> 104extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 105implements <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a>></pre> 106<div class="block">Object that encapsulates version information of a component, 107 and is return by <a href="../../../org/codehaus/jackson/Versioned.html#version()"><code>Versioned.version()</code></a>.</div> 108<dl><dt><span class="strong">Since:</span></dt> 109 <dd>1.6</dd></dl> 110</li> 111</ul> 112</div> 113<div class="summary"> 114<ul class="blockList"> 115<li class="blockList"> 116<!-- =========== FIELD SUMMARY =========== --> 117<ul class="blockList"> 118<li class="blockList"><a name="field_summary"> 119<!-- --> 120</a> 121<h3>Field Summary</h3> 122<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 123<caption><span>Fields</span><span class="tabEnd"> </span></caption> 124<tr> 125<th class="colFirst" scope="col">Modifier and Type</th> 126<th class="colLast" scope="col">Field and Description</th> 127</tr> 128<tr class="altColor"> 129<td class="colFirst"><code>protected int</code></td> 130<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#_majorVersion">_majorVersion</a></strong></code> </td> 131</tr> 132<tr class="rowColor"> 133<td class="colFirst"><code>protected int</code></td> 134<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#_minorVersion">_minorVersion</a></strong></code> </td> 135</tr> 136<tr class="altColor"> 137<td class="colFirst"><code>protected int</code></td> 138<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#_patchLevel">_patchLevel</a></strong></code> </td> 139</tr> 140<tr class="rowColor"> 141<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 142<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#_snapshotInfo">_snapshotInfo</a></strong></code> 143<div class="block">Additional information for snapshot versions; null for non-snapshot 144 (release) versions.</div> 145</td> 146</tr> 147</table> 148</li> 149</ul> 150<!-- ======== CONSTRUCTOR SUMMARY ======== --> 151<ul class="blockList"> 152<li class="blockList"><a name="constructor_summary"> 153<!-- --> 154</a> 155<h3>Constructor Summary</h3> 156<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 157<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 158<tr> 159<th class="colOne" scope="col">Constructor and Description</th> 160</tr> 161<tr class="altColor"> 162<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/Version.html#Version(int, int, int, java.lang.String)">Version</a></strong>(int major, 163 int minor, 164 int patchLevel, 165 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> snapshotInfo)</code> </td> 166</tr> 167</table> 168</li> 169</ul> 170<!-- ========== METHOD SUMMARY =========== --> 171<ul class="blockList"> 172<li class="blockList"><a name="method_summary"> 173<!-- --> 174</a> 175<h3>Method Summary</h3> 176<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 177<caption><span>Methods</span><span class="tabEnd"> </span></caption> 178<tr> 179<th class="colFirst" scope="col">Modifier and Type</th> 180<th class="colLast" scope="col">Method and Description</th> 181</tr> 182<tr class="altColor"> 183<td class="colFirst"><code>int</code></td> 184<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#compareTo(org.codehaus.jackson.Version)">compareTo</a></strong>(<a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a> other)</code> </td> 185</tr> 186<tr class="rowColor"> 187<td class="colFirst"><code>boolean</code></td> 188<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> </td> 189</tr> 190<tr class="altColor"> 191<td class="colFirst"><code>int</code></td> 192<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#getMajorVersion()">getMajorVersion</a></strong>()</code> </td> 193</tr> 194<tr class="rowColor"> 195<td class="colFirst"><code>int</code></td> 196<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#getMinorVersion()">getMinorVersion</a></strong>()</code> </td> 197</tr> 198<tr class="altColor"> 199<td class="colFirst"><code>int</code></td> 200<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#getPatchLevel()">getPatchLevel</a></strong>()</code> </td> 201</tr> 202<tr class="rowColor"> 203<td class="colFirst"><code>int</code></td> 204<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#hashCode()">hashCode</a></strong>()</code> </td> 205</tr> 206<tr class="altColor"> 207<td class="colFirst"><code>boolean</code></td> 208<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#isSnapshot()">isSnapshot</a></strong>()</code> </td> 209</tr> 210<tr class="rowColor"> 211<td class="colFirst"><code>boolean</code></td> 212<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#isUknownVersion()">isUknownVersion</a></strong>()</code> </td> 213</tr> 214<tr class="altColor"> 215<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 216<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#toString()">toString</a></strong>()</code> </td> 217</tr> 218<tr class="rowColor"> 219<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a></code></td> 220<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/Version.html#unknownVersion()">unknownVersion</a></strong>()</code> 221<div class="block">Method returns canonical "not known" version, which is used as version 222 in cases where actual version information is not known (instead of null).</div> 223</td> 224</tr> 225</table> 226<ul class="blockList"> 227<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 228<!-- --> 229</a> 230<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 231<code><a href="http://docs.oracle.com/javase/6/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/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 232</ul> 233</li> 234</ul> 235</li> 236</ul> 237</div> 238<div class="details"> 239<ul class="blockList"> 240<li class="blockList"> 241<!-- ============ FIELD DETAIL =========== --> 242<ul class="blockList"> 243<li class="blockList"><a name="field_detail"> 244<!-- --> 245</a> 246<h3>Field Detail</h3> 247<a name="_majorVersion"> 248<!-- --> 249</a> 250<ul class="blockList"> 251<li class="blockList"> 252<h4>_majorVersion</h4> 253<pre>protected final int _majorVersion</pre> 254</li> 255</ul> 256<a name="_minorVersion"> 257<!-- --> 258</a> 259<ul class="blockList"> 260<li class="blockList"> 261<h4>_minorVersion</h4> 262<pre>protected final int _minorVersion</pre> 263</li> 264</ul> 265<a name="_patchLevel"> 266<!-- --> 267</a> 268<ul class="blockList"> 269<li class="blockList"> 270<h4>_patchLevel</h4> 271<pre>protected final int _patchLevel</pre> 272</li> 273</ul> 274<a name="_snapshotInfo"> 275<!-- --> 276</a> 277<ul class="blockListLast"> 278<li class="blockList"> 279<h4>_snapshotInfo</h4> 280<pre>protected final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> _snapshotInfo</pre> 281<div class="block">Additional information for snapshot versions; null for non-snapshot 282 (release) versions.</div> 283</li> 284</ul> 285</li> 286</ul> 287<!-- ========= CONSTRUCTOR DETAIL ======== --> 288<ul class="blockList"> 289<li class="blockList"><a name="constructor_detail"> 290<!-- --> 291</a> 292<h3>Constructor Detail</h3> 293<a name="Version(int, int, int, java.lang.String)"> 294<!-- --> 295</a> 296<ul class="blockListLast"> 297<li class="blockList"> 298<h4>Version</h4> 299<pre>public Version(int major, 300 int minor, 301 int patchLevel, 302 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> snapshotInfo)</pre> 303</li> 304</ul> 305</li> 306</ul> 307<!-- ============ METHOD DETAIL ========== --> 308<ul class="blockList"> 309<li class="blockList"><a name="method_detail"> 310<!-- --> 311</a> 312<h3>Method Detail</h3> 313<a name="unknownVersion()"> 314<!-- --> 315</a> 316<ul class="blockList"> 317<li class="blockList"> 318<h4>unknownVersion</h4> 319<pre>public static <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a> unknownVersion()</pre> 320<div class="block">Method returns canonical "not known" version, which is used as version 321 in cases where actual version information is not known (instead of null).</div> 322</li> 323</ul> 324<a name="isUknownVersion()"> 325<!-- --> 326</a> 327<ul class="blockList"> 328<li class="blockList"> 329<h4>isUknownVersion</h4> 330<pre>public boolean isUknownVersion()</pre> 331</li> 332</ul> 333<a name="isSnapshot()"> 334<!-- --> 335</a> 336<ul class="blockList"> 337<li class="blockList"> 338<h4>isSnapshot</h4> 339<pre>public boolean isSnapshot()</pre> 340</li> 341</ul> 342<a name="getMajorVersion()"> 343<!-- --> 344</a> 345<ul class="blockList"> 346<li class="blockList"> 347<h4>getMajorVersion</h4> 348<pre>public int getMajorVersion()</pre> 349</li> 350</ul> 351<a name="getMinorVersion()"> 352<!-- --> 353</a> 354<ul class="blockList"> 355<li class="blockList"> 356<h4>getMinorVersion</h4> 357<pre>public int getMinorVersion()</pre> 358</li> 359</ul> 360<a name="getPatchLevel()"> 361<!-- --> 362</a> 363<ul class="blockList"> 364<li class="blockList"> 365<h4>getPatchLevel</h4> 366<pre>public int getPatchLevel()</pre> 367</li> 368</ul> 369<a name="toString()"> 370<!-- --> 371</a> 372<ul class="blockList"> 373<li class="blockList"> 374<h4>toString</h4> 375<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> 376<dl> 377<dt><strong>Overrides:</strong></dt> 378<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> 379</dl> 380</li> 381</ul> 382<a name="hashCode()"> 383<!-- --> 384</a> 385<ul class="blockList"> 386<li class="blockList"> 387<h4>hashCode</h4> 388<pre>public int hashCode()</pre> 389<dl> 390<dt><strong>Overrides:</strong></dt> 391<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> 392</dl> 393</li> 394</ul> 395<a name="equals(java.lang.Object)"> 396<!-- --> 397</a> 398<ul class="blockList"> 399<li class="blockList"> 400<h4>equals</h4> 401<pre>public boolean equals(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre> 402<dl> 403<dt><strong>Overrides:</strong></dt> 404<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> 405</dl> 406</li> 407</ul> 408<a name="compareTo(org.codehaus.jackson.Version)"> 409<!-- --> 410</a> 411<ul class="blockListLast"> 412<li class="blockList"> 413<h4>compareTo</h4> 414<pre>public int compareTo(<a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a> other)</pre> 415<dl> 416<dt><strong>Specified by:</strong></dt> 417<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang">compareTo</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a>></code></dd> 418</dl> 419</li> 420</ul> 421</li> 422</ul> 423</li> 424</ul> 425</div> 426</div> 427<!-- ========= END OF CLASS DATA ========= --> 428<!-- ======= START OF BOTTOM NAVBAR ====== --> 429<div class="bottomNav"><a name="navbar_bottom"> 430<!-- --> 431</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 432<!-- --> 433</a> 434<ul class="navList" title="Navigation"> 435<li><a href="../../../overview-summary.html">Overview</a></li> 436<li><a href="package-summary.html">Package</a></li> 437<li class="navBarCell1Rev">Class</li> 438<li><a href="class-use/Version.html">Use</a></li> 439<li><a href="package-tree.html">Tree</a></li> 440<li><a href="../../../deprecated-list.html">Deprecated</a></li> 441<li><a href="../../../index-all.html">Index</a></li> 442<li><a href="../../../help-doc.html">Help</a></li> 443</ul> 444</div> 445<div class="subNav"> 446<ul class="navList"> 447<li><a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 448<li><a href="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 449</ul> 450<ul class="navList"> 451<li><a href="../../../index.html?org/codehaus/jackson/Version.html" target="_top">Frames</a></li> 452<li><a href="Version.html" target="_top">No Frames</a></li> 453</ul> 454<ul class="navList" id="allclasses_navbar_bottom"> 455<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 456</ul> 457<div> 458<script type="text/javascript"><!-- 459 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 460 if(window==top) { 461 allClassesLink.style.display = "block"; 462 } 463 else { 464 allClassesLink.style.display = "none"; 465 } 466 //--> 467</script> 468</div> 469<div> 470<ul class="subNavList"> 471<li>Summary: </li> 472<li>Nested | </li> 473<li><a href="#field_summary">Field</a> | </li> 474<li><a href="#constructor_summary">Constr</a> | </li> 475<li><a href="#method_summary">Method</a></li> 476</ul> 477<ul class="subNavList"> 478<li>Detail: </li> 479<li><a href="#field_detail">Field</a> | </li> 480<li><a href="#constructor_detail">Constr</a> | </li> 481<li><a href="#method_detail">Method</a></li> 482</ul> 483</div> 484<a name="skip-navbar_bottom"> 485<!-- --> 486</a></div> 487<!-- ======== END OF BOTTOM NAVBAR ======= --> 488</body> 489</html> 490