commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r949864 [43/48] - in /websites/production/commons/content/proper/commons-lang: ./ apidocs/ apidocs/org/apache/commons/lang3/ apidocs/org/apache/commons/lang3/builder/ apidocs/org/apache/commons/lang3/time/ apidocs/src-html/org/apache/common...
Date Fri, 01 May 2015 20:55:53 GMT
Modified: websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/builder/HashCodeBuilder.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/builder/HashCodeBuilder.html
(original)
+++ websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/builder/HashCodeBuilder.html
Fri May  1 20:55:51 2015
@@ -864,119 +864,147 @@
 <a class="jxr_linenumber" name="L856" href="#L856">856</a>                  
  append((Object[]) object);
 <a class="jxr_linenumber" name="L857" href="#L857">857</a>                 }
 <a class="jxr_linenumber" name="L858" href="#L858">858</a>             } <strong
class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L859" href="#L859">859</a>                 iTotal
= iTotal * iConstant + object.hashCode();
-<a class="jxr_linenumber" name="L860" href="#L860">860</a>             }
-<a class="jxr_linenumber" name="L861" href="#L861">861</a>         }
-<a class="jxr_linenumber" name="L862" href="#L862">862</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L863" href="#L863">863</a>     }
-<a class="jxr_linenumber" name="L864" href="#L864">864</a> 
-<a class="jxr_linenumber" name="L865" href="#L865">865</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L866" href="#L866">866</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L867" href="#L867">867</a> <em class="jxr_javadoccomment">
    * Append a &lt;code&gt;hashCode&lt;/code&gt; for an &lt;code&gt;Object&lt;/code&gt;
array.</em>
-<a class="jxr_linenumber" name="L868" href="#L868">868</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L869" href="#L869">869</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L870" href="#L870">870</a> <em class="jxr_javadoccomment">
    * @param array</em>
-<a class="jxr_linenumber" name="L871" href="#L871">871</a> <em class="jxr_javadoccomment">
    *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="L872" href="#L872">872</a> <em class="jxr_javadoccomment">
    * @return this</em>
-<a class="jxr_linenumber" name="L873" href="#L873">873</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L874" href="#L874">874</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
append(<strong class="jxr_keyword">final</strong> Object[] array) {
-<a class="jxr_linenumber" name="L875" href="#L875">875</a>         <strong
class="jxr_keyword">if</strong> (array == <strong class="jxr_keyword">null</strong>)
{
-<a class="jxr_linenumber" name="L876" href="#L876">876</a>             iTotal
= iTotal * iConstant;
-<a class="jxr_linenumber" name="L877" href="#L877">877</a>         } <strong
class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L878" href="#L878">878</a>             <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
Object element : array) {
-<a class="jxr_linenumber" name="L879" href="#L879">879</a>                 append(element);
-<a class="jxr_linenumber" name="L880" href="#L880">880</a>             }
-<a class="jxr_linenumber" name="L881" href="#L881">881</a>         }
-<a class="jxr_linenumber" name="L882" href="#L882">882</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L883" href="#L883">883</a>     }
-<a class="jxr_linenumber" name="L884" href="#L884">884</a> 
-<a class="jxr_linenumber" name="L885" href="#L885">885</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L886" href="#L886">886</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L887" href="#L887">887</a> <em class="jxr_javadoccomment">
    * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L888" href="#L888">888</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L889" href="#L889">889</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L890" href="#L890">890</a> <em class="jxr_javadoccomment">
    * @param value</em>
-<a class="jxr_linenumber" name="L891" href="#L891">891</a> <em class="jxr_javadoccomment">
    *            the short to add to the &lt;code&gt;hashCode&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="L892" href="#L892">892</a> <em class="jxr_javadoccomment">
    * @return this</em>
