commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r949864 [8/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/commons...
Date Fri, 01 May 2015 20:55:53 GMT
Modified: websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/builder/HashCodeBuilder.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/builder/HashCodeBuilder.html (original)
+++ websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/builder/HashCodeBuilder.html Fri May  1 20:55:51 2015
@@ -864,119 +864,147 @@
 <span class="sourceLineNo">856</span>                    append((Object[]) object);<a name="line.856"></a>
 <span class="sourceLineNo">857</span>                }<a name="line.857"></a>
 <span class="sourceLineNo">858</span>            } else {<a name="line.858"></a>
-<span class="sourceLineNo">859</span>                iTotal = iTotal * iConstant + object.hashCode();<a name="line.859"></a>
-<span class="sourceLineNo">860</span>            }<a name="line.860"></a>
-<span class="sourceLineNo">861</span>        }<a name="line.861"></a>
-<span class="sourceLineNo">862</span>        return this;<a name="line.862"></a>
-<span class="sourceLineNo">863</span>    }<a name="line.863"></a>
-<span class="sourceLineNo">864</span><a name="line.864"></a>
-<span class="sourceLineNo">865</span>    /**<a name="line.865"></a>
-<span class="sourceLineNo">866</span>     * &lt;p&gt;<a name="line.866"></a>
-<span class="sourceLineNo">867</span>     * Append a &lt;code&gt;hashCode&lt;/code&gt; for an &lt;code&gt;Object&lt;/code&gt; array.<a name="line.867"></a>
-<span class="sourceLineNo">868</span>     * &lt;/p&gt;<a name="line.868"></a>
-<span class="sourceLineNo">869</span>     *<a name="line.869"></a>
-<span class="sourceLineNo">870</span>     * @param array<a name="line.870"></a>
-<span class="sourceLineNo">871</span>     *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;<a name="line.871"></a>
-<span class="sourceLineNo">872</span>     * @return this<a name="line.872"></a>
-<span class="sourceLineNo">873</span>     */<a name="line.873"></a>
-<span class="sourceLineNo">874</span>    public HashCodeBuilder append(final Object[] array) {<a name="line.874"></a>
-<span class="sourceLineNo">875</span>        if (array == null) {<a name="line.875"></a>
-<span class="sourceLineNo">876</span>            iTotal = iTotal * iConstant;<a name="line.876"></a>
-<span class="sourceLineNo">877</span>        } else {<a name="line.877"></a>
-<span class="sourceLineNo">878</span>            for (final Object element : array) {<a name="line.878"></a>
-<span class="sourceLineNo">879</span>                append(element);<a name="line.879"></a>
-<span class="sourceLineNo">880</span>            }<a name="line.880"></a>
-<span class="sourceLineNo">881</span>        }<a name="line.881"></a>
-<span class="sourceLineNo">882</span>        return this;<a name="line.882"></a>
-<span class="sourceLineNo">883</span>    }<a name="line.883"></a>
-<span class="sourceLineNo">884</span><a name="line.884"></a>
-<span class="sourceLineNo">885</span>    /**<a name="line.885"></a>
-<span class="sourceLineNo">886</span>     * &lt;p&gt;<a name="line.886"></a>
-<span class="sourceLineNo">887</span>     * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt;.<a name="line.887"></a>
-<span class="sourceLineNo">888</span>     * &lt;/p&gt;<a name="line.888"></a>
-<span class="sourceLineNo">889</span>     *<a name="line.889"></a>
-<span class="sourceLineNo">890</span>     * @param value<a name="line.890"></a>
-<span class="sourceLineNo">891</span>     *            the short to add to the &lt;code&gt;hashCode&lt;/code&gt;<a name="line.891"></a>
-<span class="sourceLineNo">892</span>     * @return this<a name="line.892"></a>
-<span class="sourceLineNo">893</span>     */<a name="line.893"></a>
-<span class="sourceLineNo">894</span>    public HashCodeBuilder append(final short value) {<a name="line.894"></a>
-<span class="sourceLineNo">895</span>        iTotal = iTotal * iConstant + value;<a name="line.895"></a>
-<span class="sourceLineNo">896</span>        return this;<a name="line.896"></a>
-<span class="sourceLineNo">897</span>    }<a name="line.897"></a>
-<span class="sourceLineNo">898</span><a name="line.898"></a>
-<span class="sourceLineNo">899</span>    /**<a name="line.899"></a>
-<span class="sourceLineNo">900</span>     * &lt;p&gt;<a name="line.900"></a>
-<span class="sourceLineNo">901</span>     * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt; array.<a name="line.901"></a>
-<span class="sourceLineNo">902</span>     * &lt;/p&gt;<a name="line.902"></a>
-<span class="sourceLineNo">903</span>     *<a name="line.903"></a>
-<span class="sourceLineNo">904</span>     * @param array<a name="line.904"></a>
-<span class="sourceLineNo">905</span>     *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;<a name="line.905"></a>
-<span class="sourceLineNo">906</span>     * @return this<a name="line.906"></a>
-<span class="sourceLineNo">907</span>     */<a name="line.907"></a>
-<span class="sourceLineNo">908</span>    public HashCodeBuilder append(final short[] array) {<a name="line.908"></a>
-<span class="sourceLineNo">909</span>        if (array == null) {<a name="line.909"></a>
-<span class="sourceLineNo">910</span>            iTotal = iTotal * iConstant;<a name="line.910"></a>
-<span class="sourceLineNo">911</span>        } else {<a name="line.911"></a>
-<span class="sourceLineNo">912</span>            for (final short element : array) {<a name="line.912"></a>
-<span class="sourceLineNo">913</span>                append(element);<a name="line.913"></a>
-<span class="sourceLineNo">914</span>            }<a name="line.914"></a>
-<span class="sourceLineNo">915</span>        }<a name="line.915"></a>
-<span class="sourceLineNo">916</span>        return this;<a name="line.916"></a>
-<span class="sourceLineNo">917</span>    }<a name="line.917"></a>
-<span class="sourceLineNo">918</span><a name="line.918"></a>
-<span class="sourceLineNo">919</span>    /**<a name="line.919"></a>
-<span class="sourceLineNo">920</span>     * &lt;p&gt;<a name="line.920"></a>
-<span class="sourceLineNo">921</span>     * Adds the result of super.hashCode() to this builder.<a name="line.921"></a>
-<span class="sourceLineNo">922</span>     * &lt;/p&gt;<a name="line.922"></a>
-<span class="sourceLineNo">923</span>     *<a name="line.923"></a>
-<span class="sourceLineNo">924</span>     * @param superHashCode<a name="line.924"></a>
-<span class="sourceLineNo">925</span>     *            the result of calling &lt;code&gt;super.hashCode()&lt;/code&gt;<a name="line.925"></a>
-<span class="sourceLineNo">926</span>     * @return this HashCodeBuilder, used to chain calls.<a name="line.926"></a>
-<span class="sourceLineNo">927</span>     * @since 2.0<a name="line.927"></a>
-<span class="sourceLineNo">928</span>     */<a name="line.928"></a>
-<span class="sourceLineNo">929</span>    public HashCodeBuilder appendSuper(final int superHashCode) {<a name="line.929"></a>
-<span class="sourceLineNo">930</span>        iTotal = iTotal * iConstant + superHashCode;<a name="line.930"></a>
-<span class="sourceLineNo">931</span>        return this;<a name="line.931"></a>
-<span class="sourceLineNo">932</span>    }<a name="line.932"></a>
-<span class="sourceLineNo">933</span><a name="line.933"></a>
-<span class="sourceLineNo">934</span>    /**<a name="line.934"></a>
-<span class="sourceLineNo">935</span>     * &lt;p&gt;<a name="line.935"></a>
-<span class="sourceLineNo">936</span>     * Return the computed &lt;code&gt;hashCode&lt;/code&gt;.<a name="line.936"></a>
-<span class="sourceLineNo">937</span>     * &lt;/p&gt;<a name="line.937"></a>
-<span class="sourceLineNo">938</span>     *<a name="line.938"></a>
-<span class="sourceLineNo">939</span>     * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended<a name="line.939"></a>
-<span class="sourceLineNo">940</span>     */<a name="line.940"></a>
-<span class="sourceLineNo">941</span>    public int toHashCode() {<a name="line.941"></a>
-<span class="sourceLineNo">942</span>        return iTotal;<a name="line.942"></a>
-<span class="sourceLineNo">943</span>    }<a name="line.943"></a>
-<span class="sourceLineNo">944</span><a name="line.944"></a>
-<span class="sourceLineNo">945</span>    /**<a name="line.945"></a>
-<span class="sourceLineNo">946</span>     * Returns the computed &lt;code&gt;hashCode&lt;/code&gt;.<a name="line.946"></a>
-<span class="sourceLineNo">947</span>     *<a name="line.947"></a>
-<span class="sourceLineNo">948</span>     * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended<a name="line.948"></a>
-<span class="sourceLineNo">949</span>     *<a name="line.949"></a>
-<span class="sourceLineNo">950</span>     * @since 3.0<a name="line.950"></a>
-<span class="sourceLineNo">951</span>     */<a name="line.951"></a>
-<span class="sourceLineNo">952</span>    @Override<a name="line.952"></a>
-<span class="sourceLineNo">953</span>    public Integer build() {<a name="line.953"></a>
-<span class="sourceLineNo">954</span>        return Integer.valueOf(toHashCode());<a name="line.954"></a>
-<span class="sourceLineNo">955</span>    }<a name="line.955"></a>
-<span class="sourceLineNo">956</span><a name="line.956"></a>
-<span class="sourceLineNo">957</span>    /**<a name="line.957"></a>
-<span class="sourceLineNo">958</span>     * &lt;p&gt;<a name="line.958"></a>
-<span class="sourceLineNo">959</span>     * The computed &lt;code&gt;hashCode&lt;/code&gt; from toHashCode() is returned due to the likelihood<a name="line.959"></a>
-<span class="sourceLineNo">960</span>     * of bugs in mis-calling toHashCode() and the unlikeliness of it mattering what the hashCode for<a name="line.960"></a>
-<span class="sourceLineNo">961</span>     * HashCodeBuilder itself is.&lt;/p&gt;<a name="line.961"></a>
-<span class="sourceLineNo">962</span>     *<a name="line.962"></a>
-<span class="sourceLineNo">963</span>     * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended<a name="line.963"></a>
-<span class="sourceLineNo">964</span>     * @since 2.5<a name="line.964"></a>
-<span class="sourceLineNo">965</span>     */<a name="line.965"></a>
-<span class="sourceLineNo">966</span>    @Override<a name="line.966"></a>
-<span class="sourceLineNo">967</span>    public int hashCode() {<a name="line.967"></a>
-<span class="sourceLineNo">968</span>        return toHashCode();<a name="line.968"></a>
-<span class="sourceLineNo">969</span>    }<a name="line.969"></a>
-<span class="sourceLineNo">970</span><a name="line.970"></a>
-<span class="sourceLineNo">971</span>}<a name="line.971"></a>
+<span class="sourceLineNo">859</span>                if (object instanceof Long) {<a name="line.859"></a>
+<span class="sourceLineNo">860</span>                    append(((Long) object).longValue());<a name="line.860"></a>
+<span class="sourceLineNo">861</span>                } else if (object instanceof Integer) {<a name="line.861"></a>
+<span class="sourceLineNo">862</span>                    append(((Integer) object).intValue());<a name="line.862"></a>
+<span class="sourceLineNo">863</span>                } else if (object instanceof Short) {<a name="line.863"></a>
+<span class="sourceLineNo">864</span>                    append(((Short) object).shortValue());<a name="line.864"></a>
+<span class="sourceLineNo">865</span>                } else if (object instanceof Character) {<a name="line.865"></a>
+<span class="sourceLineNo">866</span>                    append(((Character) object).charValue());<a name="line.866"></a>
+<span class="sourceLineNo">867</span>                } else if (object instanceof Byte) {<a name="line.867"></a>
+<span class="sourceLineNo">868</span>                    append(((Byte) object).byteValue());<a name="line.868"></a>
+<span class="sourceLineNo">869</span>                } else if (object instanceof Double) {<a name="line.869"></a>
+<span class="sourceLineNo">870</span>                    append(((Double) object).doubleValue());<a name="line.870"></a>
+<span class="sourceLineNo">871</span>                } else if (object instanceof Float) {<a name="line.871"></a>
+<span class="sourceLineNo">872</span>                    append(((Float) object).floatValue());<a name="line.872"></a>
+<span class="sourceLineNo">873</span>                } else if (object instanceof Boolean) {<a name="line.873"></a>
+<span class="sourceLineNo">874</span>                    append(((Boolean) object).booleanValue());<a name="line.874"></a>
+<span class="sourceLineNo">875</span>                } else if (object instanceof String) {<a name="line.875"></a>
+<span class="sourceLineNo">876</span>                    iTotal = iTotal * iConstant + object.hashCode();<a name="line.876"></a>
+<span class="sourceLineNo">877</span>                } else {<a name="line.877"></a>
+<span class="sourceLineNo">878</span>                    if (isRegistered(object)) {<a name="line.878"></a>
+<span class="sourceLineNo">879</span>                        return this;<a name="line.879"></a>
+<span class="sourceLineNo">880</span>                    }<a name="line.880"></a>
+<span class="sourceLineNo">881</span>                    try {<a name="line.881"></a>
+<span class="sourceLineNo">882</span>                        register(object);<a name="line.882"></a>
+<span class="sourceLineNo">883</span>                        iTotal = iTotal * iConstant + object.hashCode();<a name="line.883"></a>
+<span class="sourceLineNo">884</span>                    } finally {<a name="line.884"></a>
+<span class="sourceLineNo">885</span>                        unregister(object);<a name="line.885"></a>
+<span class="sourceLineNo">886</span>                    }<a name="line.886"></a>
+<span class="sourceLineNo">887</span>                }<a name="line.887"></a>
+<span class="sourceLineNo">888</span>            }<a name="line.888"></a>
+<span class="sourceLineNo">889</span>        }<a name="line.889"></a>
+<span class="sourceLineNo">890</span>        return this;<a name="line.890"></a>
+<span class="sourceLineNo">891</span>    }<a name="line.891"></a>
+<span class="sourceLineNo">892</span><a name="line.892"></a>
+<span class="sourceLineNo">893</span>    /**<a name="line.893"></a>
+<span class="sourceLineNo">894</span>     * &lt;p&gt;<a name="line.894"></a>
+<span class="sourceLineNo">895</span>     * Append a &lt;code&gt;hashCode&lt;/code&gt; for an &lt;code&gt;Object&lt;/code&gt; array.<a name="line.895"></a>
+<span class="sourceLineNo">896</span>     * &lt;/p&gt;<a name="line.896"></a>
+<span class="sourceLineNo">897</span>     *<a name="line.897"></a>
+<span class="sourceLineNo">898</span>     * @param array<a name="line.898"></a>
+<span class="sourceLineNo">899</span>     *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;<a name="line.899"></a>
+<span class="sourceLineNo">900</span>     * @return this<a name="line.900"></a>
+<span class="sourceLineNo">901</span>     */<a name="line.901"></a>
+<span class="sourceLineNo">902</span>    public HashCodeBuilder append(final Object[] array) {<a name="line.902"></a>
+<span class="sourceLineNo">903</span>        if (array == null) {<a name="line.903"></a>
+<span class="sourceLineNo">904</span>            iTotal = iTotal * iConstant;<a name="line.904"></a>
+<span class="sourceLineNo">905</span>        } else {<a name="line.905"></a>
+<span class="sourceLineNo">906</span>            for (final Object element : array) {<a name="line.906"></a>
+<span class="sourceLineNo">907</span>                append(element);<a name="line.907"></a>
+<span class="sourceLineNo">908</span>            }<a name="line.908"></a>
+<span class="sourceLineNo">909</span>        }<a name="line.909"></a>
+<span class="sourceLineNo">910</span>        return this;<a name="line.910"></a>
+<span class="sourceLineNo">911</span>    }<a name="line.911"></a>
+<span class="sourceLineNo">912</span><a name="line.912"></a>
+<span class="sourceLineNo">913</span>    /**<a name="line.913"></a>
+<span class="sourceLineNo">914</span>     * &lt;p&gt;<a name="line.914"></a>
+<span class="sourceLineNo">915</span>     * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt;.<a name="line.915"></a>
+<span class="sourceLineNo">916</span>     * &lt;/p&gt;<a name="line.916"></a>
+<span class="sourceLineNo">917</span>     *<a name="line.917"></a>
+<span class="sourceLineNo">918</span>     * @param value<a name="line.918"></a>
+<span class="sourceLineNo">919</span>     *            the short to add to the &lt;code&gt;hashCode&lt;/code&gt;<a name="line.919"></a>
+<span class="sourceLineNo">920</span>     * @return this<a name="line.920"></a>
+<span class="sourceLineNo">921</span>     */<a name="line.921"></a>
+<span class="sourceLineNo">922</span>    public HashCodeBuilder append(final short value) {<a name="line.922"></a>
+<span class="sourceLineNo">923</span>        iTotal = iTotal * iConstant + value;<a name="line.923"></a>
+<span class="sourceLineNo">924</span>        return this;<a name="line.924"></a>
+<span class="sourceLineNo">925</span>    }<a name="line.925"></a>
+<span class="sourceLineNo">926</span><a name="line.926"></a>
+<span class="sourceLineNo">927</span>    /**<a name="line.927"></a>
+<span class="sourceLineNo">928</span>     * &lt;p&gt;<a name="line.928"></a>
+<span class="sourceLineNo">929</span>     * Append a &lt;code&gt;hashCode&lt;/code&gt; for a &lt;code&gt;short&lt;/code&gt; array.<a name="line.929"></a>
+<span class="sourceLineNo">930</span>     * &lt;/p&gt;<a name="line.930"></a>
+<span class="sourceLineNo">931</span>     *<a name="line.931"></a>
+<span class="sourceLineNo">932</span>     * @param array<a name="line.932"></a>
+<span class="sourceLineNo">933</span>     *            the array to add to the &lt;code&gt;hashCode&lt;/code&gt;<a name="line.933"></a>
+<span class="sourceLineNo">934</span>     * @return this<a name="line.934"></a>
+<span class="sourceLineNo">935</span>     */<a name="line.935"></a>
+<span class="sourceLineNo">936</span>    public HashCodeBuilder append(final short[] array) {<a name="line.936"></a>
+<span class="sourceLineNo">937</span>        if (array == null) {<a name="line.937"></a>
+<span class="sourceLineNo">938</span>            iTotal = iTotal * iConstant;<a name="line.938"></a>
+<span class="sourceLineNo">939</span>        } else {<a name="line.939"></a>
+<span class="sourceLineNo">940</span>            for (final short element : array) {<a name="line.940"></a>
+<span class="sourceLineNo">941</span>                append(element);<a name="line.941"></a>
+<span class="sourceLineNo">942</span>            }<a name="line.942"></a>
+<span class="sourceLineNo">943</span>        }<a name="line.943"></a>
+<span class="sourceLineNo">944</span>        return this;<a name="line.944"></a>
+<span class="sourceLineNo">945</span>    }<a name="line.945"></a>
+<span class="sourceLineNo">946</span><a name="line.946"></a>
+<span class="sourceLineNo">947</span>    /**<a name="line.947"></a>
+<span class="sourceLineNo">948</span>     * &lt;p&gt;<a name="line.948"></a>
+<span class="sourceLineNo">949</span>     * Adds the result of super.hashCode() to this builder.<a name="line.949"></a>
+<span class="sourceLineNo">950</span>     * &lt;/p&gt;<a name="line.950"></a>
+<span class="sourceLineNo">951</span>     *<a name="line.951"></a>
+<span class="sourceLineNo">952</span>     * @param superHashCode<a name="line.952"></a>
+<span class="sourceLineNo">953</span>     *            the result of calling &lt;code&gt;super.hashCode()&lt;/code&gt;<a name="line.953"></a>
+<span class="sourceLineNo">954</span>     * @return this HashCodeBuilder, used to chain calls.<a name="line.954"></a>
+<span class="sourceLineNo">955</span>     * @since 2.0<a name="line.955"></a>
+<span class="sourceLineNo">956</span>     */<a name="line.956"></a>
+<span class="sourceLineNo">957</span>    public HashCodeBuilder appendSuper(final int superHashCode) {<a name="line.957"></a>
+<span class="sourceLineNo">958</span>        iTotal = iTotal * iConstant + superHashCode;<a name="line.958"></a>
+<span class="sourceLineNo">959</span>        return this;<a name="line.959"></a>
+<span class="sourceLineNo">960</span>    }<a name="line.960"></a>
+<span class="sourceLineNo">961</span><a name="line.961"></a>
+<span class="sourceLineNo">962</span>    /**<a name="line.962"></a>
+<span class="sourceLineNo">963</span>     * &lt;p&gt;<a name="line.963"></a>
+<span class="sourceLineNo">964</span>     * Return the computed &lt;code&gt;hashCode&lt;/code&gt;.<a name="line.964"></a>
+<span class="sourceLineNo">965</span>     * &lt;/p&gt;<a name="line.965"></a>
+<span class="sourceLineNo">966</span>     *<a name="line.966"></a>
+<span class="sourceLineNo">967</span>     * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended<a name="line.967"></a>
+<span class="sourceLineNo">968</span>     */<a name="line.968"></a>
+<span class="sourceLineNo">969</span>    public int toHashCode() {<a name="line.969"></a>
+<span class="sourceLineNo">970</span>        return iTotal;<a name="line.970"></a>
+<span class="sourceLineNo">971</span>    }<a name="line.971"></a>
+<span class="sourceLineNo">972</span><a name="line.972"></a>
+<span class="sourceLineNo">973</span>    /**<a name="line.973"></a>
+<span class="sourceLineNo">974</span>     * Returns the computed &lt;code&gt;hashCode&lt;/code&gt;.<a name="line.974"></a>
+<span class="sourceLineNo">975</span>     *<a name="line.975"></a>
+<span class="sourceLineNo">976</span>     * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended<a name="line.976"></a>
+<span class="sourceLineNo">977</span>     *<a name="line.977"></a>
+<span class="sourceLineNo">978</span>     * @since 3.0<a name="line.978"></a>
+<span class="sourceLineNo">979</span>     */<a name="line.979"></a>
+<span class="sourceLineNo">980</span>    @Override<a name="line.980"></a>
+<span class="sourceLineNo">981</span>    public Integer build() {<a name="line.981"></a>
+<span class="sourceLineNo">982</span>        return Integer.valueOf(toHashCode());<a name="line.982"></a>
+<span class="sourceLineNo">983</span>    }<a name="line.983"></a>
+<span class="sourceLineNo">984</span><a name="line.984"></a>
+<span class="sourceLineNo">985</span>    /**<a name="line.985"></a>
+<span class="sourceLineNo">986</span>     * &lt;p&gt;<a name="line.986"></a>
+<span class="sourceLineNo">987</span>     * The computed &lt;code&gt;hashCode&lt;/code&gt; from toHashCode() is returned due to the likelihood<a name="line.987"></a>
+<span class="sourceLineNo">988</span>     * of bugs in mis-calling toHashCode() and the unlikeliness of it mattering what the hashCode for<a name="line.988"></a>
+<span class="sourceLineNo">989</span>     * HashCodeBuilder itself is.&lt;/p&gt;<a name="line.989"></a>
+<span class="sourceLineNo">990</span>     *<a name="line.990"></a>
+<span class="sourceLineNo">991</span>     * @return &lt;code&gt;hashCode&lt;/code&gt; based on the fields appended<a name="line.991"></a>
+<span class="sourceLineNo">992</span>     * @since 2.5<a name="line.992"></a>
+<span class="sourceLineNo">993</span>     */<a name="line.993"></a>
+<span class="sourceLineNo">994</span>    @Override<a name="line.994"></a>
+<span class="sourceLineNo">995</span>    public int hashCode() {<a name="line.995"></a>
+<span class="sourceLineNo">996</span>        return toHashCode();<a name="line.996"></a>
+<span class="sourceLineNo">997</span>    }<a name="line.997"></a>
+<span class="sourceLineNo">998</span><a name="line.998"></a>
+<span class="sourceLineNo">999</span>}<a name="line.999"></a>
 
 
 

