commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r882935 [34/37] - in /websites/production/commons/content/proper/commons-lang: ./ apidocs/ apidocs/org/apache/commons/lang3/ apidocs/org/apache/commons/lang3/reflect/ apidocs/org/apache/commons/lang3/time/ apidocs/src-html/org/apache/common...
Date Thu, 17 Oct 2013 06:18:48 GMT
Modified: websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/BooleanUtils.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/BooleanUtils.html (original)
+++ websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/BooleanUtils.html Thu Oct 17 06:18:45 2013
@@ -37,7 +37,7 @@
 <a class="jxr_linenumber" name="27" href="#27">27</a>  <em class="jxr_javadoccomment"> *</em>
 <a class="jxr_linenumber" name="28" href="#28">28</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;#ThreadSafe#&lt;/p&gt;</em>
 <a class="jxr_linenumber" name="29" href="#29">29</a>  <em class="jxr_javadoccomment"> * @since 2.0</em>
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <em class="jxr_javadoccomment"> * @version $Id: BooleanUtils.java 1488041 2013-05-30 22:44:47Z sebb $</em>
+<a class="jxr_linenumber" name="30" href="#30">30</a>  <em class="jxr_javadoccomment"> * @version $Id: BooleanUtils.java 1532491 2013-10-15 19:09:31Z britter $</em>
 <a class="jxr_linenumber" name="31" href="#31">31</a>  <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/lang3/BooleanUtils.html">BooleanUtils</a> {
 <a class="jxr_linenumber" name="33" href="#33">33</a>  
@@ -151,956 +151,1023 @@
 <a class="jxr_linenumber" name="141" href="#141">141</a>         <strong class="jxr_keyword">return</strong> !isFalse(bool);
 <a class="jxr_linenumber" name="142" href="#142">142</a>     }
 <a class="jxr_linenumber" name="143" href="#143">143</a> 