-<a class="jxr_linenumber" name="L893" href="#L893">893</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L894" href="#L894">894</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
append(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">short</strong>
value) {
-<a class="jxr_linenumber" name="L895" href="#L895">895</a>         iTotal = iTotal
* iConstant + value;
-<a class="jxr_linenumber" name="L896" href="#L896">896</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L897" href="#L897">897</a>     }
-<a class="jxr_linenumber" name="L898" href="#L898">898</a> 
-<a class="jxr_linenumber" name="L899" href="#L899">899</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L900" href="#L900">900</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L901" href="#L901">901</a> <em class="jxr_javadoccomment">
    * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt;
array.</em>
-<a class="jxr_linenumber" name="L902" href="#L902">902</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L903" href="#L903">903</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L904" href="#L904">904</a> <em class="jxr_javadoccomment">
    * @param array</em>
-<a class="jxr_linenumber" name="L905" href="#L905">905</a> <em class="jxr_javadoccomment">
    *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="L906" href="#L906">906</a> <em class="jxr_javadoccomment">
    * @return this</em>
-<a class="jxr_linenumber" name="L907" href="#L907">907</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L908" href="#L908">908</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
append(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">short</strong>[]
array) {
-<a class="jxr_linenumber" name="L909" href="#L909">909</a>         <strong
class="jxr_keyword">if</strong> (array == <strong class="jxr_keyword">null</strong>)
{
-<a class="jxr_linenumber" name="L910" href="#L910">910</a>             iTotal
= iTotal * iConstant;
-<a class="jxr_linenumber" name="L911" href="#L911">911</a>         } <strong
class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L912" href="#L912">912</a>             <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">short</strong> element : array) {
-<a class="jxr_linenumber" name="L913" href="#L913">913</a>                 append(element);
-<a class="jxr_linenumber" name="L914" href="#L914">914</a>             }
-<a class="jxr_linenumber" name="L915" href="#L915">915</a>         }
-<a class="jxr_linenumber" name="L916" href="#L916">916</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L917" href="#L917">917</a>     }
-<a class="jxr_linenumber" name="L918" href="#L918">918</a> 
-<a class="jxr_linenumber" name="L919" href="#L919">919</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L920" href="#L920">920</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L921" href="#L921">921</a> <em class="jxr_javadoccomment">
    * Adds the result of super.hashCode() to this builder.</em>
-<a class="jxr_linenumber" name="L922" href="#L922">922</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L923" href="#L923">923</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L924" href="#L924">924</a> <em class="jxr_javadoccomment">
    * @param superHashCode</em>
-<a class="jxr_linenumber" name="L925" href="#L925">925</a> <em class="jxr_javadoccomment">
    *            the result of calling &lt;code&gt;super.hashCode()&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="L926" href="#L926">926</a> <em class="jxr_javadoccomment">
    * @return this HashCodeBuilder, used to chain calls.</em>
-<a class="jxr_linenumber" name="L927" href="#L927">927</a> <em class="jxr_javadoccomment">
    * @since 2.0</em>
-<a class="jxr_linenumber" name="L928" href="#L928">928</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L929" href="#L929">929</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
appendSuper(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
superHashCode) {
-<a class="jxr_linenumber" name="L930" href="#L930">930</a>         iTotal = iTotal
* iConstant + superHashCode;
-<a class="jxr_linenumber" name="L931" href="#L931">931</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L932" href="#L932">932</a>     }
-<a class="jxr_linenumber" name="L933" href="#L933">933</a> 
-<a class="jxr_linenumber" name="L934" href="#L934">934</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L935" href="#L935">935</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L936" href="#L936">936</a> <em class="jxr_javadoccomment">
    * Return the computed &lt;code&gt;hashCode&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L937" href="#L937">937</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L938" href="#L938">938</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L939" href="#L939">939</a> <em class="jxr_javadoccomment">
    * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended</em>
-<a class="jxr_linenumber" name="L940" href="#L940">940</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L941" href="#L941">941</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">int</strong> toHashCode() {
-<a class="jxr_linenumber" name="L942" href="#L942">942</a>         <strong
class="jxr_keyword">return</strong> iTotal;
-<a class="jxr_linenumber" name="L943" href="#L943">943</a>     }
-<a class="jxr_linenumber" name="L944" href="#L944">944</a> 
-<a class="jxr_linenumber" name="L945" href="#L945">945</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L946" href="#L946">946</a> <em class="jxr_javadoccomment">
    * Returns the computed &lt;code&gt;hashCode&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L947" href="#L947">947</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L948" href="#L948">948</a> <em class="jxr_javadoccomment">
    * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended</em>
-<a class="jxr_linenumber" name="L949" href="#L949">949</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L950" href="#L950">950</a> <em class="jxr_javadoccomment">
    * @since 3.0</em>