Modified: websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/reflect/TypeUtils.WildcardTypeBuilder.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/reflect/TypeUtils.WildcardTypeBuilder.html (original)
+++ websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/reflect/TypeUtils.WildcardTypeBuilder.html Fri May  1 20:55:51 2015
@@ -1508,7 +1508,7 @@
 <span class="sourceLineNo">1500</span>        }<a name="line.1500"></a>
 <span class="sourceLineNo">1501</span>        Validate.noNullElements(typeArguments, "null type argument at index %s");<a name="line.1501"></a>
 <span class="sourceLineNo">1502</span>        Validate.isTrue(raw.getTypeParameters().length == typeArguments.length,<a name="line.1502"></a>
-<span class="sourceLineNo">1503</span>            "invalid number of type parameters specified: expected %s, got %s", raw.getTypeParameters().length,<a name="line.1503"></a>
+<span class="sourceLineNo">1503</span>            "invalid number of type parameters specified: expected %d, got %d", raw.getTypeParameters().length,<a name="line.1503"></a>
 <span class="sourceLineNo">1504</span>            typeArguments.length);<a name="line.1504"></a>
 <span class="sourceLineNo">1505</span><a name="line.1505"></a>
 <span class="sourceLineNo">1506</span>        return new ParameterizedTypeImpl(raw, useOwner, typeArguments);<a name="line.1506"></a>