-<a class="jxr_linenumber" name="144" href="#144">144</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="145" href="#145">145</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="146" href="#146">146</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a Boolean to a boolean handling {@code null}</em>
-<a class="jxr_linenumber" name="147" href="#147">147</a> <em class="jxr_javadoccomment">     * by returning {@code false}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="148" href="#148">148</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="149" href="#149">149</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="150" href="#150">150</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Boolean.TRUE)  = true</em>
-<a class="jxr_linenumber" name="151" href="#151">151</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Boolean.FALSE) = false</em>
-<a class="jxr_linenumber" name="152" href="#152">152</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(null)          = false</em>
-<a class="jxr_linenumber" name="153" href="#153">153</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="154" href="#154">154</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="155" href="#155">155</a> <em class="jxr_javadoccomment">     * @param bool  the boolean to convert</em>
-<a class="jxr_linenumber" name="156" href="#156">156</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}, {@code null} returns {@code false}</em>
-<a class="jxr_linenumber" name="157" href="#157">157</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="158" href="#158">158</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> Boolean bool) {
-<a class="jxr_linenumber" name="159" href="#159">159</a>         <strong class="jxr_keyword">return</strong> bool != <strong class="jxr_keyword">null</strong> &amp;&amp; bool.booleanValue();
-<a class="jxr_linenumber" name="160" href="#160">160</a>     }
-<a class="jxr_linenumber" name="161" href="#161">161</a> 
-<a class="jxr_linenumber" name="162" href="#162">162</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="163" href="#163">163</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a Boolean to a boolean handling {@code null}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="164" href="#164">164</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="165" href="#165">165</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="166" href="#166">166</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanDefaultIfNull(Boolean.TRUE, false) = true</em>
-<a class="jxr_linenumber" name="167" href="#167">167</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanDefaultIfNull(Boolean.FALSE, true) = false</em>
-<a class="jxr_linenumber" name="168" href="#168">168</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanDefaultIfNull(null, true)          = true</em>
-<a class="jxr_linenumber" name="169" href="#169">169</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="170" href="#170">170</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="171" href="#171">171</a> <em class="jxr_javadoccomment">     * @param bool  the boolean to convert</em>
-<a class="jxr_linenumber" name="172" href="#172">172</a> <em class="jxr_javadoccomment">     * @param valueIfNull  the boolean value to return if {@code null}</em>
-<a class="jxr_linenumber" name="173" href="#173">173</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}</em>
-<a class="jxr_linenumber" name="174" href="#174">174</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="175" href="#175">175</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBooleanDefaultIfNull(<strong class="jxr_keyword">final</strong> Boolean bool, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> valueIfNull) {
-<a class="jxr_linenumber" name="176" href="#176">176</a>         <strong class="jxr_keyword">if</strong> (bool == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="177" href="#177">177</a>             <strong class="jxr_keyword">return</strong> valueIfNull;
-<a class="jxr_linenumber" name="178" href="#178">178</a>         }
-<a class="jxr_linenumber" name="179" href="#179">179</a>         <strong class="jxr_keyword">return</strong> bool.booleanValue();
-<a class="jxr_linenumber" name="180" href="#180">180</a>     }
-<a class="jxr_linenumber" name="181" href="#181">181</a> 
-<a class="jxr_linenumber" name="182" href="#182">182</a>     <em class="jxr_comment">// Integer to Boolean methods</em>
-<a class="jxr_linenumber" name="183" href="#183">183</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="184" href="#184">184</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="185" href="#185">185</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a boolean using the convention that {@code zero}</em>
-<a class="jxr_linenumber" name="186" href="#186">186</a> <em class="jxr_javadoccomment">     * is {@code false}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="187" href="#187">187</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="188" href="#188">188</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="189" href="#189">189</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(0) = false</em>
-<a class="jxr_linenumber" name="190" href="#190">190</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(1) = true</em>
-<a class="jxr_linenumber" name="191" href="#191">191</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2) = true</em>
-<a class="jxr_linenumber" name="192" href="#192">192</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="193" href="#193">193</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="194" href="#194">194</a> <em class="jxr_javadoccomment">     * @param value  the int to convert</em>
-<a class="jxr_linenumber" name="195" href="#195">195</a> <em class="jxr_javadoccomment">     * @return {@code true} if non-zero, {@code false}</em>
-<a class="jxr_linenumber" name="196" href="#196">196</a> <em class="jxr_javadoccomment">     *  if zero</em>
-<a class="jxr_linenumber" name="197" href="#197">197</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="198" href="#198">198</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value) {
-<a class="jxr_linenumber" name="199" href="#199">199</a>         <strong class="jxr_keyword">return</strong> value != 0;
-<a class="jxr_linenumber" name="200" href="#200">200</a>     }
-<a class="jxr_linenumber" name="201" href="#201">201</a> 
-<a class="jxr_linenumber" name="202" href="#202">202</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="203" href="#203">203</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a Boolean using the convention that {@code zero}</em>
-<a class="jxr_linenumber" name="204" href="#204">204</a> <em class="jxr_javadoccomment">     * is {@code false}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="205" href="#205">205</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="206" href="#206">206</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="207" href="#207">207</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(0) = Boolean.FALSE</em>
-<a class="jxr_linenumber" name="208" href="#208">208</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(1) = Boolean.TRUE</em>
-<a class="jxr_linenumber" name="209" href="#209">209</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2) = Boolean.TRUE</em>
-<a class="jxr_linenumber" name="210" href="#210">210</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="211" href="#211">211</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="212" href="#212">212</a> <em class="jxr_javadoccomment">     * @param value  the int to convert</em>
-<a class="jxr_linenumber" name="213" href="#213">213</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE if non-zero, Boolean.FALSE if zero,</em>
-<a class="jxr_linenumber" name="214" href="#214">214</a> <em class="jxr_javadoccomment">     *  {@code null} if {@code null}</em>
-<a class="jxr_linenumber" name="215" href="#215">215</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="216" href="#216">216</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value) {
-<a class="jxr_linenumber" name="217" href="#217">217</a>         <strong class="jxr_keyword">return</strong> value == 0 ? Boolean.FALSE : Boolean.TRUE;
+<a class="jxr_linenumber" name="144" href="#144">144</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="145" href="#145">145</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Checks if exactly one of the given booleans is true.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="146" href="#146">146</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="147" href="#147">147</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="148" href="#148">148</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(true, true)   = false</em>
+<a class="jxr_linenumber" name="149" href="#149">149</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(false, false) = false</em>
+<a class="jxr_linenumber" name="150" href="#150">150</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(true, false)  = true</em>
+<a class="jxr_linenumber" name="151" href="#151">151</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(true, true)   = false</em>
+<a class="jxr_linenumber" name="152" href="#152">152</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(false, false) = false</em>
+<a class="jxr_linenumber" name="153" href="#153">153</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(true, false)  = true</em>
+<a class="jxr_linenumber" name="154" href="#154">154</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="155" href="#155">155</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="156" href="#156">156</a> <em class="jxr_javadoccomment">     * @param array  an array of {@code boolean}s</em>
+<a class="jxr_linenumber" name="157" href="#157">157</a> <em class="jxr_javadoccomment">     * @return {@code true} if the array containes the value true only once.</em>
+<a class="jxr_linenumber" name="158" href="#158">158</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code array} is {@code null}</em>
+<a class="jxr_linenumber" name="159" href="#159">159</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code array} is empty.</em>
+<a class="jxr_linenumber" name="160" href="#160">160</a> <em class="jxr_javadoccomment">     * @since 3.2</em>
+<a class="jxr_linenumber" name="161" href="#161">161</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="162" href="#162">162</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> isOneTrue(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong>... array) {
+<a class="jxr_linenumber" name="163" href="#163">163</a>         <em class="jxr_comment">// Validates input</em>
+<a class="jxr_linenumber" name="164" href="#164">164</a>         <strong class="jxr_keyword">if</strong> (array == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="165" href="#165">165</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Array must not be null"</span>);
+<a class="jxr_linenumber" name="166" href="#166">166</a>         }
+<a class="jxr_linenumber" name="167" href="#167">167</a>         <strong class="jxr_keyword">if</strong> (array.length == 0) {
+<a class="jxr_linenumber" name="168" href="#168">168</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Array is empty"</span>);
+<a class="jxr_linenumber" name="169" href="#169">169</a>         }
+<a class="jxr_linenumber" name="170" href="#170">170</a> 
+<a class="jxr_linenumber" name="171" href="#171">171</a>         <em class="jxr_comment">// Loops through array, comparing each item</em>
+<a class="jxr_linenumber" name="172" href="#172">172</a>         <strong class="jxr_keyword">int</strong> trueCount = 0;
+<a class="jxr_linenumber" name="173" href="#173">173</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> element : array) {
+<a class="jxr_linenumber" name="174" href="#174">174</a>             <em class="jxr_comment">// If item is true, and trueCount is &lt; 1, increments count</em>
+<a class="jxr_linenumber" name="175" href="#175">175</a>             <em class="jxr_comment">// Else, isOneTrue fails</em>
+<a class="jxr_linenumber" name="176" href="#176">176</a>             <strong class="jxr_keyword">if</strong> (element) {
+<a class="jxr_linenumber" name="177" href="#177">177</a>                 <strong class="jxr_keyword">if</strong> (trueCount &lt; 1) {
+<a class="jxr_linenumber" name="178" href="#178">178</a>                     trueCount++;
+<a class="jxr_linenumber" name="179" href="#179">179</a>                 } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="180" href="#180">180</a>                     <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="181" href="#181">181</a>                 }
+<a class="jxr_linenumber" name="182" href="#182">182</a>             }
+<a class="jxr_linenumber" name="183" href="#183">183</a>         }
+<a class="jxr_linenumber" name="184" href="#184">184</a> 
+<a class="jxr_linenumber" name="185" href="#185">185</a>         <em class="jxr_comment">// Returns true if there was exactly 1 true item</em>
+<a class="jxr_linenumber" name="186" href="#186">186</a>         <strong class="jxr_keyword">return</strong> trueCount == 1;
+<a class="jxr_linenumber" name="187" href="#187">187</a>     }
+<a class="jxr_linenumber" name="188" href="#188">188</a> 
+<a class="jxr_linenumber" name="189" href="#189">189</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="190" href="#190">190</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Checks if exactly one of the given Booleans is true.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="191" href="#191">191</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="192" href="#192">192</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="193" href="#193">193</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(new Boolean[] { Boolean.TRUE, Boolean.TRUE })   = Boolean.FALSE</em>
+<a class="jxr_linenumber" name="194" href="#194">194</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(new Boolean[] { Boolean.FALSE, Boolean.FALSE }) = Boolean.FALSE</em>
+<a class="jxr_linenumber" name="195" href="#195">195</a> <em class="jxr_javadoccomment">     *   BooleanUtils.isOneTrue(new Boolean[] { Boolean.TRUE, Boolean.FALSE })  = Boolean.TRUE</em>
+<a class="jxr_linenumber" name="196" href="#196">196</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="197" href="#197">197</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="198" href="#198">198</a> <em class="jxr_javadoccomment">     * @param array  an array of {@code Boolean}s</em>
+<a class="jxr_linenumber" name="199" href="#199">199</a> <em class="jxr_javadoccomment">     * @return {@code true} if the array containes a Boolean with value true only once.</em>
+<a class="jxr_linenumber" name="200" href="#200">200</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code array} is {@code null}</em>
+<a class="jxr_linenumber" name="201" href="#201">201</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code array} is empty.</em>
+<a class="jxr_linenumber" name="202" href="#202">202</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if {@code array} contains a {@code null}</em>
+<a class="jxr_linenumber" name="203" href="#203">203</a> <em class="jxr_javadoccomment">     * @since 3.2</em>
+<a class="jxr_linenumber" name="204" href="#204">204</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="205" href="#205">205</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean isOneTrue(<strong class="jxr_keyword">final</strong> Boolean... array) {
+<a class="jxr_linenumber" name="206" href="#206">206</a>         <strong class="jxr_keyword">if</strong> (array == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="207" href="#207">207</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Array must not be null"</span>);
+<a class="jxr_linenumber" name="208" href="#208">208</a>         }
+<a class="jxr_linenumber" name="209" href="#209">209</a>         <strong class="jxr_keyword">if</strong> (array.length == 0) {
+<a class="jxr_linenumber" name="210" href="#210">210</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Array is empty"</span>);
+<a class="jxr_linenumber" name="211" href="#211">211</a>         }
+<a class="jxr_linenumber" name="212" href="#212">212</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="213" href="#213">213</a>             <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong>[] primitive = ArrayUtils.toPrimitive(array);
+<a class="jxr_linenumber" name="214" href="#214">214</a>             <strong class="jxr_keyword">return</strong> isOneTrue(primitive) ? Boolean.TRUE : Boolean.FALSE;
+<a class="jxr_linenumber" name="215" href="#215">215</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> NullPointerException ex) {
+<a class="jxr_linenumber" name="216" href="#216">216</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The array must not contain any null elements"</span>);
+<a class="jxr_linenumber" name="217" href="#217">217</a>         }
 <a class="jxr_linenumber" name="218" href="#218">218</a>     }
 <a class="jxr_linenumber" name="219" href="#219">219</a> 