-<a class="jxr_linenumber" name="L951" href="#L951">951</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L952" href="#L952">952</a>     @Override
-<a class="jxr_linenumber" name="L953" href="#L953">953</a>     <strong class="jxr_keyword">public</strong>
Integer build() {
-<a class="jxr_linenumber" name="L954" href="#L954">954</a>         <strong
class="jxr_keyword">return</strong> Integer.valueOf(toHashCode());
-<a class="jxr_linenumber" name="L955" href="#L955">955</a>     }
-<a class="jxr_linenumber" name="L956" href="#L956">956</a> 
-<a class="jxr_linenumber" name="L957" href="#L957">957</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L958" href="#L958">958</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L959" href="#L959">959</a> <em class="jxr_javadoccomment">
    * The computed &lt;code&gt;hashCode&lt;/code&gt; from toHashCode() is
returned due to the likelihood</em>
-<a class="jxr_linenumber" name="L960" href="#L960">960</a> <em class="jxr_javadoccomment">
    * of bugs in mis-calling toHashCode() and the unlikeliness of it mattering what the hashCode
for</em>
-<a class="jxr_linenumber" name="L961" href="#L961">961</a> <em class="jxr_javadoccomment">
    * HashCodeBuilder itself is.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L962" href="#L962">962</a> <em class="jxr_javadoccomment">
    *</em>
-<a class="jxr_linenumber" name="L963" href="#L963">963</a> <em class="jxr_javadoccomment">
    * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended</em>
-<a class="jxr_linenumber" name="L964" href="#L964">964</a> <em class="jxr_javadoccomment">
    * @since 2.5</em>
-<a class="jxr_linenumber" name="L965" href="#L965">965</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L966" href="#L966">966</a>     @Override
-<a class="jxr_linenumber" name="L967" href="#L967">967</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">int</strong> hashCode() {
-<a class="jxr_linenumber" name="L968" href="#L968">968</a>         <strong
class="jxr_keyword">return</strong> toHashCode();
-<a class="jxr_linenumber" name="L969" href="#L969">969</a>     }
-<a class="jxr_linenumber" name="L970" href="#L970">970</a> 
-<a class="jxr_linenumber" name="L971" href="#L971">971</a> }
+<a class="jxr_linenumber" name="L859" href="#L859">859</a>                 <strong
class="jxr_keyword">if</strong> (object instanceof Long) {
+<a class="jxr_linenumber" name="L860" href="#L860">860</a>                  
  append(((Long) object).longValue());
+<a class="jxr_linenumber" name="L861" href="#L861">861</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof Integer) {
+<a class="jxr_linenumber" name="L862" href="#L862">862</a>                  
  append(((Integer) object).intValue());
+<a class="jxr_linenumber" name="L863" href="#L863">863</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof Short) {
+<a class="jxr_linenumber" name="L864" href="#L864">864</a>                  
  append(((Short) object).shortValue());
+<a class="jxr_linenumber" name="L865" href="#L865">865</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof Character) {
+<a class="jxr_linenumber" name="L866" href="#L866">866</a>                  
  append(((Character) object).charValue());
+<a class="jxr_linenumber" name="L867" href="#L867">867</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof Byte) {
+<a class="jxr_linenumber" name="L868" href="#L868">868</a>                  
  append(((Byte) object).byteValue());
+<a class="jxr_linenumber" name="L869" href="#L869">869</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof Double) {
+<a class="jxr_linenumber" name="L870" href="#L870">870</a>                  
  append(((Double) object).doubleValue());
+<a class="jxr_linenumber" name="L871" href="#L871">871</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof Float) {
+<a class="jxr_linenumber" name="L872" href="#L872">872</a>                  
  append(((Float) object).floatValue());
+<a class="jxr_linenumber" name="L873" href="#L873">873</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof Boolean) {
+<a class="jxr_linenumber" name="L874" href="#L874">874</a>                  
  append(((Boolean) object).booleanValue());
+<a class="jxr_linenumber" name="L875" href="#L875">875</a>                 }
<strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong>
(object instanceof String) {
+<a class="jxr_linenumber" name="L876" href="#L876">876</a>                  
  iTotal = iTotal * iConstant + object.hashCode();
+<a class="jxr_linenumber" name="L877" href="#L877">877</a>                 }
<strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L878" href="#L878">878</a>                  
  <strong class="jxr_keyword">if</strong> (isRegistered(object)) {
+<a class="jxr_linenumber" name="L879" href="#L879">879</a>                  
      <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L880" href="#L880">880</a>                  
  }
+<a class="jxr_linenumber" name="L881" href="#L881">881</a>                  
  <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L882" href="#L882">882</a>                  
      register(object);