@@ -1634,7 +1634,7 @@
 <span class="sourceLineNo">1626</span>            return equals(getImplicitLowerBounds(w), getImplicitLowerBounds(other))<a name="line.1626"></a>
 <span class="sourceLineNo">1627</span>                &amp;&amp; equals(getImplicitUpperBounds(w), getImplicitUpperBounds(other));<a name="line.1627"></a>
 <span class="sourceLineNo">1628</span>        }<a name="line.1628"></a>
-<span class="sourceLineNo">1629</span>        return true;<a name="line.1629"></a>
+<span class="sourceLineNo">1629</span>        return false;<a name="line.1629"></a>
 <span class="sourceLineNo">1630</span>    }<a name="line.1630"></a>
 <span class="sourceLineNo">1631</span><a name="line.1631"></a>
 <span class="sourceLineNo">1632</span>    /**<a name="line.1632"></a>

Modified: websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/reflect/TypeUtils.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/reflect/TypeUtils.html (original)
+++ websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/reflect/TypeUtils.html Fri May  1 20:55:51 2015
@@ -1508,7 +1508,7 @@
 <span class="sourceLineNo">1500</span>        }<a name="line.1500"></a>
 <span class="sourceLineNo">1501</span>        Validate.noNullElements(typeArguments, "null type argument at index %s");<a name="line.1501"></a>
 <span class="sourceLineNo">1502</span>        Validate.isTrue(raw.getTypeParameters().length == typeArguments.length,<a name="line.1502"></a>
-<span class="sourceLineNo">1503</span>            "invalid number of type parameters specified: expected %s, got %s", raw.getTypeParameters().length,<a name="line.1503"></a>
+<span class="sourceLineNo">1503</span>            "invalid number of type parameters specified: expected %d, got %d", raw.getTypeParameters().length,<a name="line.1503"></a>
 <span class="sourceLineNo">1504</span>            typeArguments.length);<a name="line.1504"></a>
 <span class="sourceLineNo">1505</span><a name="line.1505"></a>
 <span class="sourceLineNo">1506</span>        return new ParameterizedTypeImpl(raw, useOwner, typeArguments);<a name="line.1506"></a>
@@ -1634,7 +1634,7 @@
 <span class="sourceLineNo">1626</span>            return equals(getImplicitLowerBounds(w), getImplicitLowerBounds(other))<a name="line.1626"></a>
 <span class="sourceLineNo">1627</span>                &amp;&amp; equals(getImplicitUpperBounds(w), getImplicitUpperBounds(other));<a name="line.1627"></a>
 <span class="sourceLineNo">1628</span>        }<a name="line.1628"></a>
-<span class="sourceLineNo">1629</span>        return true;<a name="line.1629"></a>
+<span class="sourceLineNo">1629</span>        return false;<a name="line.1629"></a>
 <span class="sourceLineNo">1630</span>    }<a name="line.1630"></a>
 <span class="sourceLineNo">1631</span><a name="line.1631"></a>
 <span class="sourceLineNo">1632</span>    /**<a name="line.1632"></a>

Modified: websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/time/DateFormatUtils.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/time/DateFormatUtils.html (original)
+++ websites/production/commons/content/proper/commons-lang/apidocs/src-html/org/apache/commons/lang3/time/DateFormatUtils.html Fri May  1 20:55:51 2015
@@ -51,284 +51,293 @@
 <span class="sourceLineNo">043</span>    /**<a name="line.43"></a>
 <span class="sourceLineNo">044</span>     * ISO 8601 formatter for date-time without time zone.<a name="line.44"></a>
 <span class="sourceLineNo">045</span>     * The format used is {@code yyyy-MM-dd'T'HH:mm:ss}.<a name="line.45"></a>
-<span class="sourceLineNo">046</span>     */<a name="line.46"></a>
-<span class="sourceLineNo">047</span>    public static final FastDateFormat ISO_DATETIME_FORMAT<a name="line.47"></a>
-<span class="sourceLineNo">048</span>            = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss");<a name="line.48"></a>
-<span class="sourceLineNo">049</span><a name="line.49"></a>
-<span class="sourceLineNo">050</span>    /**<a name="line.50"></a>
-<span class="sourceLineNo">051</span>     * ISO 8601 formatter for date-time with time zone.<a name="line.51"></a>
-<span class="sourceLineNo">052</span>     * The format used is {@code yyyy-MM-dd'T'HH:mm:ssZZ}.<a name="line.52"></a>
-<span class="sourceLineNo">053</span>     */<a name="line.53"></a>
-<span class="sourceLineNo">054</span>    public static final FastDateFormat ISO_DATETIME_TIME_ZONE_FORMAT<a name="line.54"></a>
-<span class="sourceLineNo">055</span>            = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ssZZ");<a name="line.55"></a>
-<span class="sourceLineNo">056</span><a name="line.56"></a>
-<span class="sourceLineNo">057</span>    /**<a name="line.57"></a>
-<span class="sourceLineNo">058</span>     * ISO 8601 formatter for date without time zone.<a name="line.58"></a>
-<span class="sourceLineNo">059</span>     * The format used is {@code yyyy-MM-dd}.<a name="line.59"></a>
-<span class="sourceLineNo">060</span>     */<a name="line.60"></a>
-<span class="sourceLineNo">061</span>    public static final FastDateFormat ISO_DATE_FORMAT<a name="line.61"></a>
-<span class="sourceLineNo">062</span>            = FastDateFormat.getInstance("yyyy-MM-dd");<a name="line.62"></a>
-<span class="sourceLineNo">063</span><a name="line.63"></a>
-<span class="sourceLineNo">064</span>    /**<a name="line.64"></a>
-<span class="sourceLineNo">065</span>     * ISO 8601-like formatter for date with time zone.<a name="line.65"></a>
-<span class="sourceLineNo">066</span>     * The format used is {@code yyyy-MM-ddZZ}.<a name="line.66"></a>
-<span class="sourceLineNo">067</span>     * This pattern does not comply with the formal ISO 8601 specification<a name="line.67"></a>
-<span class="sourceLineNo">068</span>     * as the standard does not allow a time zone  without a time.<a name="line.68"></a>
-<span class="sourceLineNo">069</span>     */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    public static final FastDateFormat ISO_DATE_TIME_ZONE_FORMAT<a name="line.70"></a>
-<span class="sourceLineNo">071</span>            = FastDateFormat.getInstance("yyyy-MM-ddZZ");<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>    /**<a name="line.73"></a>
-<span class="sourceLineNo">074</span>     * ISO 8601 formatter for time without time zone.<a name="line.74"></a>
-<span class="sourceLineNo">075</span>     * The format used is {@code 'T'HH:mm:ss}.<a name="line.75"></a>
-<span class="sourceLineNo">076</span>     */<a name="line.76"></a>
-<span class="sourceLineNo">077</span>    public static final FastDateFormat ISO_TIME_FORMAT<a name="line.77"></a>
-<span class="sourceLineNo">078</span>            = FastDateFormat.getInstance("'T'HH:mm:ss");<a name="line.78"></a>
-<span class="sourceLineNo">079</span><a name="line.79"></a>
-<span class="sourceLineNo">080</span>    /**<a name="line.80"></a>
-<span class="sourceLineNo">081</span>     * ISO 8601 formatter for time with time zone.<a name="line.81"></a>
-<span class="sourceLineNo">082</span>     * The format used is {@code 'T'HH:mm:ssZZ}.<a name="line.82"></a>
-<span class="sourceLineNo">083</span>     */<a name="line.83"></a>
-<span class="sourceLineNo">084</span>    public static final FastDateFormat ISO_TIME_TIME_ZONE_FORMAT<a name="line.84"></a>
-<span class="sourceLineNo">085</span>            = FastDateFormat.getInstance("'T'HH:mm:ssZZ");<a name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span>    /**<a name="line.87"></a>
-<span class="sourceLineNo">088</span>     * ISO 8601-like formatter for time without time zone.<a name="line.88"></a>
-<span class="sourceLineNo">089</span>     * The format used is {@code HH:mm:ss}.<a name="line.89"></a>
-<span class="sourceLineNo">090</span>     * This pattern does not comply with the formal ISO 8601 specification<a name="line.90"></a>
-<span class="sourceLineNo">091</span>     * as the standard requires the 'T' prefix for times.<a name="line.91"></a>
-<span class="sourceLineNo">092</span>     */<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    public static final FastDateFormat ISO_TIME_NO_T_FORMAT<a name="line.93"></a>
-<span class="sourceLineNo">094</span>            = FastDateFormat.getInstance("HH:mm:ss");<a name="line.94"></a>
-<span class="sourceLineNo">095</span><a name="line.95"></a>
-<span class="sourceLineNo">096</span>    /**<a name="line.96"></a>
-<span class="sourceLineNo">097</span>     * ISO 8601-like formatter for time with time zone.<a name="line.97"></a>
-<span class="sourceLineNo">098</span>     * The format used is {@code HH:mm:ssZZ}.<a name="line.98"></a>
-<span class="sourceLineNo">099</span>     * This pattern does not comply with the formal ISO 8601 specification<a name="line.99"></a>
-<span class="sourceLineNo">100</span>     * as the standard requires the 'T' prefix for times.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>     */<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    public static final FastDateFormat ISO_TIME_NO_T_TIME_ZONE_FORMAT<a name="line.102"></a>
-<span class="sourceLineNo">103</span>            = FastDateFormat.getInstance("HH:mm:ssZZ");<a name="line.103"></a>
-<span class="sourceLineNo">104</span><a name="line.104"></a>
-<span class="sourceLineNo">105</span>    /**<a name="line.105"></a>
-<span class="sourceLineNo">106</span>     * SMTP (and probably other) date headers.<a name="line.106"></a>
-<span class="sourceLineNo">107</span>     * The format used is {@code EEE, dd MMM yyyy HH:mm:ss Z} in US locale.<a name="line.107"></a>
-<span class="sourceLineNo">108</span>     */<a name="line.108"></a>
-<span class="sourceLineNo">109</span>    public static final FastDateFormat SMTP_DATETIME_FORMAT<a name="line.109"></a>
-<span class="sourceLineNo">110</span>            = FastDateFormat.getInstance("EEE, dd MMM yyyy HH:mm:ss Z", Locale.US);<a name="line.110"></a>
-<span class="sourceLineNo">111</span><a name="line.111"></a>
-<span class="sourceLineNo">112</span>    //-----------------------------------------------------------------------<a name="line.112"></a>
+<span class="sourceLineNo">046</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     */<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    public static final FastDateFormat ISO_DATETIME_FORMAT<a name="line.48"></a>
+<span class="sourceLineNo">049</span>            = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss");<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>    /**<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * ISO 8601 formatter for date-time with time zone.<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     * The format used is {@code yyyy-MM-dd'T'HH:mm:ssZZ}.<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     */<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    public static final FastDateFormat ISO_DATETIME_TIME_ZONE_FORMAT<a name="line.56"></a>
+<span class="sourceLineNo">057</span>            = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ssZZ");<a name="line.57"></a>
+<span class="sourceLineNo">058</span><a name="line.58"></a>
+<span class="sourceLineNo">059</span>    /**<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * ISO 8601 formatter for date without time zone.<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     * The format used is {@code yyyy-MM-dd}.<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     */<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    public static final FastDateFormat ISO_DATE_FORMAT<a name="line.64"></a>
+<span class="sourceLineNo">065</span>            = FastDateFormat.getInstance("yyyy-MM-dd");<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span>    /**<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     * ISO 8601-like formatter for date with time zone.<a name="line.68"></a>
+<span class="sourceLineNo">069</span>     * The format used is {@code yyyy-MM-ddZZ}.<a name="line.69"></a>
+<span class="sourceLineNo">070</span>     * This pattern does not comply with the formal ISO 8601 specification<a name="line.70"></a>
+<span class="sourceLineNo">071</span>     * as the standard does not allow a time zone  without a time.<a name="line.71"></a>
+<span class="sourceLineNo">072</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.72"></a>
+<span class="sourceLineNo">073</span>     */<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    public static final FastDateFormat ISO_DATE_TIME_ZONE_FORMAT<a name="line.74"></a>
+<span class="sourceLineNo">075</span>            = FastDateFormat.getInstance("yyyy-MM-ddZZ");<a name="line.75"></a>
+<span class="sourceLineNo">076</span><a name="line.76"></a>
+<span class="sourceLineNo">077</span>    /**<a name="line.77"></a>
+<span class="sourceLineNo">078</span>     * ISO 8601 formatter for time without time zone.<a name="line.78"></a>
+<span class="sourceLineNo">079</span>     * The format used is {@code 'T'HH:mm:ss}.<a name="line.79"></a>
+<span class="sourceLineNo">080</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.80"></a>
+<span class="sourceLineNo">081</span>     */<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    public static final FastDateFormat ISO_TIME_FORMAT<a name="line.82"></a>
+<span class="sourceLineNo">083</span>            = FastDateFormat.getInstance("'T'HH:mm:ss");<a name="line.83"></a>
+<span class="sourceLineNo">084</span><a name="line.84"></a>
+<span class="sourceLineNo">085</span>    /**<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     * ISO 8601 formatter for time with time zone.<a name="line.86"></a>
+<span class="sourceLineNo">087</span>     * The format used is {@code 'T'HH:mm:ssZZ}.<a name="line.87"></a>
+<span class="sourceLineNo">088</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.88"></a>
+<span class="sourceLineNo">089</span>     */<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    public static final FastDateFormat ISO_TIME_TIME_ZONE_FORMAT<a name="line.90"></a>
+<span class="sourceLineNo">091</span>            = FastDateFormat.getInstance("'T'HH:mm:ssZZ");<a name="line.91"></a>
+<span class="sourceLineNo">092</span><a name="line.92"></a>
+<span class="sourceLineNo">093</span>    /**<a name="line.93"></a>
+<span class="sourceLineNo">094</span>     * ISO 8601-like formatter for time without time zone.<a name="line.94"></a>
+<span class="sourceLineNo">095</span>     * The format used is {@code HH:mm:ss}.<a name="line.95"></a>
+<span class="sourceLineNo">096</span>     * This pattern does not comply with the formal ISO 8601 specification<a name="line.96"></a>
+<span class="sourceLineNo">097</span>     * as the standard requires the 'T' prefix for times.<a name="line.97"></a>
+<span class="sourceLineNo">098</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     */<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    public static final FastDateFormat ISO_TIME_NO_T_FORMAT<a name="line.100"></a>
+<span class="sourceLineNo">101</span>            = FastDateFormat.getInstance("HH:mm:ss");<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>    /**<a name="line.103"></a>
+<span class="sourceLineNo">104</span>     * ISO 8601-like formatter for time with time zone.<a name="line.104"></a>
+<span class="sourceLineNo">105</span>     * The format used is {@code HH:mm:ssZZ}.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>     * This pattern does not comply with the formal ISO 8601 specification<a name="line.106"></a>
+<span class="sourceLineNo">107</span>     * as the standard requires the 'T' prefix for times.<a name="line.107"></a>
+<span class="sourceLineNo">108</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.108"></a>
+<span class="sourceLineNo">109</span>     */<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    public static final FastDateFormat ISO_TIME_NO_T_TIME_ZONE_FORMAT<a name="line.110"></a>
+<span class="sourceLineNo">111</span>            = FastDateFormat.getInstance("HH:mm:ssZZ");<a name="line.111"></a>
+<span class="sourceLineNo">112</span><a name="line.112"></a>
 <span class="sourceLineNo">113</span>    /**<a name="line.113"></a>
-<span class="sourceLineNo">114</span>     * &lt;p&gt;DateFormatUtils instances should NOT be constructed in standard programming.&lt;/p&gt;<a name="line.114"></a>
-<span class="sourceLineNo">115</span>     *<a name="line.115"></a>
-<span class="sourceLineNo">116</span>     * &lt;p&gt;This constructor is public to permit tools that require a JavaBean instance<a name="line.116"></a>
-<span class="sourceLineNo">117</span>     * to operate.&lt;/p&gt;<a name="line.117"></a>
-<span class="sourceLineNo">118</span>     */<a name="line.118"></a>
-<span class="sourceLineNo">119</span>    public DateFormatUtils() {<a name="line.119"></a>
-<span class="sourceLineNo">120</span>        super();<a name="line.120"></a>
-<span class="sourceLineNo">121</span>    }<a name="line.121"></a>
-<span class="sourceLineNo">122</span><a name="line.122"></a>
-<span class="sourceLineNo">123</span>    /**<a name="line.123"></a>
-<span class="sourceLineNo">124</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.124"></a>
-<span class="sourceLineNo">125</span>     * <a name="line.125"></a>
-<span class="sourceLineNo">126</span>     * @param millis  the date to format expressed in milliseconds<a name="line.126"></a>
-<span class="sourceLineNo">127</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.127"></a>
-<span class="sourceLineNo">128</span>     * @return the formatted date<a name="line.128"></a>
-<span class="sourceLineNo">129</span>     */<a name="line.129"></a>
-<span class="sourceLineNo">130</span>    public static String formatUTC(final long millis, final String pattern) {<a name="line.130"></a>
-<span class="sourceLineNo">131</span>        return format(new Date(millis), pattern, UTC_TIME_ZONE, null);<a name="line.131"></a>
-<span class="sourceLineNo">132</span>    }<a name="line.132"></a>
-<span class="sourceLineNo">133</span><a name="line.133"></a>
-<span class="sourceLineNo">134</span>    /**<a name="line.134"></a>
-<span class="sourceLineNo">135</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.135"></a>
-<span class="sourceLineNo">136</span>     * <a name="line.136"></a>
-<span class="sourceLineNo">137</span>     * @param date  the date to format, not null<a name="line.137"></a>
-<span class="sourceLineNo">138</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.138"></a>
-<span class="sourceLineNo">139</span>     * @return the formatted date<a name="line.139"></a>
-<span class="sourceLineNo">140</span>     */<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    public static String formatUTC(final Date date, final String pattern) {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>        return format(date, pattern, UTC_TIME_ZONE, null);<a name="line.142"></a>
-<span class="sourceLineNo">143</span>    }<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    <a name="line.144"></a>
-<span class="sourceLineNo">145</span>    /**<a name="line.145"></a>
-<span class="sourceLineNo">146</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>     * <a name="line.147"></a>
-<span class="sourceLineNo">148</span>     * @param millis  the date to format expressed in milliseconds<a name="line.148"></a>
-<span class="sourceLineNo">149</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.149"></a>
-<span class="sourceLineNo">150</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.150"></a>
-<span class="sourceLineNo">151</span>     * @return the formatted date<a name="line.151"></a>
-<span class="sourceLineNo">152</span>     */<a name="line.152"></a>
-<span class="sourceLineNo">153</span>    public static String formatUTC(final long millis, final String pattern, final Locale locale) {<a name="line.153"></a>
-<span class="sourceLineNo">154</span>        return format(new Date(millis), pattern, UTC_TIME_ZONE, locale);<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    }<a name="line.155"></a>
-<span class="sourceLineNo">156</span><a name="line.156"></a>
-<span class="sourceLineNo">157</span>    /**<a name="line.157"></a>
-<span class="sourceLineNo">158</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.158"></a>
-<span class="sourceLineNo">159</span>     * <a name="line.159"></a>
-<span class="sourceLineNo">160</span>     * @param date  the date to format, not null<a name="line.160"></a>
-<span class="sourceLineNo">161</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.161"></a>
-<span class="sourceLineNo">162</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.162"></a>
-<span class="sourceLineNo">163</span>     * @return the formatted date<a name="line.163"></a>
-<span class="sourceLineNo">164</span>     */<a name="line.164"></a>
-<span class="sourceLineNo">165</span>    public static String formatUTC(final Date date, final String pattern, final Locale locale) {<a name="line.165"></a>
-<span class="sourceLineNo">166</span>        return format(date, pattern, UTC_TIME_ZONE, locale);<a name="line.166"></a>
-<span class="sourceLineNo">167</span>    }<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    <a name="line.168"></a>
-<span class="sourceLineNo">169</span>    /**<a name="line.169"></a>
-<span class="sourceLineNo">170</span>     * &lt;p&gt;Formats a date/time into a specific pattern.&lt;/p&gt;<a name="line.170"></a>
-<span class="sourceLineNo">171</span>     * <a name="line.171"></a>
-<span class="sourceLineNo">172</span>     * @param millis  the date to format expressed in milliseconds<a name="line.172"></a>
-<span class="sourceLineNo">173</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.173"></a>
-<span class="sourceLineNo">174</span>     * @return the formatted date<a name="line.174"></a>
-<span class="sourceLineNo">175</span>     */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    public static String format(final long millis, final String pattern) {<a name="line.176"></a>
-<span class="sourceLineNo">177</span>        return format(new Date(millis), pattern, null, null);<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    }<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span>    /**<a name="line.180"></a>
-<span class="sourceLineNo">181</span>     * &lt;p&gt;Formats a date/time into a specific pattern.&lt;/p&gt;<a name="line.181"></a>
-<span class="sourceLineNo">182</span>     * <a name="line.182"></a>
-<span class="sourceLineNo">183</span>     * @param date  the date to format, not null<a name="line.183"></a>
-<span class="sourceLineNo">184</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.184"></a>
-<span class="sourceLineNo">185</span>     * @return the formatted date<a name="line.185"></a>
-<span class="sourceLineNo">186</span>     */<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    public static String format(final Date date, final String pattern) {<a name="line.187"></a>
-<span class="sourceLineNo">188</span>        return format(date, pattern, null, null);<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    }<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>    /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span>     * &lt;p&gt;Formats a calendar into a specific pattern.&lt;/p&gt;<a name="line.192"></a>
-<span class="sourceLineNo">193</span>     * <a name="line.193"></a>
-<span class="sourceLineNo">194</span>     * @param calendar  the calendar to format, not null<a name="line.194"></a>
-<span class="sourceLineNo">195</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.195"></a>
-<span class="sourceLineNo">196</span>     * @return the formatted calendar<a name="line.196"></a>
-<span class="sourceLineNo">197</span>     * @see FastDateFormat#format(Calendar)<a name="line.197"></a>
-<span class="sourceLineNo">198</span>     * @since 2.4<a name="line.198"></a>
-<span class="sourceLineNo">199</span>     */<a name="line.199"></a>
-<span class="sourceLineNo">200</span>    public static String format(final Calendar calendar, final String pattern) {<a name="line.200"></a>
-<span class="sourceLineNo">201</span>        return format(calendar, pattern, null, null);<a name="line.201"></a>
-<span class="sourceLineNo">202</span>    }<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    <a name="line.203"></a>
-<span class="sourceLineNo">204</span>    /**<a name="line.204"></a>
-<span class="sourceLineNo">205</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone.&lt;/p&gt;<a name="line.205"></a>
-<span class="sourceLineNo">206</span>     * <a name="line.206"></a>
-<span class="sourceLineNo">207</span>     * @param millis  the time expressed in milliseconds<a name="line.207"></a>
-<span class="sourceLineNo">208</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.208"></a>
-<span class="sourceLineNo">209</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.209"></a>
-<span class="sourceLineNo">210</span>     * @return the formatted date<a name="line.210"></a>
-<span class="sourceLineNo">211</span>     */<a name="line.211"></a>
-<span class="sourceLineNo">212</span>    public static String format(final long millis, final String pattern, final TimeZone timeZone) {<a name="line.212"></a>
-<span class="sourceLineNo">213</span>        return format(new Date(millis), pattern, timeZone, null);<a name="line.213"></a>
-<span class="sourceLineNo">214</span>    }<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span>    /**<a name="line.216"></a>
-<span class="sourceLineNo">217</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone.&lt;/p&gt;<a name="line.217"></a>
-<span class="sourceLineNo">218</span>     * <a name="line.218"></a>
-<span class="sourceLineNo">219</span>     * @param date  the date to format, not null<a name="line.219"></a>
-<span class="sourceLineNo">220</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.220"></a>
-<span class="sourceLineNo">221</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.221"></a>
-<span class="sourceLineNo">222</span>     * @return the formatted date<a name="line.222"></a>
-<span class="sourceLineNo">223</span>     */<a name="line.223"></a>
-<span class="sourceLineNo">224</span>    public static String format(final Date date, final String pattern, final TimeZone timeZone) {<a name="line.224"></a>
-<span class="sourceLineNo">225</span>        return format(date, pattern, timeZone, null);<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    }<a name="line.226"></a>
-<span class="sourceLineNo">227</span><a name="line.227"></a>
-<span class="sourceLineNo">228</span>    /**<a name="line.228"></a>
-<span class="sourceLineNo">229</span>     * &lt;p&gt;Formats a calendar into a specific pattern in a time zone.&lt;/p&gt;<a name="line.229"></a>
-<span class="sourceLineNo">230</span>     * <a name="line.230"></a>
-<span class="sourceLineNo">231</span>     * @param calendar  the calendar to format, not null<a name="line.231"></a>
-<span class="sourceLineNo">232</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.232"></a>
-<span class="sourceLineNo">233</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.233"></a>
-<span class="sourceLineNo">234</span>     * @return the formatted calendar<a name="line.234"></a>
-<span class="sourceLineNo">235</span>     * @see FastDateFormat#format(Calendar)<a name="line.235"></a>
-<span class="sourceLineNo">236</span>     * @since 2.4<a name="line.236"></a>
-<span class="sourceLineNo">237</span>     */<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    public static String format(final Calendar calendar, final String pattern, final TimeZone timeZone) {<a name="line.238"></a>
-<span class="sourceLineNo">239</span>        return format(calendar, pattern, timeZone, null);<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    }<a name="line.240"></a>
-<span class="sourceLineNo">241</span><a name="line.241"></a>
-<span class="sourceLineNo">242</span>    /**<a name="line.242"></a>
-<span class="sourceLineNo">243</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a locale.&lt;/p&gt;<a name="line.243"></a>
-<span class="sourceLineNo">244</span>     * <a name="line.244"></a>
-<span class="sourceLineNo">245</span>     * @param millis  the date to format expressed in milliseconds<a name="line.245"></a>
-<span class="sourceLineNo">246</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.246"></a>
-<span class="sourceLineNo">247</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.247"></a>
-<span class="sourceLineNo">248</span>     * @return the formatted date<a name="line.248"></a>
-<span class="sourceLineNo">249</span>     */<a name="line.249"></a>
-<span class="sourceLineNo">250</span>    public static String format(final long millis, final String pattern, final Locale locale) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span>        return format(new Date(millis), pattern, null, locale);<a name="line.251"></a>
-<span class="sourceLineNo">252</span>    }<a name="line.252"></a>
-<span class="sourceLineNo">253</span><a name="line.253"></a>
-<span class="sourceLineNo">254</span>    /**<a name="line.254"></a>
-<span class="sourceLineNo">255</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a locale.&lt;/p&gt;<a name="line.255"></a>
-<span class="sourceLineNo">256</span>     * <a name="line.256"></a>
-<span class="sourceLineNo">257</span>     * @param date  the date to format, not null<a name="line.257"></a>
-<span class="sourceLineNo">258</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.258"></a>
-<span class="sourceLineNo">259</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.259"></a>
-<span class="sourceLineNo">260</span>     * @return the formatted date<a name="line.260"></a>
-<span class="sourceLineNo">261</span>     */<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    public static String format(final Date date, final String pattern, final Locale locale) {<a name="line.262"></a>
-<span class="sourceLineNo">263</span>        return format(date, pattern, null, locale);<a name="line.263"></a>
-<span class="sourceLineNo">264</span>    }<a name="line.264"></a>
-<span class="sourceLineNo">265</span><a name="line.265"></a>
-<span class="sourceLineNo">266</span>    /**<a name="line.266"></a>
-<span class="sourceLineNo">267</span>     * &lt;p&gt;Formats a calendar into a specific pattern in a locale.&lt;/p&gt;<a name="line.267"></a>
-<span class="sourceLineNo">268</span>     * <a name="line.268"></a>
-<span class="sourceLineNo">269</span>     * @param calendar  the calendar to format, not null<a name="line.269"></a>
-<span class="sourceLineNo">270</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.270"></a>
-<span class="sourceLineNo">271</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.271"></a>
-<span class="sourceLineNo">272</span>     * @return the formatted calendar<a name="line.272"></a>
-<span class="sourceLineNo">273</span>     * @see FastDateFormat#format(Calendar)<a name="line.273"></a>
-<span class="sourceLineNo">274</span>     * @since 2.4<a name="line.274"></a>
-<span class="sourceLineNo">275</span>     */<a name="line.275"></a>
-<span class="sourceLineNo">276</span>    public static String format(final Calendar calendar, final String pattern, final Locale locale) {<a name="line.276"></a>
-<span class="sourceLineNo">277</span>        return format(calendar, pattern, null, locale);<a name="line.277"></a>
-<span class="sourceLineNo">278</span>    }<a name="line.278"></a>
-<span class="sourceLineNo">279</span><a name="line.279"></a>
-<span class="sourceLineNo">280</span>    /**<a name="line.280"></a>
-<span class="sourceLineNo">281</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone  and locale.&lt;/p&gt;<a name="line.281"></a>
-<span class="sourceLineNo">282</span>     * <a name="line.282"></a>
-<span class="sourceLineNo">283</span>     * @param millis  the date to format expressed in milliseconds<a name="line.283"></a>
-<span class="sourceLineNo">284</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.284"></a>
-<span class="sourceLineNo">285</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.285"></a>
-<span class="sourceLineNo">286</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.286"></a>
-<span class="sourceLineNo">287</span>     * @return the formatted date<a name="line.287"></a>
-<span class="sourceLineNo">288</span>     */<a name="line.288"></a>
-<span class="sourceLineNo">289</span>    public static String format(final long millis, final String pattern, final TimeZone timeZone, final Locale locale) {<a name="line.289"></a>
-<span class="sourceLineNo">290</span>        return format(new Date(millis), pattern, timeZone, locale);<a name="line.290"></a>
-<span class="sourceLineNo">291</span>    }<a name="line.291"></a>
-<span class="sourceLineNo">292</span><a name="line.292"></a>
-<span class="sourceLineNo">293</span>    /**<a name="line.293"></a>
-<span class="sourceLineNo">294</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone  and locale.&lt;/p&gt;<a name="line.294"></a>
-<span class="sourceLineNo">295</span>     * <a name="line.295"></a>
-<span class="sourceLineNo">296</span>     * @param date  the date to format, not null<a name="line.296"></a>
-<span class="sourceLineNo">297</span>     * @param pattern  the pattern to use to format the date, not null, not null<a name="line.297"></a>
-<span class="sourceLineNo">298</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.298"></a>
-<span class="sourceLineNo">299</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.299"></a>
-<span class="sourceLineNo">300</span>     * @return the formatted date<a name="line.300"></a>
-<span class="sourceLineNo">301</span>     */<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    public static String format(final Date date, final String pattern, final TimeZone timeZone, final Locale locale) {<a name="line.302"></a>
-<span class="sourceLineNo">303</span>        final FastDateFormat df = FastDateFormat.getInstance(pattern, timeZone, locale);<a name="line.303"></a>
-<span class="sourceLineNo">304</span>        return df.format(date);<a name="line.304"></a>
-<span class="sourceLineNo">305</span>    }<a name="line.305"></a>
-<span class="sourceLineNo">306</span><a name="line.306"></a>
-<span class="sourceLineNo">307</span>    /**<a name="line.307"></a>
-<span class="sourceLineNo">308</span>     * &lt;p&gt;Formats a calendar into a specific pattern in a time zone  and locale.&lt;/p&gt;<a name="line.308"></a>
-<span class="sourceLineNo">309</span>     * <a name="line.309"></a>
-<span class="sourceLineNo">310</span>     * @param calendar  the calendar to format, not null<a name="line.310"></a>
-<span class="sourceLineNo">311</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.311"></a>
-<span class="sourceLineNo">312</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.312"></a>
-<span class="sourceLineNo">313</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.313"></a>
-<span class="sourceLineNo">314</span>     * @return the formatted calendar<a name="line.314"></a>
-<span class="sourceLineNo">315</span>     * @see FastDateFormat#format(Calendar)<a name="line.315"></a>
-<span class="sourceLineNo">316</span>     * @since 2.4<a name="line.316"></a>
-<span class="sourceLineNo">317</span>     */<a name="line.317"></a>
-<span class="sourceLineNo">318</span>    public static String format(final Calendar calendar, final String pattern, final TimeZone timeZone, final Locale locale) {<a name="line.318"></a>
-<span class="sourceLineNo">319</span>        final FastDateFormat df = FastDateFormat.getInstance(pattern, timeZone, locale);<a name="line.319"></a>
-<span class="sourceLineNo">320</span>        return df.format(calendar);<a name="line.320"></a>
-<span class="sourceLineNo">321</span>    }<a name="line.321"></a>
-<span class="sourceLineNo">322</span><a name="line.322"></a>
-<span class="sourceLineNo">323</span>}<a name="line.323"></a>
+<span class="sourceLineNo">114</span>     * SMTP (and probably other) date headers.<a name="line.114"></a>
+<span class="sourceLineNo">115</span>     * The format used is {@code EEE, dd MMM yyyy HH:mm:ss Z} in US locale.<a name="line.115"></a>
+<span class="sourceLineNo">116</span>     * This format uses the default TimeZone in effect at the time of loading DateFormatUtils class.<a name="line.116"></a>
+<span class="sourceLineNo">117</span>     */<a name="line.117"></a>
+<span class="sourceLineNo">118</span>    public static final FastDateFormat SMTP_DATETIME_FORMAT<a name="line.118"></a>
+<span class="sourceLineNo">119</span>            = FastDateFormat.getInstance("EEE, dd MMM yyyy HH:mm:ss Z", Locale.US);<a name="line.119"></a>
+<span class="sourceLineNo">120</span><a name="line.120"></a>
+<span class="sourceLineNo">121</span>    //-----------------------------------------------------------------------<a name="line.121"></a>
+<span class="sourceLineNo">122</span>    /**<a name="line.122"></a>
+<span class="sourceLineNo">123</span>     * &lt;p&gt;DateFormatUtils instances should NOT be constructed in standard programming.&lt;/p&gt;<a name="line.123"></a>
+<span class="sourceLineNo">124</span>     *<a name="line.124"></a>
+<span class="sourceLineNo">125</span>     * &lt;p&gt;This constructor is public to permit tools that require a JavaBean instance<a name="line.125"></a>
+<span class="sourceLineNo">126</span>     * to operate.&lt;/p&gt;<a name="line.126"></a>
+<span class="sourceLineNo">127</span>     */<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    public DateFormatUtils() {<a name="line.128"></a>
+<span class="sourceLineNo">129</span>        super();<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    }<a name="line.130"></a>
+<span class="sourceLineNo">131</span><a name="line.131"></a>
+<span class="sourceLineNo">132</span>    /**<a name="line.132"></a>
+<span class="sourceLineNo">133</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.133"></a>
+<span class="sourceLineNo">134</span>     * <a name="line.134"></a>
+<span class="sourceLineNo">135</span>     * @param millis  the date to format expressed in milliseconds<a name="line.135"></a>
+<span class="sourceLineNo">136</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.136"></a>
+<span class="sourceLineNo">137</span>     * @return the formatted date<a name="line.137"></a>
+<span class="sourceLineNo">138</span>     */<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    public static String formatUTC(final long millis, final String pattern) {<a name="line.139"></a>
+<span class="sourceLineNo">140</span>        return format(new Date(millis), pattern, UTC_TIME_ZONE, null);<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    }<a name="line.141"></a>
+<span class="sourceLineNo">142</span><a name="line.142"></a>
+<span class="sourceLineNo">143</span>    /**<a name="line.143"></a>
+<span class="sourceLineNo">144</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.144"></a>
+<span class="sourceLineNo">145</span>     * <a name="line.145"></a>
+<span class="sourceLineNo">146</span>     * @param date  the date to format, not null<a name="line.146"></a>
+<span class="sourceLineNo">147</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.147"></a>
+<span class="sourceLineNo">148</span>     * @return the formatted date<a name="line.148"></a>
+<span class="sourceLineNo">149</span>     */<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    public static String formatUTC(final Date date, final String pattern) {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>        return format(date, pattern, UTC_TIME_ZONE, null);<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    }<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    <a name="line.153"></a>
+<span class="sourceLineNo">154</span>    /**<a name="line.154"></a>
+<span class="sourceLineNo">155</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.155"></a>
+<span class="sourceLineNo">156</span>     * <a name="line.156"></a>
+<span class="sourceLineNo">157</span>     * @param millis  the date to format expressed in milliseconds<a name="line.157"></a>
+<span class="sourceLineNo">158</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.158"></a>
+<span class="sourceLineNo">159</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.159"></a>
+<span class="sourceLineNo">160</span>     * @return the formatted date<a name="line.160"></a>
+<span class="sourceLineNo">161</span>     */<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    public static String formatUTC(final long millis, final String pattern, final Locale locale) {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>        return format(new Date(millis), pattern, UTC_TIME_ZONE, locale);<a name="line.163"></a>
+<span class="sourceLineNo">164</span>    }<a name="line.164"></a>
+<span class="sourceLineNo">165</span><a name="line.165"></a>
+<span class="sourceLineNo">166</span>    /**<a name="line.166"></a>
+<span class="sourceLineNo">167</span>     * &lt;p&gt;Formats a date/time into a specific pattern using the UTC time zone.&lt;/p&gt;<a name="line.167"></a>
+<span class="sourceLineNo">168</span>     * <a name="line.168"></a>
+<span class="sourceLineNo">169</span>     * @param date  the date to format, not null<a name="line.169"></a>
+<span class="sourceLineNo">170</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.170"></a>
+<span class="sourceLineNo">171</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.171"></a>
+<span class="sourceLineNo">172</span>     * @return the formatted date<a name="line.172"></a>
+<span class="sourceLineNo">173</span>     */<a name="line.173"></a>
+<span class="sourceLineNo">174</span>    public static String formatUTC(final Date date, final String pattern, final Locale locale) {<a name="line.174"></a>
+<span class="sourceLineNo">175</span>        return format(date, pattern, UTC_TIME_ZONE, locale);<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    }<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    <a name="line.177"></a>
+<span class="sourceLineNo">178</span>    /**<a name="line.178"></a>
+<span class="sourceLineNo">179</span>     * &lt;p&gt;Formats a date/time into a specific pattern.&lt;/p&gt;<a name="line.179"></a>
+<span class="sourceLineNo">180</span>     * <a name="line.180"></a>
+<span class="sourceLineNo">181</span>     * @param millis  the date to format expressed in milliseconds<a name="line.181"></a>
+<span class="sourceLineNo">182</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.182"></a>
+<span class="sourceLineNo">183</span>     * @return the formatted date<a name="line.183"></a>
+<span class="sourceLineNo">184</span>     */<a name="line.184"></a>
+<span class="sourceLineNo">185</span>    public static String format(final long millis, final String pattern) {<a name="line.185"></a>
+<span class="sourceLineNo">186</span>        return format(new Date(millis), pattern, null, null);<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    }<a name="line.187"></a>
+<span class="sourceLineNo">188</span><a name="line.188"></a>
+<span class="sourceLineNo">189</span>    /**<a name="line.189"></a>
+<span class="sourceLineNo">190</span>     * &lt;p&gt;Formats a date/time into a specific pattern.&lt;/p&gt;<a name="line.190"></a>
+<span class="sourceLineNo">191</span>     * <a name="line.191"></a>
+<span class="sourceLineNo">192</span>     * @param date  the date to format, not null<a name="line.192"></a>
+<span class="sourceLineNo">193</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.193"></a>
+<span class="sourceLineNo">194</span>     * @return the formatted date<a name="line.194"></a>
+<span class="sourceLineNo">195</span>     */<a name="line.195"></a>
+<span class="sourceLineNo">196</span>    public static String format(final Date date, final String pattern) {<a name="line.196"></a>
+<span class="sourceLineNo">197</span>        return format(date, pattern, null, null);<a name="line.197"></a>
+<span class="sourceLineNo">198</span>    }<a name="line.198"></a>
+<span class="sourceLineNo">199</span><a name="line.199"></a>
+<span class="sourceLineNo">200</span>    /**<a name="line.200"></a>
+<span class="sourceLineNo">201</span>     * &lt;p&gt;Formats a calendar into a specific pattern.&lt;/p&gt;<a name="line.201"></a>
+<span class="sourceLineNo">202</span>     * <a name="line.202"></a>
+<span class="sourceLineNo">203</span>     * @param calendar  the calendar to format, not null<a name="line.203"></a>
+<span class="sourceLineNo">204</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.204"></a>
+<span class="sourceLineNo">205</span>     * @return the formatted calendar<a name="line.205"></a>
+<span class="sourceLineNo">206</span>     * @see FastDateFormat#format(Calendar)<a name="line.206"></a>
+<span class="sourceLineNo">207</span>     * @since 2.4<a name="line.207"></a>
+<span class="sourceLineNo">208</span>     */<a name="line.208"></a>
+<span class="sourceLineNo">209</span>    public static String format(final Calendar calendar, final String pattern) {<a name="line.209"></a>
+<span class="sourceLineNo">210</span>        return format(calendar, pattern, null, null);<a name="line.210"></a>
+<span class="sourceLineNo">211</span>    }<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    <a name="line.212"></a>
+<span class="sourceLineNo">213</span>    /**<a name="line.213"></a>
+<span class="sourceLineNo">214</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone.&lt;/p&gt;<a name="line.214"></a>
+<span class="sourceLineNo">215</span>     * <a name="line.215"></a>
+<span class="sourceLineNo">216</span>     * @param millis  the time expressed in milliseconds<a name="line.216"></a>
+<span class="sourceLineNo">217</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.217"></a>
+<span class="sourceLineNo">218</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.218"></a>
+<span class="sourceLineNo">219</span>     * @return the formatted date<a name="line.219"></a>
+<span class="sourceLineNo">220</span>     */<a name="line.220"></a>
+<span class="sourceLineNo">221</span>    public static String format(final long millis, final String pattern, final TimeZone timeZone) {<a name="line.221"></a>
+<span class="sourceLineNo">222</span>        return format(new Date(millis), pattern, timeZone, null);<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    }<a name="line.223"></a>
+<span class="sourceLineNo">224</span><a name="line.224"></a>
+<span class="sourceLineNo">225</span>    /**<a name="line.225"></a>
+<span class="sourceLineNo">226</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone.&lt;/p&gt;<a name="line.226"></a>
+<span class="sourceLineNo">227</span>     * <a name="line.227"></a>
+<span class="sourceLineNo">228</span>     * @param date  the date to format, not null<a name="line.228"></a>
+<span class="sourceLineNo">229</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.229"></a>
+<span class="sourceLineNo">230</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.230"></a>
+<span class="sourceLineNo">231</span>     * @return the formatted date<a name="line.231"></a>
+<span class="sourceLineNo">232</span>     */<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    public static String format(final Date date, final String pattern, final TimeZone timeZone) {<a name="line.233"></a>
+<span class="sourceLineNo">234</span>        return format(date, pattern, timeZone, null);<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    }<a name="line.235"></a>
+<span class="sourceLineNo">236</span><a name="line.236"></a>
+<span class="sourceLineNo">237</span>    /**<a name="line.237"></a>
+<span class="sourceLineNo">238</span>     * &lt;p&gt;Formats a calendar into a specific pattern in a time zone.&lt;/p&gt;<a name="line.238"></a>
+<span class="sourceLineNo">239</span>     * <a name="line.239"></a>
+<span class="sourceLineNo">240</span>     * @param calendar  the calendar to format, not null<a name="line.240"></a>
+<span class="sourceLineNo">241</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.241"></a>
+<span class="sourceLineNo">242</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.242"></a>
+<span class="sourceLineNo">243</span>     * @return the formatted calendar<a name="line.243"></a>
+<span class="sourceLineNo">244</span>     * @see FastDateFormat#format(Calendar)<a name="line.244"></a>
+<span class="sourceLineNo">245</span>     * @since 2.4<a name="line.245"></a>
+<span class="sourceLineNo">246</span>     */<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    public static String format(final Calendar calendar, final String pattern, final TimeZone timeZone) {<a name="line.247"></a>
+<span class="sourceLineNo">248</span>        return format(calendar, pattern, timeZone, null);<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    }<a name="line.249"></a>
+<span class="sourceLineNo">250</span><a name="line.250"></a>
+<span class="sourceLineNo">251</span>    /**<a name="line.251"></a>
+<span class="sourceLineNo">252</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a locale.&lt;/p&gt;<a name="line.252"></a>
+<span class="sourceLineNo">253</span>     * <a name="line.253"></a>
+<span class="sourceLineNo">254</span>     * @param millis  the date to format expressed in milliseconds<a name="line.254"></a>
+<span class="sourceLineNo">255</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.255"></a>
+<span class="sourceLineNo">256</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.256"></a>
+<span class="sourceLineNo">257</span>     * @return the formatted date<a name="line.257"></a>
+<span class="sourceLineNo">258</span>     */<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    public static String format(final long millis, final String pattern, final Locale locale) {<a name="line.259"></a>
+<span class="sourceLineNo">260</span>        return format(new Date(millis), pattern, null, locale);<a name="line.260"></a>
+<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
+<span class="sourceLineNo">262</span><a name="line.262"></a>
+<span class="sourceLineNo">263</span>    /**<a name="line.263"></a>
+<span class="sourceLineNo">264</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a locale.&lt;/p&gt;<a name="line.264"></a>
+<span class="sourceLineNo">265</span>     * <a name="line.265"></a>
+<span class="sourceLineNo">266</span>     * @param date  the date to format, not null<a name="line.266"></a>
+<span class="sourceLineNo">267</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.267"></a>
+<span class="sourceLineNo">268</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.268"></a>
+<span class="sourceLineNo">269</span>     * @return the formatted date<a name="line.269"></a>
+<span class="sourceLineNo">270</span>     */<a name="line.270"></a>
+<span class="sourceLineNo">271</span>    public static String format(final Date date, final String pattern, final Locale locale) {<a name="line.271"></a>
+<span class="sourceLineNo">272</span>        return format(date, pattern, null, locale);<a name="line.272"></a>
+<span class="sourceLineNo">273</span>    }<a name="line.273"></a>
+<span class="sourceLineNo">274</span><a name="line.274"></a>
+<span class="sourceLineNo">275</span>    /**<a name="line.275"></a>
+<span class="sourceLineNo">276</span>     * &lt;p&gt;Formats a calendar into a specific pattern in a locale.&lt;/p&gt;<a name="line.276"></a>
+<span class="sourceLineNo">277</span>     * <a name="line.277"></a>
+<span class="sourceLineNo">278</span>     * @param calendar  the calendar to format, not null<a name="line.278"></a>
+<span class="sourceLineNo">279</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.279"></a>
+<span class="sourceLineNo">280</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.280"></a>
+<span class="sourceLineNo">281</span>     * @return the formatted calendar<a name="line.281"></a>
+<span class="sourceLineNo">282</span>     * @see FastDateFormat#format(Calendar)<a name="line.282"></a>
+<span class="sourceLineNo">283</span>     * @since 2.4<a name="line.283"></a>
+<span class="sourceLineNo">284</span>     */<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    public static String format(final Calendar calendar, final String pattern, final Locale locale) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span>        return format(calendar, pattern, null, locale);<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    }<a name="line.287"></a>
+<span class="sourceLineNo">288</span><a name="line.288"></a>
+<span class="sourceLineNo">289</span>    /**<a name="line.289"></a>
+<span class="sourceLineNo">290</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone  and locale.&lt;/p&gt;<a name="line.290"></a>
+<span class="sourceLineNo">291</span>     * <a name="line.291"></a>
+<span class="sourceLineNo">292</span>     * @param millis  the date to format expressed in milliseconds<a name="line.292"></a>
+<span class="sourceLineNo">293</span>     * @param pattern  the pattern to use to format the date, not null<a name="line.293"></a>
+<span class="sourceLineNo">294</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.294"></a>
+<span class="sourceLineNo">295</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.295"></a>
+<span class="sourceLineNo">296</span>     * @return the formatted date<a name="line.296"></a>
+<span class="sourceLineNo">297</span>     */<a name="line.297"></a>
+<span class="sourceLineNo">298</span>    public static String format(final long millis, final String pattern, final TimeZone timeZone, final Locale locale) {<a name="line.298"></a>
+<span class="sourceLineNo">299</span>        return format(new Date(millis), pattern, timeZone, locale);<a name="line.299"></a>
+<span class="sourceLineNo">300</span>    }<a name="line.300"></a>
+<span class="sourceLineNo">301</span><a name="line.301"></a>
+<span class="sourceLineNo">302</span>    /**<a name="line.302"></a>
+<span class="sourceLineNo">303</span>     * &lt;p&gt;Formats a date/time into a specific pattern in a time zone  and locale.&lt;/p&gt;<a name="line.303"></a>
+<span class="sourceLineNo">304</span>     * <a name="line.304"></a>
+<span class="sourceLineNo">305</span>     * @param date  the date to format, not null<a name="line.305"></a>
+<span class="sourceLineNo">306</span>     * @param pattern  the pattern to use to format the date, not null, not null<a name="line.306"></a>
+<span class="sourceLineNo">307</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.307"></a>
+<span class="sourceLineNo">308</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.308"></a>
+<span class="sourceLineNo">309</span>     * @return the formatted date<a name="line.309"></a>
+<span class="sourceLineNo">310</span>     */<a name="line.310"></a>
+<span class="sourceLineNo">311</span>    public static String format(final Date date, final String pattern, final TimeZone timeZone, final Locale locale) {<a name="line.311"></a>
+<span class="sourceLineNo">312</span>        final FastDateFormat df = FastDateFormat.getInstance(pattern, timeZone, locale);<a name="line.312"></a>
+<span class="sourceLineNo">313</span>        return df.format(date);<a name="line.313"></a>
+<span class="sourceLineNo">314</span>    }<a name="line.314"></a>
+<span class="sourceLineNo">315</span><a name="line.315"></a>
+<span class="sourceLineNo">316</span>    /**<a name="line.316"></a>
+<span class="sourceLineNo">317</span>     * &lt;p&gt;Formats a calendar into a specific pattern in a time zone  and locale.&lt;/p&gt;<a name="line.317"></a>
+<span class="sourceLineNo">318</span>     * <a name="line.318"></a>
+<span class="sourceLineNo">319</span>     * @param calendar  the calendar to format, not null<a name="line.319"></a>
+<span class="sourceLineNo">320</span>     * @param pattern  the pattern to use to format the calendar, not null<a name="line.320"></a>
+<span class="sourceLineNo">321</span>     * @param timeZone  the time zone  to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.321"></a>
+<span class="sourceLineNo">322</span>     * @param locale  the locale to use, may be &lt;code&gt;null&lt;/code&gt;<a name="line.322"></a>
+<span class="sourceLineNo">323</span>     * @return the formatted calendar<a name="line.323"></a>
+<span class="sourceLineNo">324</span>     * @see FastDateFormat#format(Calendar)<a name="line.324"></a>
+<span class="sourceLineNo">325</span>     * @since 2.4<a name="line.325"></a>
+<span class="sourceLineNo">326</span>     */<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    public static String format(final Calendar calendar, final String pattern, final TimeZone timeZone, final Locale locale) {<a name="line.327"></a>
+<span class="sourceLineNo">328</span>        final FastDateFormat df = FastDateFormat.getInstance(pattern, timeZone, locale);<a name="line.328"></a>
+<span class="sourceLineNo">329</span>        return df.format(calendar);<a name="line.329"></a>
+<span class="sourceLineNo">330</span>    }<a name="line.330"></a>
+<span class="sourceLineNo">331</span><a name="line.331"></a>
+<span class="sourceLineNo">332</span>}<a name="line.332"></a>
 
 
 



Mime
View raw message