-<a class="jxr_linenumber" name="220" href="#220">220</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="221" href="#221">221</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an Integer to a Boolean using the convention that {@code zero}</em>
-<a class="jxr_linenumber" name="222" href="#222">222</a> <em class="jxr_javadoccomment">     * is {@code false}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="223" href="#223">223</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="224" href="#224">224</a> <em class="jxr_javadoccomment">     * &lt;p&gt;{@code null} will be converted to {@code null}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="225" href="#225">225</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="226" href="#226">226</a> <em class="jxr_javadoccomment">     * &lt;p&gt;NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="227" href="#227">227</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="228" href="#228">228</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="229" href="#229">229</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(0))    = Boolean.FALSE</em>
-<a class="jxr_linenumber" name="230" href="#230">230</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(1))    = Boolean.TRUE</em>
-<a class="jxr_linenumber" name="231" href="#231">231</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(null)) = null</em>
-<a class="jxr_linenumber" name="232" href="#232">232</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="233" href="#233">233</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="234" href="#234">234</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
-<a class="jxr_linenumber" name="235" href="#235">235</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE if non-zero, Boolean.FALSE if zero,</em>
-<a class="jxr_linenumber" name="236" href="#236">236</a> <em class="jxr_javadoccomment">     *  {@code null} if {@code null} input</em>
-<a class="jxr_linenumber" name="237" href="#237">237</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="238" href="#238">238</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> Integer value) {
-<a class="jxr_linenumber" name="239" href="#239">239</a>         <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="240" href="#240">240</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="241" href="#241">241</a>         }
-<a class="jxr_linenumber" name="242" href="#242">242</a>         <strong class="jxr_keyword">return</strong> value.intValue() == 0 ? Boolean.FALSE : Boolean.TRUE;
-<a class="jxr_linenumber" name="243" href="#243">243</a>     }
-<a class="jxr_linenumber" name="244" href="#244">244</a> 
-<a class="jxr_linenumber" name="245" href="#245">245</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="246" href="#246">246</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a boolean specifying the conversion values.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="247" href="#247">247</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="248" href="#248">248</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="249" href="#249">249</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(0, 1, 0) = false</em>
-<a class="jxr_linenumber" name="250" href="#250">250</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(1, 1, 0) = true</em>
-<a class="jxr_linenumber" name="251" href="#251">251</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2, 1, 2) = false</em>
-<a class="jxr_linenumber" name="252" href="#252">252</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2, 2, 0) = true</em>
-<a class="jxr_linenumber" name="253" href="#253">253</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="254" href="#254">254</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="255" href="#255">255</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
-<a class="jxr_linenumber" name="256" href="#256">256</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}</em>
-<a class="jxr_linenumber" name="257" href="#257">257</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}</em>
-<a class="jxr_linenumber" name="258" href="#258">258</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}</em>
-<a class="jxr_linenumber" name="259" href="#259">259</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
-<a class="jxr_linenumber" name="260" href="#260">260</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="261" href="#261">261</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> trueValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> falseValue) {
-<a class="jxr_linenumber" name="262" href="#262">262</a>         <strong class="jxr_keyword">if</strong> (value == trueValue) {
-<a class="jxr_linenumber" name="263" href="#263">263</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="264" href="#264">264</a>         }
-<a class="jxr_linenumber" name="265" href="#265">265</a>         <strong class="jxr_keyword">if</strong> (value == falseValue) {
-<a class="jxr_linenumber" name="266" href="#266">266</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="267" href="#267">267</a>         }
-<a class="jxr_linenumber" name="268" href="#268">268</a>         <em class="jxr_comment">// no match</em>
-<a class="jxr_linenumber" name="269" href="#269">269</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Integer did not match either specified value"</span>);
-<a class="jxr_linenumber" name="270" href="#270">270</a>     }
-<a class="jxr_linenumber" name="271" href="#271">271</a> 
-<a class="jxr_linenumber" name="272" href="#272">272</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="273" href="#273">273</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an Integer to a boolean specifying the conversion values.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="274" href="#274">274</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="275" href="#275">275</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="276" href="#276">276</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(0), Integer.valueOf(1), Integer.valueOf(0)) = false</em>
-<a class="jxr_linenumber" name="277" href="#277">277</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(1), Integer.valueOf(1), Integer.valueOf(0)) = true</em>
-<a class="jxr_linenumber" name="278" href="#278">278</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(2), Integer.valueOf(1), Integer.valueOf(2)) = false</em>
-<a class="jxr_linenumber" name="279" href="#279">279</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(2), Integer.valueOf(2), Integer.valueOf(0)) = true</em>
-<a class="jxr_linenumber" name="280" href="#280">280</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(null, null, Integer.valueOf(0))                     = true</em>
-<a class="jxr_linenumber" name="281" href="#281">281</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="282" href="#282">282</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="283" href="#283">283</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
-<a class="jxr_linenumber" name="284" href="#284">284</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}, may be {@code null}</em>
-<a class="jxr_linenumber" name="285" href="#285">285</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}, may be {@code null}</em>
-<a class="jxr_linenumber" name="286" href="#286">286</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}</em>
-<a class="jxr_linenumber" name="287" href="#287">287</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
-<a class="jxr_linenumber" name="288" href="#288">288</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="289" href="#289">289</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> Integer value, <strong class="jxr_keyword">final</strong> Integer trueValue, <strong class="jxr_keyword">final</strong> Integer falseValue) {
-<a class="jxr_linenumber" name="290" href="#290">290</a>         <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="291" href="#291">291</a>             <strong class="jxr_keyword">if</strong> (trueValue == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="292" href="#292">292</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="293" href="#293">293</a>             }
-<a class="jxr_linenumber" name="294" href="#294">294</a>             <strong class="jxr_keyword">if</strong> (falseValue == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="295" href="#295">295</a>                 <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="296" href="#296">296</a>             }
-<a class="jxr_linenumber" name="297" href="#297">297</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(trueValue)) {
-<a class="jxr_linenumber" name="298" href="#298">298</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="299" href="#299">299</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(falseValue)) {
-<a class="jxr_linenumber" name="300" href="#300">300</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="301" href="#301">301</a>         }
-<a class="jxr_linenumber" name="302" href="#302">302</a>         <em class="jxr_comment">// no match</em>
-<a class="jxr_linenumber" name="303" href="#303">303</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Integer did not match either specified value"</span>);
-<a class="jxr_linenumber" name="304" href="#304">304</a>     }
-<a class="jxr_linenumber" name="305" href="#305">305</a> 
-<a class="jxr_linenumber" name="306" href="#306">306</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="307" href="#307">307</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a Boolean specifying the conversion values.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="308" href="#308">308</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="309" href="#309">309</a> <em class="jxr_javadoccomment">     * &lt;p&gt;NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="310" href="#310">310</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="311" href="#311">311</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="312" href="#312">312</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(0, 0, 2, 3) = Boolean.TRUE</em>
-<a class="jxr_linenumber" name="313" href="#313">313</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(2, 1, 2, 3) = Boolean.FALSE</em>
-<a class="jxr_linenumber" name="314" href="#314">314</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(3, 1, 2, 3) = null</em>
-<a class="jxr_linenumber" name="315" href="#315">315</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="316" href="#316">316</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="317" href="#317">317</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
-<a class="jxr_linenumber" name="318" href="#318">318</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}</em>
-<a class="jxr_linenumber" name="319" href="#319">319</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}</em>
-<a class="jxr_linenumber" name="320" href="#320">320</a> <em class="jxr_javadoccomment">     * @param nullValue  the value to to match for {@code null}</em>
-<a class="jxr_linenumber" name="321" href="#321">321</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE, Boolean.FALSE, or {@code null}</em>
-<a class="jxr_linenumber" name="322" href="#322">322</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
-<a class="jxr_linenumber" name="323" href="#323">323</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="324" href="#324">324</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> trueValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> falseValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> nullValue) {
-<a class="jxr_linenumber" name="325" href="#325">325</a>         <strong class="jxr_keyword">if</strong> (value == trueValue) {
-<a class="jxr_linenumber" name="326" href="#326">326</a>             <strong class="jxr_keyword">return</strong> Boolean.TRUE;
-<a class="jxr_linenumber" name="327" href="#327">327</a>         }
-<a class="jxr_linenumber" name="328" href="#328">328</a>         <strong class="jxr_keyword">if</strong> (value == falseValue) {
-<a class="jxr_linenumber" name="329" href="#329">329</a>             <strong class="jxr_keyword">return</strong> Boolean.FALSE;
-<a class="jxr_linenumber" name="330" href="#330">330</a>         }
-<a class="jxr_linenumber" name="331" href="#331">331</a>         <strong class="jxr_keyword">if</strong> (value == nullValue) {
-<a class="jxr_linenumber" name="332" href="#332">332</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="333" href="#333">333</a>         }
-<a class="jxr_linenumber" name="334" href="#334">334</a>         <em class="jxr_comment">// no match</em>
-<a class="jxr_linenumber" name="335" href="#335">335</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Integer did not match any specified value"</span>);
-<a class="jxr_linenumber" name="336" href="#336">336</a>     }
-<a class="jxr_linenumber" name="337" href="#337">337</a> 
-<a class="jxr_linenumber" name="338" href="#338">338</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="339" href="#339">339</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an Integer to a Boolean specifying the conversion values.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="340" href="#340">340</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="341" href="#341">341</a> <em class="jxr_javadoccomment">     * &lt;p&gt;NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="342" href="#342">342</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="343" href="#343">343</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="344" href="#344">344</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(2), Integer.valueOf(3)) = Boolean.TRUE</em>
-<a class="jxr_linenumber" name="345" href="#345">345</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(Integer.valueOf(2), Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3)) = Boolean.FALSE</em>
-<a class="jxr_linenumber" name="346" href="#346">346</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(Integer.valueOf(3), Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3)) = null</em>
-<a class="jxr_linenumber" name="347" href="#347">347</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="348" href="#348">348</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="349" href="#349">349</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
-<a class="jxr_linenumber" name="350" href="#350">350</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}, may be {@code null}</em>
-<a class="jxr_linenumber" name="351" href="#351">351</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}, may be {@code null}</em>
-<a class="jxr_linenumber" name="352" href="#352">352</a> <em class="jxr_javadoccomment">     * @param nullValue  the value to to match for {@code null}, may be {@code null}</em>
-<a class="jxr_linenumber" name="353" href="#353">353</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE, Boolean.FALSE, or {@code null}</em>
-<a class="jxr_linenumber" name="354" href="#354">354</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
-<a class="jxr_linenumber" name="355" href="#355">355</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="356" href="#356">356</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> Integer value, <strong class="jxr_keyword">final</strong> Integer trueValue, <strong class="jxr_keyword">final</strong> Integer falseValue, <strong class="jxr_keyword">final</strong> Integer nullValue) {
-<a class="jxr_linenumber" name="357" href="#357">357</a>         <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="358" href="#358">358</a>             <strong class="jxr_keyword">if</strong> (trueValue == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="359" href="#359">359</a>                 <strong class="jxr_keyword">return</strong> Boolean.TRUE;
-<a class="jxr_linenumber" name="360" href="#360">360</a>             }
-<a class="jxr_linenumber" name="361" href="#361">361</a>             <strong class="jxr_keyword">if</strong> (falseValue == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="362" href="#362">362</a>                 <strong class="jxr_keyword">return</strong> Boolean.FALSE;
-<a class="jxr_linenumber" name="363" href="#363">363</a>             }
-<a class="jxr_linenumber" name="364" href="#364">364</a>             <strong class="jxr_keyword">if</strong> (nullValue == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="365" href="#365">365</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="366" href="#366">366</a>             }
-<a class="jxr_linenumber" name="367" href="#367">367</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(trueValue)) {
-<a class="jxr_linenumber" name="368" href="#368">368</a>             <strong class="jxr_keyword">return</strong> Boolean.TRUE;
-<a class="jxr_linenumber" name="369" href="#369">369</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(falseValue)) {
-<a class="jxr_linenumber" name="370" href="#370">370</a>             <strong class="jxr_keyword">return</strong> Boolean.FALSE;
-<a class="jxr_linenumber" name="371" href="#371">371</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(nullValue)) {
-<a class="jxr_linenumber" name="372" href="#372">372</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="373" href="#373">373</a>         }
-<a class="jxr_linenumber" name="374" href="#374">374</a>         <em class="jxr_comment">// no match</em>
-<a class="jxr_linenumber" name="375" href="#375">375</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Integer did not match any specified value"</span>);
-<a class="jxr_linenumber" name="376" href="#376">376</a>     }
-<a class="jxr_linenumber" name="377" href="#377">377</a> 
-<a class="jxr_linenumber" name="378" href="#378">378</a>     <em class="jxr_comment">// Boolean to Integer methods</em>
-<a class="jxr_linenumber" name="379" href="#379">379</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="380" href="#380">380</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="381" href="#381">381</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a boolean to an int using the convention that</em>
-<a class="jxr_linenumber" name="382" href="#382">382</a> <em class="jxr_javadoccomment">     * {@code zero} is {@code false}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="383" href="#383">383</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="384" href="#384">384</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="385" href="#385">385</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toInteger(true)  = 1</em>
-<a class="jxr_linenumber" name="386" href="#386">386</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toInteger(false) = 0</em>
-<a class="jxr_linenumber" name="387" href="#387">387</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="388" href="#388">388</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="389" href="#389">389</a> <em class="jxr_javadoccomment">     * @param bool  the boolean to convert</em>
-<a class="jxr_linenumber" name="390" href="#390">390</a> <em class="jxr_javadoccomment">     * @return one if {@code true}, zero if {@code false}</em>
-<a class="jxr_linenumber" name="391" href="#391">391</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="392" href="#392">392</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> toInteger(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> bool) {
-<a class="jxr_linenumber" name="393" href="#393">393</a>         <strong class="jxr_keyword">return</strong> bool ? 1 : 0;
-<a class="jxr_linenumber" name="394" href="#394">394</a>     }
-<a class="jxr_linenumber" name="395" href="#395">395</a> 
-<a class="jxr_linenumber" name="396" href="#396">396</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="397" href="#397">397</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a boolean to an Integer using the convention that</em>
-<a class="jxr_linenumber" name="398" href="#398">398</a> <em class="jxr_javadoccomment">     * {@code zero} is {@code false}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="399" href="#399">399</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="400" href="#400">400</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="401" href="#401">401</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toIntegerObject(true)  = Integer.valueOf(1)</em>
-<a class="jxr_linenumber" name="402" href="#402">402</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toIntegerObject(false) = Integer.valueOf(0)</em>
-<a class="jxr_linenumber" name="403" href="#403">403</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="404" href="#404">404</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="405" href="#405">405</a> <em class="jxr_javadoccomment">     * @param bool  the boolean to convert</em>
-<a class="jxr_linenumber" name="406" href="#406">406</a> <em class="jxr_javadoccomment">     * @return one if {@code true}, zero if {@code false}</em>
-<a class="jxr_linenumber" name="407" href="#407">407</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="408" href="#408">408</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Integer toIntegerObject(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> bool) {
-<a class="jxr_linenumber" name="409" href="#409">409</a>         <strong class="jxr_keyword">return</strong> bool ? NumberUtils.INTEGER_ONE : NumberUtils.INTEGER_ZERO;
-<a class="jxr_linenumber" name="410" href="#410">410</a>     }
-<a class="jxr_linenumber" name="411" href="#411">411</a> 
-<a class="jxr_linenumber" name="412" href="#412">412</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="413" href="#413">413</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a Boolean to a Integer using the convention that</em>
-<a class="jxr_linenumber" name="414" href="#414">414</a> <em class="jxr_javadoccomment">     * {@code zero} is {@code false}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="415" href="#415">415</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="416" href="#416">416</a> <em class="jxr_javadoccomment">     * &lt;p&gt;{@code null} will be converted to {@code null}.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="417" href="#417">417</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="418" href="#418">418</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="419" href="#419">419</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toIntegerObject(Boolean.TRUE)  = Integer.valueOf(1)</em>
-<a class="jxr_linenumber" name="420" href="#420">420</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toIntegerObject(Boolean.FALSE) = Integer.valueOf(0)</em>
-<a class="jxr_linenumber" name="421" href="#421">421</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="422" href="#422">422</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="423" href="#423">423</a> <em class="jxr_javadoccomment">     * @param bool  the Boolean to convert</em>
-<a class="jxr_linenumber" name="424" href="#424">424</a> <em class="jxr_javadoccomment">     * @return one if Boolean.TRUE, zero if Boolean.FALSE, {@code null} if {@code null}</em>
-<a class="jxr_linenumber" name="425" href="#425">425</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="426" href="#426">426</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Integer toIntegerObject(<strong class="jxr_keyword">final</strong> Boolean bool) {
-<a class="jxr_linenumber" name="427" href="#427">427</a>         <strong class="jxr_keyword">if</strong> (bool == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="428" href="#428">428</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="429" href="#429">429</a>         }
-<a class="jxr_linenumber" name="430" href="#430">430</a>         <strong class="jxr_keyword">return</strong> bool.booleanValue() ? NumberUtils.INTEGER_ONE : NumberUtils.INTEGER_ZERO;
-<a class="jxr_linenumber" name="431" href="#431">431</a>     }
-<a class="jxr_linenumber" name="432" href="#432">432</a> 
-<a class="jxr_linenumber" name="433" href="#433">433</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="434" href="#434">434</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a boolean to an int specifying the conversion values.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="435" href="#435">435</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="436" href="#436">436</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="437" href="#437">437</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toInteger(true, 1, 0)  = 1</em>
-<a class="jxr_linenumber" name="438" href="#438">438</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toInteger(false, 1, 0) = 0</em>
-<a class="jxr_linenumber" name="439" href="#439">439</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="440" href="#440">440</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="441" href="#441">441</a> <em class="jxr_javadoccomment">     * @param bool  the to convert</em>
-<a class="jxr_linenumber" name="442" href="#442">442</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to return if {@code true}</em>
-<a class="jxr_linenumber" name="443" href="#443">443</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to return if {@code false}</em>
-<a class="jxr_linenumber" name="444" href="#444">444</a> <em class="jxr_javadoccomment">     * @return the appropriate value</em>
-<a class="jxr_linenumber" name="445" href="#445">445</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="446" href="#446">446</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> toInteger(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> bool, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> trueValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> falseValue) {
-<a class="jxr_linenumber" name="447" href="#447">447</a>         <strong class="jxr_keyword">return</strong> bool ? trueValue : falseValue;
-<a class="jxr_linenumber" name="448" href="#448">448</a>     }
-<a class="jxr_linenumber" name="449" href="#449">449</a> 
-<a class="jxr_linenumber" name="450" href="#450">450</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="451" href="#451">451</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a Boolean to an int specifying the conversion values.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="452" href="#452">452</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="453" href="#453">453</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
-<a class="jxr_linenumber" name="454" href="#454">454</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toInteger(Boolean.TRUE, 1, 0, 2)  = 1</em>
-<a class="jxr_linenumber" name="455" href="#455">455</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toInteger(Boolean.FALSE, 1, 0, 2) = 0</em>
-<a class="jxr_linenumber" name="456" href="#456">456</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toInteger(null, 1, 0, 2)          = 2</em>
-<a class="jxr_linenumber" name="457" href="#457">457</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
-<a class="jxr_linenumber" name="458" href="#458">458</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="459" href="#459">459</a> <em class="jxr_javadoccomment">     * @param bool  the Boolean to convert</em>
-<a class="jxr_linenumber" name="460" href="#460">460</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to return if {@code true}</em>
-<a class="jxr_linenumber" name="461" href="#461">461</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to return if {@code false}</em>
-<a class="jxr_linenumber" name="462" href="#462">462</a> <em class="jxr_javadoccomment">     * @param nullValue  the value to return if {@code null}</em>
-<a class="jxr_linenumber" name="463" href="#463">463</a> <em class="jxr_javadoccomment">     * @return the appropriate value</em>
-<a class="jxr_linenumber" name="464" href="#464">464</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="465" href="#465">465</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> toInteger(<strong class="jxr_keyword">final</strong> Boolean bool, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> trueValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> falseValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> nullValue) {
-<a class="jxr_linenumber" name="466" href="#466">466</a>         <strong class="jxr_keyword">if</strong> (bool == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="467" href="#467">467</a>             <strong class="jxr_keyword">return</strong> nullValue;
-<a class="jxr_linenumber" name="468" href="#468">468</a>         }
-<a class="jxr_linenumber" name="469" href="#469">469</a>         <strong class="jxr_keyword">return</strong> bool.booleanValue() ? trueValue : falseValue;
+<a class="jxr_linenumber" name="220" href="#220">220</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="221" href="#221">221</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="222" href="#222">222</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a Boolean to a boolean handling {@code null}</em>
+<a class="jxr_linenumber" name="223" href="#223">223</a> <em class="jxr_javadoccomment">     * by returning {@code false}.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="224" href="#224">224</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="225" href="#225">225</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="226" href="#226">226</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Boolean.TRUE)  = true</em>
+<a class="jxr_linenumber" name="227" href="#227">227</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Boolean.FALSE) = false</em>
+<a class="jxr_linenumber" name="228" href="#228">228</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(null)          = false</em>
+<a class="jxr_linenumber" name="229" href="#229">229</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="230" href="#230">230</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="231" href="#231">231</a> <em class="jxr_javadoccomment">     * @param bool  the boolean to convert</em>
+<a class="jxr_linenumber" name="232" href="#232">232</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}, {@code null} returns {@code false}</em>
+<a class="jxr_linenumber" name="233" href="#233">233</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="234" href="#234">234</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> Boolean bool) {
+<a class="jxr_linenumber" name="235" href="#235">235</a>         <strong class="jxr_keyword">return</strong> bool != <strong class="jxr_keyword">null</strong> &amp;&amp; bool.booleanValue();
+<a class="jxr_linenumber" name="236" href="#236">236</a>     }
+<a class="jxr_linenumber" name="237" href="#237">237</a> 
+<a class="jxr_linenumber" name="238" href="#238">238</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="239" href="#239">239</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts a Boolean to a boolean handling {@code null}.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="240" href="#240">240</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="241" href="#241">241</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="242" href="#242">242</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanDefaultIfNull(Boolean.TRUE, false) = true</em>
+<a class="jxr_linenumber" name="243" href="#243">243</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanDefaultIfNull(Boolean.FALSE, true) = false</em>
+<a class="jxr_linenumber" name="244" href="#244">244</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanDefaultIfNull(null, true)          = true</em>
+<a class="jxr_linenumber" name="245" href="#245">245</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="246" href="#246">246</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="247" href="#247">247</a> <em class="jxr_javadoccomment">     * @param bool  the boolean to convert</em>
+<a class="jxr_linenumber" name="248" href="#248">248</a> <em class="jxr_javadoccomment">     * @param valueIfNull  the boolean value to return if {@code null}</em>
+<a class="jxr_linenumber" name="249" href="#249">249</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}</em>
+<a class="jxr_linenumber" name="250" href="#250">250</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="251" href="#251">251</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBooleanDefaultIfNull(<strong class="jxr_keyword">final</strong> Boolean bool, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> valueIfNull) {
+<a class="jxr_linenumber" name="252" href="#252">252</a>         <strong class="jxr_keyword">if</strong> (bool == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="253" href="#253">253</a>             <strong class="jxr_keyword">return</strong> valueIfNull;
+<a class="jxr_linenumber" name="254" href="#254">254</a>         }
+<a class="jxr_linenumber" name="255" href="#255">255</a>         <strong class="jxr_keyword">return</strong> bool.booleanValue();
+<a class="jxr_linenumber" name="256" href="#256">256</a>     }
+<a class="jxr_linenumber" name="257" href="#257">257</a> 
+<a class="jxr_linenumber" name="258" href="#258">258</a>     <em class="jxr_comment">// Integer to Boolean methods</em>
+<a class="jxr_linenumber" name="259" href="#259">259</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="260" href="#260">260</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="261" href="#261">261</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a boolean using the convention that {@code zero}</em>
+<a class="jxr_linenumber" name="262" href="#262">262</a> <em class="jxr_javadoccomment">     * is {@code false}.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="263" href="#263">263</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="264" href="#264">264</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="265" href="#265">265</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(0) = false</em>
+<a class="jxr_linenumber" name="266" href="#266">266</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(1) = true</em>
+<a class="jxr_linenumber" name="267" href="#267">267</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2) = true</em>
+<a class="jxr_linenumber" name="268" href="#268">268</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="269" href="#269">269</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="270" href="#270">270</a> <em class="jxr_javadoccomment">     * @param value  the int to convert</em>
+<a class="jxr_linenumber" name="271" href="#271">271</a> <em class="jxr_javadoccomment">     * @return {@code true} if non-zero, {@code false}</em>
+<a class="jxr_linenumber" name="272" href="#272">272</a> <em class="jxr_javadoccomment">     *  if zero</em>
+<a class="jxr_linenumber" name="273" href="#273">273</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="274" href="#274">274</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value) {
+<a class="jxr_linenumber" name="275" href="#275">275</a>         <strong class="jxr_keyword">return</strong> value != 0;
+<a class="jxr_linenumber" name="276" href="#276">276</a>     }
+<a class="jxr_linenumber" name="277" href="#277">277</a> 
+<a class="jxr_linenumber" name="278" href="#278">278</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="279" href="#279">279</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a Boolean using the convention that {@code zero}</em>
+<a class="jxr_linenumber" name="280" href="#280">280</a> <em class="jxr_javadoccomment">     * is {@code false}.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="281" href="#281">281</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="282" href="#282">282</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="283" href="#283">283</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(0) = Boolean.FALSE</em>
+<a class="jxr_linenumber" name="284" href="#284">284</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(1) = Boolean.TRUE</em>
+<a class="jxr_linenumber" name="285" href="#285">285</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2) = Boolean.TRUE</em>
+<a class="jxr_linenumber" name="286" href="#286">286</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="287" href="#287">287</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="288" href="#288">288</a> <em class="jxr_javadoccomment">     * @param value  the int to convert</em>
+<a class="jxr_linenumber" name="289" href="#289">289</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE if non-zero, Boolean.FALSE if zero,</em>
+<a class="jxr_linenumber" name="290" href="#290">290</a> <em class="jxr_javadoccomment">     *  {@code null} if {@code null}</em>
+<a class="jxr_linenumber" name="291" href="#291">291</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="292" href="#292">292</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value) {
+<a class="jxr_linenumber" name="293" href="#293">293</a>         <strong class="jxr_keyword">return</strong> value == 0 ? Boolean.FALSE : Boolean.TRUE;
+<a class="jxr_linenumber" name="294" href="#294">294</a>     }
+<a class="jxr_linenumber" name="295" href="#295">295</a> 
+<a class="jxr_linenumber" name="296" href="#296">296</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="297" href="#297">297</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an Integer to a Boolean using the convention that {@code zero}</em>
+<a class="jxr_linenumber" name="298" href="#298">298</a> <em class="jxr_javadoccomment">     * is {@code false}.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="299" href="#299">299</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="300" href="#300">300</a> <em class="jxr_javadoccomment">     * &lt;p&gt;{@code null} will be converted to {@code null}.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="301" href="#301">301</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="302" href="#302">302</a> <em class="jxr_javadoccomment">     * &lt;p&gt;NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="303" href="#303">303</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="304" href="#304">304</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="305" href="#305">305</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(0))    = Boolean.FALSE</em>
+<a class="jxr_linenumber" name="306" href="#306">306</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(1))    = Boolean.TRUE</em>
+<a class="jxr_linenumber" name="307" href="#307">307</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(null)) = null</em>
+<a class="jxr_linenumber" name="308" href="#308">308</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="309" href="#309">309</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="310" href="#310">310</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
+<a class="jxr_linenumber" name="311" href="#311">311</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE if non-zero, Boolean.FALSE if zero,</em>
+<a class="jxr_linenumber" name="312" href="#312">312</a> <em class="jxr_javadoccomment">     *  {@code null} if {@code null} input</em>
+<a class="jxr_linenumber" name="313" href="#313">313</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="314" href="#314">314</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> Integer value) {
+<a class="jxr_linenumber" name="315" href="#315">315</a>         <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="316" href="#316">316</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="317" href="#317">317</a>         }
+<a class="jxr_linenumber" name="318" href="#318">318</a>         <strong class="jxr_keyword">return</strong> value.intValue() == 0 ? Boolean.FALSE : Boolean.TRUE;
+<a class="jxr_linenumber" name="319" href="#319">319</a>     }
+<a class="jxr_linenumber" name="320" href="#320">320</a> 
+<a class="jxr_linenumber" name="321" href="#321">321</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="322" href="#322">322</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a boolean specifying the conversion values.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="323" href="#323">323</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="324" href="#324">324</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="325" href="#325">325</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(0, 1, 0) = false</em>
+<a class="jxr_linenumber" name="326" href="#326">326</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(1, 1, 0) = true</em>
+<a class="jxr_linenumber" name="327" href="#327">327</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2, 1, 2) = false</em>
+<a class="jxr_linenumber" name="328" href="#328">328</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(2, 2, 0) = true</em>
+<a class="jxr_linenumber" name="329" href="#329">329</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="330" href="#330">330</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="331" href="#331">331</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
+<a class="jxr_linenumber" name="332" href="#332">332</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}</em>
+<a class="jxr_linenumber" name="333" href="#333">333</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}</em>
+<a class="jxr_linenumber" name="334" href="#334">334</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}</em>
+<a class="jxr_linenumber" name="335" href="#335">335</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
+<a class="jxr_linenumber" name="336" href="#336">336</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="337" href="#337">337</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> trueValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> falseValue) {
+<a class="jxr_linenumber" name="338" href="#338">338</a>         <strong class="jxr_keyword">if</strong> (value == trueValue) {
+<a class="jxr_linenumber" name="339" href="#339">339</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="340" href="#340">340</a>         }
+<a class="jxr_linenumber" name="341" href="#341">341</a>         <strong class="jxr_keyword">if</strong> (value == falseValue) {
+<a class="jxr_linenumber" name="342" href="#342">342</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="343" href="#343">343</a>         }
+<a class="jxr_linenumber" name="344" href="#344">344</a>         <em class="jxr_comment">// no match</em>
+<a class="jxr_linenumber" name="345" href="#345">345</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Integer did not match either specified value"</span>);
+<a class="jxr_linenumber" name="346" href="#346">346</a>     }
+<a class="jxr_linenumber" name="347" href="#347">347</a> 
+<a class="jxr_linenumber" name="348" href="#348">348</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="349" href="#349">349</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an Integer to a boolean specifying the conversion values.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="350" href="#350">350</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="351" href="#351">351</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="352" href="#352">352</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(0), Integer.valueOf(1), Integer.valueOf(0)) = false</em>
+<a class="jxr_linenumber" name="353" href="#353">353</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(1), Integer.valueOf(1), Integer.valueOf(0)) = true</em>
+<a class="jxr_linenumber" name="354" href="#354">354</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(2), Integer.valueOf(1), Integer.valueOf(2)) = false</em>
+<a class="jxr_linenumber" name="355" href="#355">355</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(Integer.valueOf(2), Integer.valueOf(2), Integer.valueOf(0)) = true</em>
+<a class="jxr_linenumber" name="356" href="#356">356</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBoolean(null, null, Integer.valueOf(0))                     = true</em>
+<a class="jxr_linenumber" name="357" href="#357">357</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="358" href="#358">358</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="359" href="#359">359</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
+<a class="jxr_linenumber" name="360" href="#360">360</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}, may be {@code null}</em>
+<a class="jxr_linenumber" name="361" href="#361">361</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}, may be {@code null}</em>
+<a class="jxr_linenumber" name="362" href="#362">362</a> <em class="jxr_javadoccomment">     * @return {@code true} or {@code false}</em>
+<a class="jxr_linenumber" name="363" href="#363">363</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
+<a class="jxr_linenumber" name="364" href="#364">364</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="365" href="#365">365</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> toBoolean(<strong class="jxr_keyword">final</strong> Integer value, <strong class="jxr_keyword">final</strong> Integer trueValue, <strong class="jxr_keyword">final</strong> Integer falseValue) {
+<a class="jxr_linenumber" name="366" href="#366">366</a>         <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="367" href="#367">367</a>             <strong class="jxr_keyword">if</strong> (trueValue == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="368" href="#368">368</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="369" href="#369">369</a>             }
+<a class="jxr_linenumber" name="370" href="#370">370</a>             <strong class="jxr_keyword">if</strong> (falseValue == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="371" href="#371">371</a>                 <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="372" href="#372">372</a>             }
+<a class="jxr_linenumber" name="373" href="#373">373</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(trueValue)) {
+<a class="jxr_linenumber" name="374" href="#374">374</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="375" href="#375">375</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(falseValue)) {
+<a class="jxr_linenumber" name="376" href="#376">376</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="377" href="#377">377</a>         }
+<a class="jxr_linenumber" name="378" href="#378">378</a>         <em class="jxr_comment">// no match</em>
+<a class="jxr_linenumber" name="379" href="#379">379</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Integer did not match either specified value"</span>);
+<a class="jxr_linenumber" name="380" href="#380">380</a>     }
+<a class="jxr_linenumber" name="381" href="#381">381</a> 
+<a class="jxr_linenumber" name="382" href="#382">382</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="383" href="#383">383</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an int to a Boolean specifying the conversion values.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="384" href="#384">384</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="385" href="#385">385</a> <em class="jxr_javadoccomment">     * &lt;p&gt;NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="386" href="#386">386</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="387" href="#387">387</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="388" href="#388">388</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(0, 0, 2, 3) = Boolean.TRUE</em>
+<a class="jxr_linenumber" name="389" href="#389">389</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(2, 1, 2, 3) = Boolean.FALSE</em>
+<a class="jxr_linenumber" name="390" href="#390">390</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(3, 1, 2, 3) = null</em>
+<a class="jxr_linenumber" name="391" href="#391">391</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="392" href="#392">392</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="393" href="#393">393</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
+<a class="jxr_linenumber" name="394" href="#394">394</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}</em>
+<a class="jxr_linenumber" name="395" href="#395">395</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}</em>
+<a class="jxr_linenumber" name="396" href="#396">396</a> <em class="jxr_javadoccomment">     * @param nullValue  the value to to match for {@code null}</em>
+<a class="jxr_linenumber" name="397" href="#397">397</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE, Boolean.FALSE, or {@code null}</em>
+<a class="jxr_linenumber" name="398" href="#398">398</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
+<a class="jxr_linenumber" name="399" href="#399">399</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="400" href="#400">400</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> trueValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> falseValue, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> nullValue) {
+<a class="jxr_linenumber" name="401" href="#401">401</a>         <strong class="jxr_keyword">if</strong> (value == trueValue) {
+<a class="jxr_linenumber" name="402" href="#402">402</a>             <strong class="jxr_keyword">return</strong> Boolean.TRUE;
+<a class="jxr_linenumber" name="403" href="#403">403</a>         }
+<a class="jxr_linenumber" name="404" href="#404">404</a>         <strong class="jxr_keyword">if</strong> (value == falseValue) {
+<a class="jxr_linenumber" name="405" href="#405">405</a>             <strong class="jxr_keyword">return</strong> Boolean.FALSE;
+<a class="jxr_linenumber" name="406" href="#406">406</a>         }
+<a class="jxr_linenumber" name="407" href="#407">407</a>         <strong class="jxr_keyword">if</strong> (value == nullValue) {
+<a class="jxr_linenumber" name="408" href="#408">408</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="409" href="#409">409</a>         }
+<a class="jxr_linenumber" name="410" href="#410">410</a>         <em class="jxr_comment">// no match</em>
+<a class="jxr_linenumber" name="411" href="#411">411</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"The Integer did not match any specified value"</span>);
+<a class="jxr_linenumber" name="412" href="#412">412</a>     }
+<a class="jxr_linenumber" name="413" href="#413">413</a> 
+<a class="jxr_linenumber" name="414" href="#414">414</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="415" href="#415">415</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Converts an Integer to a Boolean specifying the conversion values.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="416" href="#416">416</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="417" href="#417">417</a> <em class="jxr_javadoccomment">     * &lt;p&gt;NOTE: This returns null and will throw a NullPointerException if autoboxed to a boolean. &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="418" href="#418">418</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="419" href="#419">419</a> <em class="jxr_javadoccomment">     * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="420" href="#420">420</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(2), Integer.valueOf(3)) = Boolean.TRUE</em>
+<a class="jxr_linenumber" name="421" href="#421">421</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(Integer.valueOf(2), Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3)) = Boolean.FALSE</em>
+<a class="jxr_linenumber" name="422" href="#422">422</a> <em class="jxr_javadoccomment">     *   BooleanUtils.toBooleanObject(Integer.valueOf(3), Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3)) = null</em>
+<a class="jxr_linenumber" name="423" href="#423">423</a> <em class="jxr_javadoccomment">     * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="424" href="#424">424</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="425" href="#425">425</a> <em class="jxr_javadoccomment">     * @param value  the Integer to convert</em>
+<a class="jxr_linenumber" name="426" href="#426">426</a> <em class="jxr_javadoccomment">     * @param trueValue  the value to match for {@code true}, may be {@code null}</em>
+<a class="jxr_linenumber" name="427" href="#427">427</a> <em class="jxr_javadoccomment">     * @param falseValue  the value to match for {@code false}, may be {@code null}</em>
+<a class="jxr_linenumber" name="428" href="#428">428</a> <em class="jxr_javadoccomment">     * @param nullValue  the value to to match for {@code null}, may be {@code null}</em>
+<a class="jxr_linenumber" name="429" href="#429">429</a> <em class="jxr_javadoccomment">     * @return Boolean.TRUE, Boolean.FALSE, or {@code null}</em>
+<a class="jxr_linenumber" name="430" href="#430">430</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if no match</em>
+<a class="jxr_linenumber" name="431" href="#431">431</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="432" href="#432">432</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Boolean toBooleanObject(<strong class="jxr_keyword">final</strong> Integer value, <strong class="jxr_keyword">final</strong> Integer trueValue, <strong class="jxr_keyword">final</strong> Integer falseValue, <strong class="jxr_keyword">final</strong> Integer nullValue) {
+<a class="jxr_linenumber" name="433" href="#433">433</a>         <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="434" href="#434">434</a>             <strong class="jxr_keyword">if</strong> (trueValue == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="435" href="#435">435</a>                 <strong class="jxr_keyword">return</strong> Boolean.TRUE;
+<a class="jxr_linenumber" name="436" href="#436">436</a>             }
+<a class="jxr_linenumber" name="437" href="#437">437</a>             <strong class="jxr_keyword">if</strong> (falseValue == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="438" href="#438">438</a>                 <strong class="jxr_keyword">return</strong> Boolean.FALSE;
+<a class="jxr_linenumber" name="439" href="#439">439</a>             }
+<a class="jxr_linenumber" name="440" href="#440">440</a>             <strong class="jxr_keyword">if</strong> (nullValue == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="441" href="#441">441</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="442" href="#442">442</a>             }
+<a class="jxr_linenumber" name="443" href="#443">443</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(trueValue)) {
+<a class="jxr_linenumber" name="444" href="#444">444</a>             <strong class="jxr_keyword">return</strong> Boolean.TRUE;
+<a class="jxr_linenumber" name="445" href="#445">445</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(falseValue)) {
+<a class="jxr_linenumber" name="446" href="#446">446</a>             <strong class="jxr_keyword">return</strong> Boolean.FALSE;
+<a class="jxr_linenumber" name="447" href="#447">447</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value.equals(nullValue)) {
+<a class="jxr_linenumber" name="448" href="#448">448</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="449" href="#449">449</a>         }

[... 1326 lines stripped ...]


Mime
View raw message