+<a class="jxr_linenumber" name="L883" href="#L883">883</a>                  
      iTotal = iTotal * iConstant + object.hashCode();
+<a class="jxr_linenumber" name="L884" href="#L884">884</a>                  
  } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="L885" href="#L885">885</a>                  
      unregister(object);
+<a class="jxr_linenumber" name="L886" href="#L886">886</a>                  
  }
+<a class="jxr_linenumber" name="L887" href="#L887">887</a>                 }
+<a class="jxr_linenumber" name="L888" href="#L888">888</a>             }
+<a class="jxr_linenumber" name="L889" href="#L889">889</a>         }
+<a class="jxr_linenumber" name="L890" href="#L890">890</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L891" href="#L891">891</a>     }
+<a class="jxr_linenumber" name="L892" href="#L892">892</a> 
+<a class="jxr_linenumber" name="L893" href="#L893">893</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L894" href="#L894">894</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L895" href="#L895">895</a> <em class="jxr_javadoccomment">
    * Append a &lt;code&gt;hashCode&lt;/code&gt; for an &lt;code&gt;Object&lt;/code&gt;
array.</em>
+<a class="jxr_linenumber" name="L896" href="#L896">896</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L897" href="#L897">897</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L898" href="#L898">898</a> <em class="jxr_javadoccomment">
    * @param array</em>
+<a class="jxr_linenumber" name="L899" href="#L899">899</a> <em class="jxr_javadoccomment">
    *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;</em>
+<a class="jxr_linenumber" name="L900" href="#L900">900</a> <em class="jxr_javadoccomment">
    * @return this</em>
+<a class="jxr_linenumber" name="L901" href="#L901">901</a> <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L902" href="#L902">902</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
append(<strong class="jxr_keyword">final</strong> Object[] array) {
+<a class="jxr_linenumber" name="L903" href="#L903">903</a>         <strong
class="jxr_keyword">if</strong> (array == <strong class="jxr_keyword">null</strong>)
{
+<a class="jxr_linenumber" name="L904" href="#L904">904</a>             iTotal
= iTotal * iConstant;
+<a class="jxr_linenumber" name="L905" href="#L905">905</a>         } <strong
class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L906" href="#L906">906</a>             <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
Object element : array) {
+<a class="jxr_linenumber" name="L907" href="#L907">907</a>                 append(element);
+<a class="jxr_linenumber" name="L908" href="#L908">908</a>             }
+<a class="jxr_linenumber" name="L909" href="#L909">909</a>         }
+<a class="jxr_linenumber" name="L910" href="#L910">910</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L911" href="#L911">911</a>     }
+<a class="jxr_linenumber" name="L912" href="#L912">912</a> 
+<a class="jxr_linenumber" name="L913" href="#L913">913</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L914" href="#L914">914</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L915" href="#L915">915</a> <em class="jxr_javadoccomment">
    * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L916" href="#L916">916</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L917" href="#L917">917</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L918" href="#L918">918</a> <em class="jxr_javadoccomment">
    * @param value</em>
+<a class="jxr_linenumber" name="L919" href="#L919">919</a> <em class="jxr_javadoccomment">
    *            the short to add to the &lt;code&gt;hashCode&lt;/code&gt;</em>
+<a class="jxr_linenumber" name="L920" href="#L920">920</a> <em class="jxr_javadoccomment">
    * @return this</em>
+<a class="jxr_linenumber" name="L921" href="#L921">921</a> <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L922" href="#L922">922</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
append(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">short</strong>
value) {
+<a class="jxr_linenumber" name="L923" href="#L923">923</a>         iTotal = iTotal
* iConstant + value;
+<a class="jxr_linenumber" name="L924" href="#L924">924</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L925" href="#L925">925</a>     }
+<a class="jxr_linenumber" name="L926" href="#L926">926</a> 
+<a class="jxr_linenumber" name="L927" href="#L927">927</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L928" href="#L928">928</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L929" href="#L929">929</a> <em class="jxr_javadoccomment">
    * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt;
array.</em>
+<a class="jxr_linenumber" name="L930" href="#L930">930</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L931" href="#L931">931</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L932" href="#L932">932</a> <em class="jxr_javadoccomment">
    * @param array</em>
+<a class="jxr_linenumber" name="L933" href="#L933">933</a> <em class="jxr_javadoccomment">
    *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;</em>
+<a class="jxr_linenumber" name="L934" href="#L934">934</a> <em class="jxr_javadoccomment">
    * @return this</em>
+<a class="jxr_linenumber" name="L935" href="#L935">935</a> <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L936" href="#L936">936</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
append(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">short</strong>[]
array) {
+<a class="jxr_linenumber" name="L937" href="#L937">937</a>         <strong
class="jxr_keyword">if</strong> (array == <strong class="jxr_keyword">null</strong>)
{
+<a class="jxr_linenumber" name="L938" href="#L938">938</a>             iTotal
= iTotal * iConstant;
+<a class="jxr_linenumber" name="L939" href="#L939">939</a>         } <strong
class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L940" href="#L940">940</a>             <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">short</strong> element : array) {
+<a class="jxr_linenumber" name="L941" href="#L941">941</a>                 append(element);
+<a class="jxr_linenumber" name="L942" href="#L942">942</a>             }
+<a class="jxr_linenumber" name="L943" href="#L943">943</a>         }
+<a class="jxr_linenumber" name="L944" href="#L944">944</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L945" href="#L945">945</a>     }
+<a class="jxr_linenumber" name="L946" href="#L946">946</a> 
+<a class="jxr_linenumber" name="L947" href="#L947">947</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L948" href="#L948">948</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L949" href="#L949">949</a> <em class="jxr_javadoccomment">
    * Adds the result of super.hashCode() to this builder.</em>
+<a class="jxr_linenumber" name="L950" href="#L950">950</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L951" href="#L951">951</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L952" href="#L952">952</a> <em class="jxr_javadoccomment">
    * @param superHashCode</em>
+<a class="jxr_linenumber" name="L953" href="#L953">953</a> <em class="jxr_javadoccomment">
    *            the result of calling &lt;code&gt;super.hashCode()&lt;/code&gt;</em>
+<a class="jxr_linenumber" name="L954" href="#L954">954</a> <em class="jxr_javadoccomment">
    * @return this HashCodeBuilder, used to chain calls.</em>
+<a class="jxr_linenumber" name="L955" href="#L955">955</a> <em class="jxr_javadoccomment">
    * @since 2.0</em>
+<a class="jxr_linenumber" name="L956" href="#L956">956</a> <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L957" href="#L957">957</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/lang3/builder/HashCodeBuilder.html">HashCodeBuilder</a>
appendSuper(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
superHashCode) {
+<a class="jxr_linenumber" name="L958" href="#L958">958</a>         iTotal = iTotal
* iConstant + superHashCode;
+<a class="jxr_linenumber" name="L959" href="#L959">959</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L960" href="#L960">960</a>     }
+<a class="jxr_linenumber" name="L961" href="#L961">961</a> 
+<a class="jxr_linenumber" name="L962" href="#L962">962</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L963" href="#L963">963</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L964" href="#L964">964</a> <em class="jxr_javadoccomment">
    * Return the computed &lt;code&gt;hashCode&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L965" href="#L965">965</a> <em class="jxr_javadoccomment">
    * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L966" href="#L966">966</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L967" href="#L967">967</a> <em class="jxr_javadoccomment">
    * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended</em>
+<a class="jxr_linenumber" name="L968" href="#L968">968</a> <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L969" href="#L969">969</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">int</strong> toHashCode() {
+<a class="jxr_linenumber" name="L970" href="#L970">970</a>         <strong
class="jxr_keyword">return</strong> iTotal;
+<a class="jxr_linenumber" name="L971" href="#L971">971</a>     }
+<a class="jxr_linenumber" name="L972" href="#L972">972</a> 
+<a class="jxr_linenumber" name="L973" href="#L973">973</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L974" href="#L974">974</a> <em class="jxr_javadoccomment">
    * Returns the computed &lt;code&gt;hashCode&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L975" href="#L975">975</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L976" href="#L976">976</a> <em class="jxr_javadoccomment">
    * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended</em>
+<a class="jxr_linenumber" name="L977" href="#L977">977</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L978" href="#L978">978</a> <em class="jxr_javadoccomment">
    * @since 3.0</em>
+<a class="jxr_linenumber" name="L979" href="#L979">979</a> <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L980" href="#L980">980</a>     @Override
+<a class="jxr_linenumber" name="L981" href="#L981">981</a>     <strong class="jxr_keyword">public</strong>
Integer build() {
+<a class="jxr_linenumber" name="L982" href="#L982">982</a>         <strong
class="jxr_keyword">return</strong> Integer.valueOf(toHashCode());
+<a class="jxr_linenumber" name="L983" href="#L983">983</a>     }
+<a class="jxr_linenumber" name="L984" href="#L984">984</a> 
+<a class="jxr_linenumber" name="L985" href="#L985">985</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L986" href="#L986">986</a> <em class="jxr_javadoccomment">
    * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L987" href="#L987">987</a> <em class="jxr_javadoccomment">
    * The computed &lt;code&gt;hashCode&lt;/code&gt; from toHashCode() is
returned due to the likelihood</em>
+<a class="jxr_linenumber" name="L988" href="#L988">988</a> <em class="jxr_javadoccomment">
    * of bugs in mis-calling toHashCode() and the unlikeliness of it mattering what the hashCode
for</em>
+<a class="jxr_linenumber" name="L989" href="#L989">989</a> <em class="jxr_javadoccomment">
    * HashCodeBuilder itself is.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L990" href="#L990">990</a> <em class="jxr_javadoccomment">
    *</em>
+<a class="jxr_linenumber" name="L991" href="#L991">991</a> <em class="jxr_javadoccomment">
    * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended</em>
+<a class="jxr_linenumber" name="L992" href="#L992">992</a> <em class="jxr_javadoccomment">
    * @since 2.5</em>
+<a class="jxr_linenumber" name="L993" href="#L993">993</a> <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L994" href="#L994">994</a>     @Override
+<a class="jxr_linenumber" name="L995" href="#L995">995</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">int</strong> hashCode() {
+<a class="jxr_linenumber" name="L996" href="#L996">996</a>         <strong
class="jxr_keyword">return</strong> toHashCode();
+<a class="jxr_linenumber" name="L997" href="#L997">997</a>     }
+<a class="jxr_linenumber" name="L998" href="#L998">998</a> 
+<a class="jxr_linenumber" name="L999" href="#L999">999</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2001&#x2013;2015 <a href="http://www.apache.org/">The
Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/reflect/TypeUtils.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/reflect/TypeUtils.html
(original)
+++ websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/reflect/TypeUtils.html
Fri May  1 20:55:51 2015
@@ -1508,7 +1508,7 @@
 <a class="jxr_linenumber" name="L1500" href="#L1500">1500</a>         }
 <a class="jxr_linenumber" name="L1501" href="#L1501">1501</a>         Validate.noNullElements(typeArguments,
<span class="jxr_string">"null type argument at index %s"</span>);
 <a class="jxr_linenumber" name="L1502" href="#L1502">1502</a>         Validate.isTrue(raw.getTypeParameters().length
== typeArguments.length,
-<a class="jxr_linenumber" name="L1503" href="#L1503">1503</a>             <span
class="jxr_string">"invalid number of type parameters specified: expected %s, got %s"</span>,
raw.getTypeParameters().length,
+<a class="jxr_linenumber" name="L1503" href="#L1503">1503</a>             <span
class="jxr_string">"invalid number of type parameters specified: expected %d, got %d"</span>,
raw.getTypeParameters().length,
 <a class="jxr_linenumber" name="L1504" href="#L1504">1504</a>             typeArguments.length);
 <a class="jxr_linenumber" name="L1505" href="#L1505">1505</a> 
 <a class="jxr_linenumber" name="L1506" href="#L1506">1506</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong>
<a href="../../../../../org/apache/commons/lang3/reflect/TypeUtils.html">ParameterizedTypeImpl</a>(raw,
useOwner, typeArguments);
@@ -1634,7 +1634,7 @@
 <a class="jxr_linenumber" name="L1626" href="#L1626">1626</a>             <strong
class="jxr_keyword">return</strong> equals(getImplicitLowerBounds(w), getImplicitLowerBounds(other))
 <a class="jxr_linenumber" name="L1627" href="#L1627">1627</a>               
 &amp;&amp; equals(getImplicitUpperBounds(w), getImplicitUpperBounds(other));
 <a class="jxr_linenumber" name="L1628" href="#L1628">1628</a>         }
-<a class="jxr_linenumber" name="L1629" href="#L1629">1629</a>         <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L1629" href="#L1629">1629</a>         <strong
class="jxr_keyword">return</strong> false;
 <a class="jxr_linenumber" name="L1630" href="#L1630">1630</a>     }
 <a class="jxr_linenumber" name="L1631" href="#L1631">1631</a> 
 <a class="jxr_linenumber" name="L1632" href="#L1632">1632</a>     <em class="jxr_javadoccomment">/**</em>



Mime
View raw message