commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r883363 [47/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/builder/class-use/ apidocs/org/apache/co...
Date Sat, 19 Oct 2013 17:17:59 GMT
Modified: websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/time/FastDatePrinter.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/time/FastDatePrinter.html (original)
+++ websites/production/commons/content/proper/commons-lang/xref/org/apache/commons/lang3/time/FastDatePrinter.html Sat Oct 19 17:17:55 2013
@@ -409,866 +409,875 @@
 <a class="jxr_linenumber" name="399" href="#399">399</a>         <strong class="jxr_keyword">return</strong> applyRulesToString(c);
 <a class="jxr_linenumber" name="400" href="#400">400</a>     }
 <a class="jxr_linenumber" name="401" href="#401">401</a> 
-<a class="jxr_linenumber" name="402" href="#402">402</a>     <strong class="jxr_keyword">private</strong> String applyRulesToString(<strong class="jxr_keyword">final</strong> Calendar c) {
-<a class="jxr_linenumber" name="403" href="#403">403</a>         <strong class="jxr_keyword">return</strong> applyRules(c, <strong class="jxr_keyword">new</strong> StringBuffer(mMaxLengthEstimate)).toString();
-<a class="jxr_linenumber" name="404" href="#404">404</a>     }
-<a class="jxr_linenumber" name="405" href="#405">405</a> 
-<a class="jxr_linenumber" name="406" href="#406">406</a>     <strong class="jxr_keyword">private</strong> GregorianCalendar newCalendar() {
-<a class="jxr_linenumber" name="407" href="#407">407</a>         <em class="jxr_comment">// hard code GregorianCalendar</em>
-<a class="jxr_linenumber" name="408" href="#408">408</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> GregorianCalendar(mTimeZone, mLocale);
+<a class="jxr_linenumber" name="402" href="#402">402</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="403" href="#403">403</a> <em class="jxr_javadoccomment">     * Creates a String representation of the given Calendar by applying the rules of this printer to it.</em>
+<a class="jxr_linenumber" name="404" href="#404">404</a> <em class="jxr_javadoccomment">     * @param c the Calender to apply the rules to.</em>
+<a class="jxr_linenumber" name="405" href="#405">405</a> <em class="jxr_javadoccomment">     * @return a String representation of the given Calendar.</em>
+<a class="jxr_linenumber" name="406" href="#406">406</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="407" href="#407">407</a>     <strong class="jxr_keyword">private</strong> String applyRulesToString(<strong class="jxr_keyword">final</strong> Calendar c) {
+<a class="jxr_linenumber" name="408" href="#408">408</a>         <strong class="jxr_keyword">return</strong> applyRules(c, <strong class="jxr_keyword">new</strong> StringBuffer(mMaxLengthEstimate)).toString();
 <a class="jxr_linenumber" name="409" href="#409">409</a>     }
 <a class="jxr_linenumber" name="410" href="#410">410</a> 
-<a class="jxr_linenumber" name="411" href="#411">411</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="412" href="#412">412</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Date)</em>
-<a class="jxr_linenumber" name="413" href="#413">413</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="414" href="#414">414</a>     @Override
-<a class="jxr_linenumber" name="415" href="#415">415</a>     <strong class="jxr_keyword">public</strong> String format(<strong class="jxr_keyword">final</strong> Date date) {
-<a class="jxr_linenumber" name="416" href="#416">416</a>         <strong class="jxr_keyword">final</strong> Calendar c = newCalendar();  <em class="jxr_comment">// hard code GregorianCalendar</em>
-<a class="jxr_linenumber" name="417" href="#417">417</a>         c.setTime(date);
-<a class="jxr_linenumber" name="418" href="#418">418</a>         <strong class="jxr_keyword">return</strong> applyRulesToString(c);
-<a class="jxr_linenumber" name="419" href="#419">419</a>     }
-<a class="jxr_linenumber" name="420" href="#420">420</a> 
-<a class="jxr_linenumber" name="421" href="#421">421</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="422" href="#422">422</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Calendar)</em>
-<a class="jxr_linenumber" name="423" href="#423">423</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="424" href="#424">424</a>     @Override
-<a class="jxr_linenumber" name="425" href="#425">425</a>     <strong class="jxr_keyword">public</strong> String format(<strong class="jxr_keyword">final</strong> Calendar calendar) {
-<a class="jxr_linenumber" name="426" href="#426">426</a>         <strong class="jxr_keyword">return</strong> format(calendar, <strong class="jxr_keyword">new</strong> StringBuffer(mMaxLengthEstimate)).toString();
-<a class="jxr_linenumber" name="427" href="#427">427</a>     }
-<a class="jxr_linenumber" name="428" href="#428">428</a> 
-<a class="jxr_linenumber" name="429" href="#429">429</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="430" href="#430">430</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(long, java.lang.StringBuffer)</em>
-<a class="jxr_linenumber" name="431" href="#431">431</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="432" href="#432">432</a>     @Override
-<a class="jxr_linenumber" name="433" href="#433">433</a>     <strong class="jxr_keyword">public</strong> StringBuffer format(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> millis, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
-<a class="jxr_linenumber" name="434" href="#434">434</a>         <strong class="jxr_keyword">return</strong> format(<strong class="jxr_keyword">new</strong> Date(millis), buf);
-<a class="jxr_linenumber" name="435" href="#435">435</a>     }
-<a class="jxr_linenumber" name="436" href="#436">436</a> 
-<a class="jxr_linenumber" name="437" href="#437">437</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="438" href="#438">438</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Date, java.lang.StringBuffer)</em>
-<a class="jxr_linenumber" name="439" href="#439">439</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="440" href="#440">440</a>     @Override
-<a class="jxr_linenumber" name="441" href="#441">441</a>     <strong class="jxr_keyword">public</strong> StringBuffer format(<strong class="jxr_keyword">final</strong> Date date, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
-<a class="jxr_linenumber" name="442" href="#442">442</a>         <strong class="jxr_keyword">final</strong> Calendar c = newCalendar();  <em class="jxr_comment">// hard code GregorianCalendar</em>
-<a class="jxr_linenumber" name="443" href="#443">443</a>         c.setTime(date);
-<a class="jxr_linenumber" name="444" href="#444">444</a>         <strong class="jxr_keyword">return</strong> applyRules(c, buf);
-<a class="jxr_linenumber" name="445" href="#445">445</a>     }
-<a class="jxr_linenumber" name="446" href="#446">446</a> 
-<a class="jxr_linenumber" name="447" href="#447">447</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="448" href="#448">448</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Calendar, java.lang.StringBuffer)</em>
-<a class="jxr_linenumber" name="449" href="#449">449</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="450" href="#450">450</a>     @Override
-<a class="jxr_linenumber" name="451" href="#451">451</a>     <strong class="jxr_keyword">public</strong> StringBuffer format(<strong class="jxr_keyword">final</strong> Calendar calendar, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
-<a class="jxr_linenumber" name="452" href="#452">452</a>         <strong class="jxr_keyword">return</strong> applyRules(calendar, buf);
-<a class="jxr_linenumber" name="453" href="#453">453</a>     }
-<a class="jxr_linenumber" name="454" href="#454">454</a> 
-<a class="jxr_linenumber" name="455" href="#455">455</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="456" href="#456">456</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Performs the formatting by applying the rules to the</em>
-<a class="jxr_linenumber" name="457" href="#457">457</a> <em class="jxr_javadoccomment">     * specified calendar.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="458" href="#458">458</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="459" href="#459">459</a> <em class="jxr_javadoccomment">     * @param calendar  the calendar to format</em>
-<a class="jxr_linenumber" name="460" href="#460">460</a> <em class="jxr_javadoccomment">     * @param buf  the buffer to format into</em>
-<a class="jxr_linenumber" name="461" href="#461">461</a> <em class="jxr_javadoccomment">     * @return the specified string buffer</em>
-<a class="jxr_linenumber" name="462" href="#462">462</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="463" href="#463">463</a>     <strong class="jxr_keyword">protected</strong> StringBuffer applyRules(<strong class="jxr_keyword">final</strong> Calendar calendar, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
-<a class="jxr_linenumber" name="464" href="#464">464</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> Rule rule : mRules) {
-<a class="jxr_linenumber" name="465" href="#465">465</a>             rule.appendTo(buf, calendar);
-<a class="jxr_linenumber" name="466" href="#466">466</a>         }
-<a class="jxr_linenumber" name="467" href="#467">467</a>         <strong class="jxr_keyword">return</strong> buf;
-<a class="jxr_linenumber" name="468" href="#468">468</a>     }
-<a class="jxr_linenumber" name="469" href="#469">469</a> 
-<a class="jxr_linenumber" name="470" href="#470">470</a>     <em class="jxr_comment">// Accessors</em>
-<a class="jxr_linenumber" name="471" href="#471">471</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="472" href="#472">472</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="473" href="#473">473</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#getPattern()</em>
-<a class="jxr_linenumber" name="474" href="#474">474</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="475" href="#475">475</a>     @Override
-<a class="jxr_linenumber" name="476" href="#476">476</a>     <strong class="jxr_keyword">public</strong> String getPattern() {
-<a class="jxr_linenumber" name="477" href="#477">477</a>         <strong class="jxr_keyword">return</strong> mPattern;
-<a class="jxr_linenumber" name="478" href="#478">478</a>     }
-<a class="jxr_linenumber" name="479" href="#479">479</a> 
-<a class="jxr_linenumber" name="480" href="#480">480</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="481" href="#481">481</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#getTimeZone()</em>
-<a class="jxr_linenumber" name="482" href="#482">482</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="483" href="#483">483</a>     @Override
-<a class="jxr_linenumber" name="484" href="#484">484</a>     <strong class="jxr_keyword">public</strong> TimeZone getTimeZone() {
-<a class="jxr_linenumber" name="485" href="#485">485</a>         <strong class="jxr_keyword">return</strong> mTimeZone;
-<a class="jxr_linenumber" name="486" href="#486">486</a>     }
-<a class="jxr_linenumber" name="487" href="#487">487</a> 
-<a class="jxr_linenumber" name="488" href="#488">488</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
-<a class="jxr_linenumber" name="489" href="#489">489</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#getLocale()</em>
-<a class="jxr_linenumber" name="490" href="#490">490</a> <em class="jxr_comment">     */</em>
-<a class="jxr_linenumber" name="491" href="#491">491</a>     @Override
-<a class="jxr_linenumber" name="492" href="#492">492</a>     <strong class="jxr_keyword">public</strong> Locale getLocale() {
-<a class="jxr_linenumber" name="493" href="#493">493</a>         <strong class="jxr_keyword">return</strong> mLocale;
-<a class="jxr_linenumber" name="494" href="#494">494</a>     }
-<a class="jxr_linenumber" name="495" href="#495">495</a> 
-<a class="jxr_linenumber" name="496" href="#496">496</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="497" href="#497">497</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Gets an estimate for the maximum string length that the</em>
-<a class="jxr_linenumber" name="498" href="#498">498</a> <em class="jxr_javadoccomment">     * formatter will produce.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="499" href="#499">499</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="500" href="#500">500</a> <em class="jxr_javadoccomment">     * &lt;p&gt;The actual formatted length will almost always be less than or</em>
-<a class="jxr_linenumber" name="501" href="#501">501</a> <em class="jxr_javadoccomment">     * equal to this amount.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="502" href="#502">502</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="503" href="#503">503</a> <em class="jxr_javadoccomment">     * @return the maximum formatted length</em>
-<a class="jxr_linenumber" name="504" href="#504">504</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="505" href="#505">505</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getMaxLengthEstimate() {
-<a class="jxr_linenumber" name="506" href="#506">506</a>         <strong class="jxr_keyword">return</strong> mMaxLengthEstimate;
-<a class="jxr_linenumber" name="507" href="#507">507</a>     }
-<a class="jxr_linenumber" name="508" href="#508">508</a> 
-<a class="jxr_linenumber" name="509" href="#509">509</a>     <em class="jxr_comment">// Basics</em>
-<a class="jxr_linenumber" name="510" href="#510">510</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="511" href="#511">511</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="512" href="#512">512</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Compares two objects for equality.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="513" href="#513">513</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="514" href="#514">514</a> <em class="jxr_javadoccomment">     * @param obj  the object to compare to</em>
-<a class="jxr_linenumber" name="515" href="#515">515</a> <em class="jxr_javadoccomment">     * @return {@code true} if equal</em>
-<a class="jxr_linenumber" name="516" href="#516">516</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="517" href="#517">517</a>     @Override
-<a class="jxr_linenumber" name="518" href="#518">518</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong> Object obj) {
-<a class="jxr_linenumber" name="519" href="#519">519</a>         <strong class="jxr_keyword">if</strong> (obj instanceof FastDatePrinter == false) {
-<a class="jxr_linenumber" name="520" href="#520">520</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="521" href="#521">521</a>         }
-<a class="jxr_linenumber" name="522" href="#522">522</a>         <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">FastDatePrinter</a> other = (FastDatePrinter) obj;
-<a class="jxr_linenumber" name="523" href="#523">523</a>         <strong class="jxr_keyword">return</strong> mPattern.equals(other.mPattern)
-<a class="jxr_linenumber" name="524" href="#524">524</a>             &amp;&amp; mTimeZone.equals(other.mTimeZone) 
-<a class="jxr_linenumber" name="525" href="#525">525</a>             &amp;&amp; mLocale.equals(other.mLocale);
-<a class="jxr_linenumber" name="526" href="#526">526</a>     }
-<a class="jxr_linenumber" name="527" href="#527">527</a> 
-<a class="jxr_linenumber" name="528" href="#528">528</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="529" href="#529">529</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Returns a hashcode compatible with equals.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="530" href="#530">530</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="531" href="#531">531</a> <em class="jxr_javadoccomment">     * @return a hashcode compatible with equals</em>
-<a class="jxr_linenumber" name="532" href="#532">532</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="533" href="#533">533</a>     @Override
-<a class="jxr_linenumber" name="534" href="#534">534</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode() {
-<a class="jxr_linenumber" name="535" href="#535">535</a>         <strong class="jxr_keyword">return</strong> mPattern.hashCode() + 13 * (mTimeZone.hashCode() + 13 * mLocale.hashCode());
-<a class="jxr_linenumber" name="536" href="#536">536</a>     }
-<a class="jxr_linenumber" name="537" href="#537">537</a> 
-<a class="jxr_linenumber" name="538" href="#538">538</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="539" href="#539">539</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Gets a debugging string version of this formatter.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="540" href="#540">540</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="541" href="#541">541</a> <em class="jxr_javadoccomment">     * @return a debugging string</em>
-<a class="jxr_linenumber" name="542" href="#542">542</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="543" href="#543">543</a>     @Override
-<a class="jxr_linenumber" name="544" href="#544">544</a>     <strong class="jxr_keyword">public</strong> String toString() {
-<a class="jxr_linenumber" name="545" href="#545">545</a>         <strong class="jxr_keyword">return</strong> <span class="jxr_string">"FastDatePrinter["</span> + mPattern + <span class="jxr_string">","</span> + mLocale + <span class="jxr_string">","</span> + mTimeZone.getID() + <span class="jxr_string">"]"</span>;
-<a class="jxr_linenumber" name="546" href="#546">546</a>     }
-<a class="jxr_linenumber" name="547" href="#547">547</a> 
-<a class="jxr_linenumber" name="548" href="#548">548</a>     <em class="jxr_comment">// Serializing</em>
-<a class="jxr_linenumber" name="549" href="#549">549</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="550" href="#550">550</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="551" href="#551">551</a> <em class="jxr_javadoccomment">     * Create the object after serialization. This implementation reinitializes the</em>
-<a class="jxr_linenumber" name="552" href="#552">552</a> <em class="jxr_javadoccomment">     * transient properties.</em>
-<a class="jxr_linenumber" name="553" href="#553">553</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="554" href="#554">554</a> <em class="jxr_javadoccomment">     * @param in ObjectInputStream from which the object is being deserialized.</em>
-<a class="jxr_linenumber" name="555" href="#555">555</a> <em class="jxr_javadoccomment">     * @throws IOException if there is an IO issue.</em>
-<a class="jxr_linenumber" name="556" href="#556">556</a> <em class="jxr_javadoccomment">     * @throws ClassNotFoundException if a class cannot be found.</em>
-<a class="jxr_linenumber" name="557" href="#557">557</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="558" href="#558">558</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> readObject(<strong class="jxr_keyword">final</strong> ObjectInputStream in) <strong class="jxr_keyword">throws</strong> IOException, ClassNotFoundException {
-<a class="jxr_linenumber" name="559" href="#559">559</a>         in.defaultReadObject();
-<a class="jxr_linenumber" name="560" href="#560">560</a>         init();
-<a class="jxr_linenumber" name="561" href="#561">561</a>     }
-<a class="jxr_linenumber" name="562" href="#562">562</a> 
-<a class="jxr_linenumber" name="563" href="#563">563</a>     <em class="jxr_comment">// Rules</em>
-<a class="jxr_linenumber" name="564" href="#564">564</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="565" href="#565">565</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="566" href="#566">566</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class defining a rule.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="567" href="#567">567</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="568" href="#568">568</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
-<a class="jxr_linenumber" name="569" href="#569">569</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="570" href="#570">570</a> <em class="jxr_javadoccomment">         * Returns the estimated lentgh of the result.</em>
-<a class="jxr_linenumber" name="571" href="#571">571</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="572" href="#572">572</a> <em class="jxr_javadoccomment">         * @return the estimated length</em>
-<a class="jxr_linenumber" name="573" href="#573">573</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="574" href="#574">574</a>         <strong class="jxr_keyword">int</strong> estimateLength();
-<a class="jxr_linenumber" name="575" href="#575">575</a> 
-<a class="jxr_linenumber" name="576" href="#576">576</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="577" href="#577">577</a> <em class="jxr_javadoccomment">         * Appends the value of the specified calendar to the output buffer based on the rule implementation.</em>
-<a class="jxr_linenumber" name="578" href="#578">578</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="579" href="#579">579</a> <em class="jxr_javadoccomment">         * @param buffer the output buffer</em>
-<a class="jxr_linenumber" name="580" href="#580">580</a> <em class="jxr_javadoccomment">         * @param calendar calendar to be appended</em>
-<a class="jxr_linenumber" name="581" href="#581">581</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="582" href="#582">582</a>         <strong class="jxr_keyword">void</strong> appendTo(StringBuffer buffer, Calendar calendar);
-<a class="jxr_linenumber" name="583" href="#583">583</a>     }
+<a class="jxr_linenumber" name="411" href="#411">411</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="412" href="#412">412</a> <em class="jxr_javadoccomment">     * Creation method for ne calender instances.</em>
+<a class="jxr_linenumber" name="413" href="#413">413</a> <em class="jxr_javadoccomment">     * @return a new Calendar instance.</em>
+<a class="jxr_linenumber" name="414" href="#414">414</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="415" href="#415">415</a>     <strong class="jxr_keyword">private</strong> GregorianCalendar newCalendar() {
+<a class="jxr_linenumber" name="416" href="#416">416</a>         <em class="jxr_comment">// hard code GregorianCalendar</em>
+<a class="jxr_linenumber" name="417" href="#417">417</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> GregorianCalendar(mTimeZone, mLocale);
+<a class="jxr_linenumber" name="418" href="#418">418</a>     }
+<a class="jxr_linenumber" name="419" href="#419">419</a> 
+<a class="jxr_linenumber" name="420" href="#420">420</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="421" href="#421">421</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Date)</em>
+<a class="jxr_linenumber" name="422" href="#422">422</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="423" href="#423">423</a>     @Override
+<a class="jxr_linenumber" name="424" href="#424">424</a>     <strong class="jxr_keyword">public</strong> String format(<strong class="jxr_keyword">final</strong> Date date) {
+<a class="jxr_linenumber" name="425" href="#425">425</a>         <strong class="jxr_keyword">final</strong> Calendar c = newCalendar();  <em class="jxr_comment">// hard code GregorianCalendar</em>
+<a class="jxr_linenumber" name="426" href="#426">426</a>         c.setTime(date);
+<a class="jxr_linenumber" name="427" href="#427">427</a>         <strong class="jxr_keyword">return</strong> applyRulesToString(c);
+<a class="jxr_linenumber" name="428" href="#428">428</a>     }
+<a class="jxr_linenumber" name="429" href="#429">429</a> 
+<a class="jxr_linenumber" name="430" href="#430">430</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="431" href="#431">431</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Calendar)</em>
+<a class="jxr_linenumber" name="432" href="#432">432</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="433" href="#433">433</a>     @Override
+<a class="jxr_linenumber" name="434" href="#434">434</a>     <strong class="jxr_keyword">public</strong> String format(<strong class="jxr_keyword">final</strong> Calendar calendar) {
+<a class="jxr_linenumber" name="435" href="#435">435</a>         <strong class="jxr_keyword">return</strong> format(calendar, <strong class="jxr_keyword">new</strong> StringBuffer(mMaxLengthEstimate)).toString();
+<a class="jxr_linenumber" name="436" href="#436">436</a>     }
+<a class="jxr_linenumber" name="437" href="#437">437</a> 
+<a class="jxr_linenumber" name="438" href="#438">438</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="439" href="#439">439</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(long, java.lang.StringBuffer)</em>
+<a class="jxr_linenumber" name="440" href="#440">440</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="441" href="#441">441</a>     @Override
+<a class="jxr_linenumber" name="442" href="#442">442</a>     <strong class="jxr_keyword">public</strong> StringBuffer format(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> millis, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
+<a class="jxr_linenumber" name="443" href="#443">443</a>         <strong class="jxr_keyword">return</strong> format(<strong class="jxr_keyword">new</strong> Date(millis), buf);
+<a class="jxr_linenumber" name="444" href="#444">444</a>     }
+<a class="jxr_linenumber" name="445" href="#445">445</a> 
+<a class="jxr_linenumber" name="446" href="#446">446</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="447" href="#447">447</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Date, java.lang.StringBuffer)</em>
+<a class="jxr_linenumber" name="448" href="#448">448</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="449" href="#449">449</a>     @Override
+<a class="jxr_linenumber" name="450" href="#450">450</a>     <strong class="jxr_keyword">public</strong> StringBuffer format(<strong class="jxr_keyword">final</strong> Date date, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
+<a class="jxr_linenumber" name="451" href="#451">451</a>         <strong class="jxr_keyword">final</strong> Calendar c = newCalendar();  <em class="jxr_comment">// hard code GregorianCalendar</em>
+<a class="jxr_linenumber" name="452" href="#452">452</a>         c.setTime(date);
+<a class="jxr_linenumber" name="453" href="#453">453</a>         <strong class="jxr_keyword">return</strong> applyRules(c, buf);
+<a class="jxr_linenumber" name="454" href="#454">454</a>     }
+<a class="jxr_linenumber" name="455" href="#455">455</a> 
+<a class="jxr_linenumber" name="456" href="#456">456</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="457" href="#457">457</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#format(java.util.Calendar, java.lang.StringBuffer)</em>
+<a class="jxr_linenumber" name="458" href="#458">458</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="459" href="#459">459</a>     @Override
+<a class="jxr_linenumber" name="460" href="#460">460</a>     <strong class="jxr_keyword">public</strong> StringBuffer format(<strong class="jxr_keyword">final</strong> Calendar calendar, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
+<a class="jxr_linenumber" name="461" href="#461">461</a>         <strong class="jxr_keyword">return</strong> applyRules(calendar, buf);
+<a class="jxr_linenumber" name="462" href="#462">462</a>     }
+<a class="jxr_linenumber" name="463" href="#463">463</a> 
+<a class="jxr_linenumber" name="464" href="#464">464</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="465" href="#465">465</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Performs the formatting by applying the rules to the</em>
+<a class="jxr_linenumber" name="466" href="#466">466</a> <em class="jxr_javadoccomment">     * specified calendar.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="467" href="#467">467</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="468" href="#468">468</a> <em class="jxr_javadoccomment">     * @param calendar  the calendar to format</em>
+<a class="jxr_linenumber" name="469" href="#469">469</a> <em class="jxr_javadoccomment">     * @param buf  the buffer to format into</em>
+<a class="jxr_linenumber" name="470" href="#470">470</a> <em class="jxr_javadoccomment">     * @return the specified string buffer</em>
+<a class="jxr_linenumber" name="471" href="#471">471</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="472" href="#472">472</a>     <strong class="jxr_keyword">protected</strong> StringBuffer applyRules(<strong class="jxr_keyword">final</strong> Calendar calendar, <strong class="jxr_keyword">final</strong> StringBuffer buf) {
+<a class="jxr_linenumber" name="473" href="#473">473</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> Rule rule : mRules) {
+<a class="jxr_linenumber" name="474" href="#474">474</a>             rule.appendTo(buf, calendar);
+<a class="jxr_linenumber" name="475" href="#475">475</a>         }
+<a class="jxr_linenumber" name="476" href="#476">476</a>         <strong class="jxr_keyword">return</strong> buf;
+<a class="jxr_linenumber" name="477" href="#477">477</a>     }
+<a class="jxr_linenumber" name="478" href="#478">478</a> 
+<a class="jxr_linenumber" name="479" href="#479">479</a>     <em class="jxr_comment">// Accessors</em>
+<a class="jxr_linenumber" name="480" href="#480">480</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="481" href="#481">481</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="482" href="#482">482</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#getPattern()</em>
+<a class="jxr_linenumber" name="483" href="#483">483</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="484" href="#484">484</a>     @Override
+<a class="jxr_linenumber" name="485" href="#485">485</a>     <strong class="jxr_keyword">public</strong> String getPattern() {
+<a class="jxr_linenumber" name="486" href="#486">486</a>         <strong class="jxr_keyword">return</strong> mPattern;
+<a class="jxr_linenumber" name="487" href="#487">487</a>     }
+<a class="jxr_linenumber" name="488" href="#488">488</a> 
+<a class="jxr_linenumber" name="489" href="#489">489</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="490" href="#490">490</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#getTimeZone()</em>
+<a class="jxr_linenumber" name="491" href="#491">491</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="492" href="#492">492</a>     @Override
+<a class="jxr_linenumber" name="493" href="#493">493</a>     <strong class="jxr_keyword">public</strong> TimeZone getTimeZone() {
+<a class="jxr_linenumber" name="494" href="#494">494</a>         <strong class="jxr_keyword">return</strong> mTimeZone;
+<a class="jxr_linenumber" name="495" href="#495">495</a>     }
+<a class="jxr_linenumber" name="496" href="#496">496</a> 
+<a class="jxr_linenumber" name="497" href="#497">497</a>     <em class="jxr_comment">/*<em class="jxr_comment"> (non-Javadoc)</em></em>
+<a class="jxr_linenumber" name="498" href="#498">498</a> <em class="jxr_comment">     * @see org.apache.commons.lang3.time.DatePrinter#getLocale()</em>
+<a class="jxr_linenumber" name="499" href="#499">499</a> <em class="jxr_comment">     */</em>
+<a class="jxr_linenumber" name="500" href="#500">500</a>     @Override
+<a class="jxr_linenumber" name="501" href="#501">501</a>     <strong class="jxr_keyword">public</strong> Locale getLocale() {
+<a class="jxr_linenumber" name="502" href="#502">502</a>         <strong class="jxr_keyword">return</strong> mLocale;
+<a class="jxr_linenumber" name="503" href="#503">503</a>     }
+<a class="jxr_linenumber" name="504" href="#504">504</a> 
+<a class="jxr_linenumber" name="505" href="#505">505</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="506" href="#506">506</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Gets an estimate for the maximum string length that the</em>
+<a class="jxr_linenumber" name="507" href="#507">507</a> <em class="jxr_javadoccomment">     * formatter will produce.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="508" href="#508">508</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="509" href="#509">509</a> <em class="jxr_javadoccomment">     * &lt;p&gt;The actual formatted length will almost always be less than or</em>
+<a class="jxr_linenumber" name="510" href="#510">510</a> <em class="jxr_javadoccomment">     * equal to this amount.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="511" href="#511">511</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="512" href="#512">512</a> <em class="jxr_javadoccomment">     * @return the maximum formatted length</em>
+<a class="jxr_linenumber" name="513" href="#513">513</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="514" href="#514">514</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getMaxLengthEstimate() {
+<a class="jxr_linenumber" name="515" href="#515">515</a>         <strong class="jxr_keyword">return</strong> mMaxLengthEstimate;
+<a class="jxr_linenumber" name="516" href="#516">516</a>     }
+<a class="jxr_linenumber" name="517" href="#517">517</a> 
+<a class="jxr_linenumber" name="518" href="#518">518</a>     <em class="jxr_comment">// Basics</em>
+<a class="jxr_linenumber" name="519" href="#519">519</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="520" href="#520">520</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="521" href="#521">521</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Compares two objects for equality.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="522" href="#522">522</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="523" href="#523">523</a> <em class="jxr_javadoccomment">     * @param obj  the object to compare to</em>
+<a class="jxr_linenumber" name="524" href="#524">524</a> <em class="jxr_javadoccomment">     * @return {@code true} if equal</em>
+<a class="jxr_linenumber" name="525" href="#525">525</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="526" href="#526">526</a>     @Override
+<a class="jxr_linenumber" name="527" href="#527">527</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong> Object obj) {
+<a class="jxr_linenumber" name="528" href="#528">528</a>         <strong class="jxr_keyword">if</strong> (obj instanceof FastDatePrinter == false) {
+<a class="jxr_linenumber" name="529" href="#529">529</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="530" href="#530">530</a>         }
+<a class="jxr_linenumber" name="531" href="#531">531</a>         <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">FastDatePrinter</a> other = (FastDatePrinter) obj;
+<a class="jxr_linenumber" name="532" href="#532">532</a>         <strong class="jxr_keyword">return</strong> mPattern.equals(other.mPattern)
+<a class="jxr_linenumber" name="533" href="#533">533</a>             &amp;&amp; mTimeZone.equals(other.mTimeZone) 
+<a class="jxr_linenumber" name="534" href="#534">534</a>             &amp;&amp; mLocale.equals(other.mLocale);
+<a class="jxr_linenumber" name="535" href="#535">535</a>     }
+<a class="jxr_linenumber" name="536" href="#536">536</a> 
+<a class="jxr_linenumber" name="537" href="#537">537</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="538" href="#538">538</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Returns a hashcode compatible with equals.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="539" href="#539">539</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="540" href="#540">540</a> <em class="jxr_javadoccomment">     * @return a hashcode compatible with equals</em>
+<a class="jxr_linenumber" name="541" href="#541">541</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="542" href="#542">542</a>     @Override
+<a class="jxr_linenumber" name="543" href="#543">543</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode() {
+<a class="jxr_linenumber" name="544" href="#544">544</a>         <strong class="jxr_keyword">return</strong> mPattern.hashCode() + 13 * (mTimeZone.hashCode() + 13 * mLocale.hashCode());
+<a class="jxr_linenumber" name="545" href="#545">545</a>     }
+<a class="jxr_linenumber" name="546" href="#546">546</a> 
+<a class="jxr_linenumber" name="547" href="#547">547</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="548" href="#548">548</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Gets a debugging string version of this formatter.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="549" href="#549">549</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="550" href="#550">550</a> <em class="jxr_javadoccomment">     * @return a debugging string</em>
+<a class="jxr_linenumber" name="551" href="#551">551</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="552" href="#552">552</a>     @Override
+<a class="jxr_linenumber" name="553" href="#553">553</a>     <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="554" href="#554">554</a>         <strong class="jxr_keyword">return</strong> <span class="jxr_string">"FastDatePrinter["</span> + mPattern + <span class="jxr_string">","</span> + mLocale + <span class="jxr_string">","</span> + mTimeZone.getID() + <span class="jxr_string">"]"</span>;
+<a class="jxr_linenumber" name="555" href="#555">555</a>     }
+<a class="jxr_linenumber" name="556" href="#556">556</a> 
+<a class="jxr_linenumber" name="557" href="#557">557</a>     <em class="jxr_comment">// Serializing</em>
+<a class="jxr_linenumber" name="558" href="#558">558</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="559" href="#559">559</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="560" href="#560">560</a> <em class="jxr_javadoccomment">     * Create the object after serialization. This implementation reinitializes the</em>
+<a class="jxr_linenumber" name="561" href="#561">561</a> <em class="jxr_javadoccomment">     * transient properties.</em>
+<a class="jxr_linenumber" name="562" href="#562">562</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="563" href="#563">563</a> <em class="jxr_javadoccomment">     * @param in ObjectInputStream from which the object is being deserialized.</em>
+<a class="jxr_linenumber" name="564" href="#564">564</a> <em class="jxr_javadoccomment">     * @throws IOException if there is an IO issue.</em>
+<a class="jxr_linenumber" name="565" href="#565">565</a> <em class="jxr_javadoccomment">     * @throws ClassNotFoundException if a class cannot be found.</em>
+<a class="jxr_linenumber" name="566" href="#566">566</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="567" href="#567">567</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> readObject(<strong class="jxr_keyword">final</strong> ObjectInputStream in) <strong class="jxr_keyword">throws</strong> IOException, ClassNotFoundException {
+<a class="jxr_linenumber" name="568" href="#568">568</a>         in.defaultReadObject();
+<a class="jxr_linenumber" name="569" href="#569">569</a>         init();
+<a class="jxr_linenumber" name="570" href="#570">570</a>     }
+<a class="jxr_linenumber" name="571" href="#571">571</a> 
+<a class="jxr_linenumber" name="572" href="#572">572</a>     <em class="jxr_comment">// Rules</em>
+<a class="jxr_linenumber" name="573" href="#573">573</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="574" href="#574">574</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="575" href="#575">575</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class defining a rule.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="576" href="#576">576</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="577" href="#577">577</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
+<a class="jxr_linenumber" name="578" href="#578">578</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="579" href="#579">579</a> <em class="jxr_javadoccomment">         * Returns the estimated lentgh of the result.</em>
+<a class="jxr_linenumber" name="580" href="#580">580</a> <em class="jxr_javadoccomment">         *</em>
+<a class="jxr_linenumber" name="581" href="#581">581</a> <em class="jxr_javadoccomment">         * @return the estimated length</em>
+<a class="jxr_linenumber" name="582" href="#582">582</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="583" href="#583">583</a>         <strong class="jxr_keyword">int</strong> estimateLength();
 <a class="jxr_linenumber" name="584" href="#584">584</a> 
-<a class="jxr_linenumber" name="585" href="#585">585</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="586" href="#586">586</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class defining a numeric rule.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="587" href="#587">587</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="588" href="#588">588</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">NumberRule</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
-<a class="jxr_linenumber" name="589" href="#589">589</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="590" href="#590">590</a> <em class="jxr_javadoccomment">         * Appends the specified value to the output buffer based on the rule implementation.</em>
-<a class="jxr_linenumber" name="591" href="#591">591</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="592" href="#592">592</a> <em class="jxr_javadoccomment">         * @param buffer the output buffer</em>
-<a class="jxr_linenumber" name="593" href="#593">593</a> <em class="jxr_javadoccomment">         * @param value the value to be appended</em>
-<a class="jxr_linenumber" name="594" href="#594">594</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="595" href="#595">595</a>         <strong class="jxr_keyword">void</strong> appendTo(StringBuffer buffer, <strong class="jxr_keyword">int</strong> value);
-<a class="jxr_linenumber" name="596" href="#596">596</a>     }
-<a class="jxr_linenumber" name="597" href="#597">597</a> 
-<a class="jxr_linenumber" name="598" href="#598">598</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="599" href="#599">599</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output a constant single character.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="600" href="#600">600</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="601" href="#601">601</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">CharacterLiteral</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
-<a class="jxr_linenumber" name="602" href="#602">602</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> mValue;
-<a class="jxr_linenumber" name="603" href="#603">603</a> 
-<a class="jxr_linenumber" name="604" href="#604">604</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="605" href="#605">605</a> <em class="jxr_javadoccomment">         * Constructs a new instance of {@code CharacterLiteral}</em>
-<a class="jxr_linenumber" name="606" href="#606">606</a> <em class="jxr_javadoccomment">         * to hold the specified value.</em>
-<a class="jxr_linenumber" name="607" href="#607">607</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="608" href="#608">608</a> <em class="jxr_javadoccomment">         * @param value the character literal</em>
-<a class="jxr_linenumber" name="609" href="#609">609</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="610" href="#610">610</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">CharacterLiteral</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> value) {
-<a class="jxr_linenumber" name="611" href="#611">611</a>             mValue = value;
-<a class="jxr_linenumber" name="612" href="#612">612</a>         }
-<a class="jxr_linenumber" name="613" href="#613">613</a> 
-<a class="jxr_linenumber" name="614" href="#614">614</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="615" href="#615">615</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="616" href="#616">616</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="617" href="#617">617</a>         @Override
-<a class="jxr_linenumber" name="618" href="#618">618</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
-<a class="jxr_linenumber" name="619" href="#619">619</a>             <strong class="jxr_keyword">return</strong> 1;
-<a class="jxr_linenumber" name="620" href="#620">620</a>         }
-<a class="jxr_linenumber" name="621" href="#621">621</a> 
-<a class="jxr_linenumber" name="622" href="#622">622</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="623" href="#623">623</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="624" href="#624">624</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="625" href="#625">625</a>         @Override
-<a class="jxr_linenumber" name="626" href="#626">626</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
-<a class="jxr_linenumber" name="627" href="#627">627</a>             buffer.append(mValue);
-<a class="jxr_linenumber" name="628" href="#628">628</a>         }
-<a class="jxr_linenumber" name="629" href="#629">629</a>     }
+<a class="jxr_linenumber" name="585" href="#585">585</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="586" href="#586">586</a> <em class="jxr_javadoccomment">         * Appends the value of the specified calendar to the output buffer based on the rule implementation.</em>
+<a class="jxr_linenumber" name="587" href="#587">587</a> <em class="jxr_javadoccomment">         *</em>
+<a class="jxr_linenumber" name="588" href="#588">588</a> <em class="jxr_javadoccomment">         * @param buffer the output buffer</em>
+<a class="jxr_linenumber" name="589" href="#589">589</a> <em class="jxr_javadoccomment">         * @param calendar calendar to be appended</em>
+<a class="jxr_linenumber" name="590" href="#590">590</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="591" href="#591">591</a>         <strong class="jxr_keyword">void</strong> appendTo(StringBuffer buffer, Calendar calendar);
+<a class="jxr_linenumber" name="592" href="#592">592</a>     }
+<a class="jxr_linenumber" name="593" href="#593">593</a> 
+<a class="jxr_linenumber" name="594" href="#594">594</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="595" href="#595">595</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class defining a numeric rule.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="596" href="#596">596</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="597" href="#597">597</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">NumberRule</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
+<a class="jxr_linenumber" name="598" href="#598">598</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="599" href="#599">599</a> <em class="jxr_javadoccomment">         * Appends the specified value to the output buffer based on the rule implementation.</em>
+<a class="jxr_linenumber" name="600" href="#600">600</a> <em class="jxr_javadoccomment">         *</em>
+<a class="jxr_linenumber" name="601" href="#601">601</a> <em class="jxr_javadoccomment">         * @param buffer the output buffer</em>
+<a class="jxr_linenumber" name="602" href="#602">602</a> <em class="jxr_javadoccomment">         * @param value the value to be appended</em>
+<a class="jxr_linenumber" name="603" href="#603">603</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="604" href="#604">604</a>         <strong class="jxr_keyword">void</strong> appendTo(StringBuffer buffer, <strong class="jxr_keyword">int</strong> value);
+<a class="jxr_linenumber" name="605" href="#605">605</a>     }
+<a class="jxr_linenumber" name="606" href="#606">606</a> 
+<a class="jxr_linenumber" name="607" href="#607">607</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="608" href="#608">608</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output a constant single character.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="609" href="#609">609</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="610" href="#610">610</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">CharacterLiteral</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
+<a class="jxr_linenumber" name="611" href="#611">611</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> mValue;
+<a class="jxr_linenumber" name="612" href="#612">612</a> 
+<a class="jxr_linenumber" name="613" href="#613">613</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="614" href="#614">614</a> <em class="jxr_javadoccomment">         * Constructs a new instance of {@code CharacterLiteral}</em>
+<a class="jxr_linenumber" name="615" href="#615">615</a> <em class="jxr_javadoccomment">         * to hold the specified value.</em>
+<a class="jxr_linenumber" name="616" href="#616">616</a> <em class="jxr_javadoccomment">         *</em>
+<a class="jxr_linenumber" name="617" href="#617">617</a> <em class="jxr_javadoccomment">         * @param value the character literal</em>
+<a class="jxr_linenumber" name="618" href="#618">618</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="619" href="#619">619</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">CharacterLiteral</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">char</strong> value) {
+<a class="jxr_linenumber" name="620" href="#620">620</a>             mValue = value;
+<a class="jxr_linenumber" name="621" href="#621">621</a>         }
+<a class="jxr_linenumber" name="622" href="#622">622</a> 
+<a class="jxr_linenumber" name="623" href="#623">623</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="624" href="#624">624</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
+<a class="jxr_linenumber" name="625" href="#625">625</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="626" href="#626">626</a>         @Override
+<a class="jxr_linenumber" name="627" href="#627">627</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
+<a class="jxr_linenumber" name="628" href="#628">628</a>             <strong class="jxr_keyword">return</strong> 1;
+<a class="jxr_linenumber" name="629" href="#629">629</a>         }
 <a class="jxr_linenumber" name="630" href="#630">630</a> 
-<a class="jxr_linenumber" name="631" href="#631">631</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="632" href="#632">632</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output a constant string.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="633" href="#633">633</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="634" href="#634">634</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">StringLiteral</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
-<a class="jxr_linenumber" name="635" href="#635">635</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String mValue;
-<a class="jxr_linenumber" name="636" href="#636">636</a> 
-<a class="jxr_linenumber" name="637" href="#637">637</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="638" href="#638">638</a> <em class="jxr_javadoccomment">         * Constructs a new instance of {@code StringLiteral}</em>
-<a class="jxr_linenumber" name="639" href="#639">639</a> <em class="jxr_javadoccomment">         * to hold the specified value.</em>
-<a class="jxr_linenumber" name="640" href="#640">640</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="641" href="#641">641</a> <em class="jxr_javadoccomment">         * @param value the string literal</em>
-<a class="jxr_linenumber" name="642" href="#642">642</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="643" href="#643">643</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">StringLiteral</a>(<strong class="jxr_keyword">final</strong> String value) {
-<a class="jxr_linenumber" name="644" href="#644">644</a>             mValue = value;
-<a class="jxr_linenumber" name="645" href="#645">645</a>         }
-<a class="jxr_linenumber" name="646" href="#646">646</a> 
-<a class="jxr_linenumber" name="647" href="#647">647</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="648" href="#648">648</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="649" href="#649">649</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="650" href="#650">650</a>         @Override
-<a class="jxr_linenumber" name="651" href="#651">651</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
-<a class="jxr_linenumber" name="652" href="#652">652</a>             <strong class="jxr_keyword">return</strong> mValue.length();
-<a class="jxr_linenumber" name="653" href="#653">653</a>         }
-<a class="jxr_linenumber" name="654" href="#654">654</a> 
-<a class="jxr_linenumber" name="655" href="#655">655</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="656" href="#656">656</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="657" href="#657">657</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="658" href="#658">658</a>         @Override
-<a class="jxr_linenumber" name="659" href="#659">659</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
-<a class="jxr_linenumber" name="660" href="#660">660</a>             buffer.append(mValue);
-<a class="jxr_linenumber" name="661" href="#661">661</a>         }
-<a class="jxr_linenumber" name="662" href="#662">662</a>     }
+<a class="jxr_linenumber" name="631" href="#631">631</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="632" href="#632">632</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
+<a class="jxr_linenumber" name="633" href="#633">633</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="634" href="#634">634</a>         @Override
+<a class="jxr_linenumber" name="635" href="#635">635</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
+<a class="jxr_linenumber" name="636" href="#636">636</a>             buffer.append(mValue);
+<a class="jxr_linenumber" name="637" href="#637">637</a>         }
+<a class="jxr_linenumber" name="638" href="#638">638</a>     }
+<a class="jxr_linenumber" name="639" href="#639">639</a> 
+<a class="jxr_linenumber" name="640" href="#640">640</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="641" href="#641">641</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output a constant string.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="642" href="#642">642</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="643" href="#643">643</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">StringLiteral</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
+<a class="jxr_linenumber" name="644" href="#644">644</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String mValue;
+<a class="jxr_linenumber" name="645" href="#645">645</a> 
+<a class="jxr_linenumber" name="646" href="#646">646</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="647" href="#647">647</a> <em class="jxr_javadoccomment">         * Constructs a new instance of {@code StringLiteral}</em>
+<a class="jxr_linenumber" name="648" href="#648">648</a> <em class="jxr_javadoccomment">         * to hold the specified value.</em>
+<a class="jxr_linenumber" name="649" href="#649">649</a> <em class="jxr_javadoccomment">         *</em>
+<a class="jxr_linenumber" name="650" href="#650">650</a> <em class="jxr_javadoccomment">         * @param value the string literal</em>
+<a class="jxr_linenumber" name="651" href="#651">651</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="652" href="#652">652</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">StringLiteral</a>(<strong class="jxr_keyword">final</strong> String value) {
+<a class="jxr_linenumber" name="653" href="#653">653</a>             mValue = value;
+<a class="jxr_linenumber" name="654" href="#654">654</a>         }
+<a class="jxr_linenumber" name="655" href="#655">655</a> 
+<a class="jxr_linenumber" name="656" href="#656">656</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="657" href="#657">657</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
+<a class="jxr_linenumber" name="658" href="#658">658</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="659" href="#659">659</a>         @Override
+<a class="jxr_linenumber" name="660" href="#660">660</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
+<a class="jxr_linenumber" name="661" href="#661">661</a>             <strong class="jxr_keyword">return</strong> mValue.length();
+<a class="jxr_linenumber" name="662" href="#662">662</a>         }
 <a class="jxr_linenumber" name="663" href="#663">663</a> 
-<a class="jxr_linenumber" name="664" href="#664">664</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="665" href="#665">665</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output one of a set of values.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="666" href="#666">666</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="667" href="#667">667</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">TextField</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
-<a class="jxr_linenumber" name="668" href="#668">668</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> mField;
-<a class="jxr_linenumber" name="669" href="#669">669</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String[] mValues;
-<a class="jxr_linenumber" name="670" href="#670">670</a> 
-<a class="jxr_linenumber" name="671" href="#671">671</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="672" href="#672">672</a> <em class="jxr_javadoccomment">         * Constructs an instance of {@code TextField}</em>
-<a class="jxr_linenumber" name="673" href="#673">673</a> <em class="jxr_javadoccomment">         * with the specified field and values.</em>
-<a class="jxr_linenumber" name="674" href="#674">674</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="675" href="#675">675</a> <em class="jxr_javadoccomment">         * @param field the field</em>
-<a class="jxr_linenumber" name="676" href="#676">676</a> <em class="jxr_javadoccomment">         * @param values the field values</em>
-<a class="jxr_linenumber" name="677" href="#677">677</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="678" href="#678">678</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">TextField</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> field, <strong class="jxr_keyword">final</strong> String[] values) {
-<a class="jxr_linenumber" name="679" href="#679">679</a>             mField = field;
-<a class="jxr_linenumber" name="680" href="#680">680</a>             mValues = values;
-<a class="jxr_linenumber" name="681" href="#681">681</a>         }
-<a class="jxr_linenumber" name="682" href="#682">682</a> 
-<a class="jxr_linenumber" name="683" href="#683">683</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="684" href="#684">684</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="685" href="#685">685</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="686" href="#686">686</a>         @Override
-<a class="jxr_linenumber" name="687" href="#687">687</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
-<a class="jxr_linenumber" name="688" href="#688">688</a>             <strong class="jxr_keyword">int</strong> max = 0;
-<a class="jxr_linenumber" name="689" href="#689">689</a>             <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i=mValues.length; --i &gt;= 0; ) {
-<a class="jxr_linenumber" name="690" href="#690">690</a>                 <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> len = mValues[i].length();
-<a class="jxr_linenumber" name="691" href="#691">691</a>                 <strong class="jxr_keyword">if</strong> (len &gt; max) {
-<a class="jxr_linenumber" name="692" href="#692">692</a>                     max = len;
-<a class="jxr_linenumber" name="693" href="#693">693</a>                 }
-<a class="jxr_linenumber" name="694" href="#694">694</a>             }
-<a class="jxr_linenumber" name="695" href="#695">695</a>             <strong class="jxr_keyword">return</strong> max;
-<a class="jxr_linenumber" name="696" href="#696">696</a>         }
-<a class="jxr_linenumber" name="697" href="#697">697</a> 
-<a class="jxr_linenumber" name="698" href="#698">698</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="699" href="#699">699</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="700" href="#700">700</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="701" href="#701">701</a>         @Override
-<a class="jxr_linenumber" name="702" href="#702">702</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
-<a class="jxr_linenumber" name="703" href="#703">703</a>             buffer.append(mValues[calendar.get(mField)]);
-<a class="jxr_linenumber" name="704" href="#704">704</a>         }
-<a class="jxr_linenumber" name="705" href="#705">705</a>     }
+<a class="jxr_linenumber" name="664" href="#664">664</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="665" href="#665">665</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
+<a class="jxr_linenumber" name="666" href="#666">666</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="667" href="#667">667</a>         @Override
+<a class="jxr_linenumber" name="668" href="#668">668</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
+<a class="jxr_linenumber" name="669" href="#669">669</a>             buffer.append(mValue);
+<a class="jxr_linenumber" name="670" href="#670">670</a>         }
+<a class="jxr_linenumber" name="671" href="#671">671</a>     }
+<a class="jxr_linenumber" name="672" href="#672">672</a> 
+<a class="jxr_linenumber" name="673" href="#673">673</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="674" href="#674">674</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output one of a set of values.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="675" href="#675">675</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="676" href="#676">676</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">TextField</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">Rule</a> {
+<a class="jxr_linenumber" name="677" href="#677">677</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> mField;
+<a class="jxr_linenumber" name="678" href="#678">678</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String[] mValues;
+<a class="jxr_linenumber" name="679" href="#679">679</a> 
+<a class="jxr_linenumber" name="680" href="#680">680</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="681" href="#681">681</a> <em class="jxr_javadoccomment">         * Constructs an instance of {@code TextField}</em>
+<a class="jxr_linenumber" name="682" href="#682">682</a> <em class="jxr_javadoccomment">         * with the specified field and values.</em>
+<a class="jxr_linenumber" name="683" href="#683">683</a> <em class="jxr_javadoccomment">         *</em>
+<a class="jxr_linenumber" name="684" href="#684">684</a> <em class="jxr_javadoccomment">         * @param field the field</em>
+<a class="jxr_linenumber" name="685" href="#685">685</a> <em class="jxr_javadoccomment">         * @param values the field values</em>
+<a class="jxr_linenumber" name="686" href="#686">686</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="687" href="#687">687</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">TextField</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> field, <strong class="jxr_keyword">final</strong> String[] values) {
+<a class="jxr_linenumber" name="688" href="#688">688</a>             mField = field;
+<a class="jxr_linenumber" name="689" href="#689">689</a>             mValues = values;
+<a class="jxr_linenumber" name="690" href="#690">690</a>         }
+<a class="jxr_linenumber" name="691" href="#691">691</a> 
+<a class="jxr_linenumber" name="692" href="#692">692</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="693" href="#693">693</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
+<a class="jxr_linenumber" name="694" href="#694">694</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="695" href="#695">695</a>         @Override
+<a class="jxr_linenumber" name="696" href="#696">696</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
+<a class="jxr_linenumber" name="697" href="#697">697</a>             <strong class="jxr_keyword">int</strong> max = 0;
+<a class="jxr_linenumber" name="698" href="#698">698</a>             <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i=mValues.length; --i &gt;= 0; ) {
+<a class="jxr_linenumber" name="699" href="#699">699</a>                 <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> len = mValues[i].length();
+<a class="jxr_linenumber" name="700" href="#700">700</a>                 <strong class="jxr_keyword">if</strong> (len &gt; max) {
+<a class="jxr_linenumber" name="701" href="#701">701</a>                     max = len;
+<a class="jxr_linenumber" name="702" href="#702">702</a>                 }
+<a class="jxr_linenumber" name="703" href="#703">703</a>             }
+<a class="jxr_linenumber" name="704" href="#704">704</a>             <strong class="jxr_keyword">return</strong> max;
+<a class="jxr_linenumber" name="705" href="#705">705</a>         }
 <a class="jxr_linenumber" name="706" href="#706">706</a> 
-<a class="jxr_linenumber" name="707" href="#707">707</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="708" href="#708">708</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output an unpadded number.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="709" href="#709">709</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="710" href="#710">710</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">UnpaddedNumberField</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">NumberRule</a> {
-<a class="jxr_linenumber" name="711" href="#711">711</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> mField;
-<a class="jxr_linenumber" name="712" href="#712">712</a> 
-<a class="jxr_linenumber" name="713" href="#713">713</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="714" href="#714">714</a> <em class="jxr_javadoccomment">         * Constructs an instance of {@code UnpadedNumberField} with the specified field.</em>
-<a class="jxr_linenumber" name="715" href="#715">715</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="716" href="#716">716</a> <em class="jxr_javadoccomment">         * @param field the field</em>
-<a class="jxr_linenumber" name="717" href="#717">717</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="718" href="#718">718</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">UnpaddedNumberField</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> field) {
-<a class="jxr_linenumber" name="719" href="#719">719</a>             mField = field;
-<a class="jxr_linenumber" name="720" href="#720">720</a>         }
+<a class="jxr_linenumber" name="707" href="#707">707</a>         <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="708" href="#708">708</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
+<a class="jxr_linenumber" name="709" href="#709">709</a> <em class="jxr_javadoccomment">         */</em>
+<a class="jxr_linenumber" name="710" href="#710">710</a>         @Override
+<a class="jxr_linenumber" name="711" href="#711">711</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
+<a class="jxr_linenumber" name="712" href="#712">712</a>             buffer.append(mValues[calendar.get(mField)]);
+<a class="jxr_linenumber" name="713" href="#713">713</a>         }
+<a class="jxr_linenumber" name="714" href="#714">714</a>     }
+<a class="jxr_linenumber" name="715" href="#715">715</a> 
+<a class="jxr_linenumber" name="716" href="#716">716</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="717" href="#717">717</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output an unpadded number.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="718" href="#718">718</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="719" href="#719">719</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">UnpaddedNumberField</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">NumberRule</a> {
+<a class="jxr_linenumber" name="720" href="#720">720</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> mField;
 <a class="jxr_linenumber" name="721" href="#721">721</a> 
 <a class="jxr_linenumber" name="722" href="#722">722</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="723" href="#723">723</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="724" href="#724">724</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="725" href="#725">725</a>         @Override
-<a class="jxr_linenumber" name="726" href="#726">726</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
-<a class="jxr_linenumber" name="727" href="#727">727</a>             <strong class="jxr_keyword">return</strong> 4;
-<a class="jxr_linenumber" name="728" href="#728">728</a>         }
-<a class="jxr_linenumber" name="729" href="#729">729</a> 
-<a class="jxr_linenumber" name="730" href="#730">730</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="731" href="#731">731</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="732" href="#732">732</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="733" href="#733">733</a>         @Override
-<a class="jxr_linenumber" name="734" href="#734">734</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
-<a class="jxr_linenumber" name="735" href="#735">735</a>             appendTo(buffer, calendar.get(mField));
-<a class="jxr_linenumber" name="736" href="#736">736</a>         }
-<a class="jxr_linenumber" name="737" href="#737">737</a> 
-<a class="jxr_linenumber" name="738" href="#738">738</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="739" href="#739">739</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="740" href="#740">740</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="741" href="#741">741</a>         @Override
-<a class="jxr_linenumber" name="742" href="#742">742</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value) {
-<a class="jxr_linenumber" name="743" href="#743">743</a>             <strong class="jxr_keyword">if</strong> (value &lt; 10) {
-<a class="jxr_linenumber" name="744" href="#744">744</a>                 buffer.append((<strong class="jxr_keyword">char</strong>)(value + '0'));
-<a class="jxr_linenumber" name="745" href="#745">745</a>             } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (value &lt; 100) {
-<a class="jxr_linenumber" name="746" href="#746">746</a>                 buffer.append((<strong class="jxr_keyword">char</strong>)(value / 10 + '0'));
-<a class="jxr_linenumber" name="747" href="#747">747</a>                 buffer.append((<strong class="jxr_keyword">char</strong>)(value % 10 + '0'));
-<a class="jxr_linenumber" name="748" href="#748">748</a>             } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="749" href="#749">749</a>                 buffer.append(Integer.toString(value));
-<a class="jxr_linenumber" name="750" href="#750">750</a>             }
-<a class="jxr_linenumber" name="751" href="#751">751</a>         }
-<a class="jxr_linenumber" name="752" href="#752">752</a>     }
-<a class="jxr_linenumber" name="753" href="#753">753</a> 
-<a class="jxr_linenumber" name="754" href="#754">754</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="755" href="#755">755</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output an unpadded month.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="756" href="#756">756</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="757" href="#757">757</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">UnpaddedMonthField</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">NumberRule</a> {
-<a class="jxr_linenumber" name="758" href="#758">758</a>         <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">UnpaddedMonthField</a> INSTANCE = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">UnpaddedMonthField</a>();
-<a class="jxr_linenumber" name="759" href="#759">759</a> 
-<a class="jxr_linenumber" name="760" href="#760">760</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="761" href="#761">761</a> <em class="jxr_javadoccomment">         * Constructs an instance of {@code UnpaddedMonthField}.</em>
-<a class="jxr_linenumber" name="762" href="#762">762</a> <em class="jxr_javadoccomment">         *</em>
-<a class="jxr_linenumber" name="763" href="#763">763</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="764" href="#764">764</a>         <a href="../../../../../org/apache/commons/lang3/time/FastDatePrinter.html">UnpaddedMonthField</a>() {
-<a class="jxr_linenumber" name="765" href="#765">765</a>             <strong class="jxr_keyword">super</strong>();
-<a class="jxr_linenumber" name="766" href="#766">766</a>         }
-<a class="jxr_linenumber" name="767" href="#767">767</a> 
-<a class="jxr_linenumber" name="768" href="#768">768</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="769" href="#769">769</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="770" href="#770">770</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="771" href="#771">771</a>         @Override
-<a class="jxr_linenumber" name="772" href="#772">772</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> estimateLength() {
-<a class="jxr_linenumber" name="773" href="#773">773</a>             <strong class="jxr_keyword">return</strong> 2;
-<a class="jxr_linenumber" name="774" href="#774">774</a>         }
-<a class="jxr_linenumber" name="775" href="#775">775</a> 
-<a class="jxr_linenumber" name="776" href="#776">776</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="777" href="#777">777</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="778" href="#778">778</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="779" href="#779">779</a>         @Override
-<a class="jxr_linenumber" name="780" href="#780">780</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> Calendar calendar) {
-<a class="jxr_linenumber" name="781" href="#781">781</a>             appendTo(buffer, calendar.get(Calendar.MONTH) + 1);
-<a class="jxr_linenumber" name="782" href="#782">782</a>         }
-<a class="jxr_linenumber" name="783" href="#783">783</a> 
-<a class="jxr_linenumber" name="784" href="#784">784</a>         <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="785" href="#785">785</a> <em class="jxr_javadoccomment">         * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="786" href="#786">786</a> <em class="jxr_javadoccomment">         */</em>
-<a class="jxr_linenumber" name="787" href="#787">787</a>         @Override
-<a class="jxr_linenumber" name="788" href="#788">788</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">void</strong> appendTo(<strong class="jxr_keyword">final</strong> StringBuffer buffer, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> value) {
-<a class="jxr_linenumber" name="789" href="#789">789</a>             <strong class="jxr_keyword">if</strong> (value &lt; 10) {
-<a class="jxr_linenumber" name="790" href="#790">790</a>                 buffer.append((<strong class="jxr_keyword">char</strong>)(value + '0'));
-<a class="jxr_linenumber" name="791" href="#791">791</a>             } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="792" href="#792">792</a>                 buffer.append((<strong class="jxr_keyword">char</strong>)(value / 10 + '0'));
-<a class="jxr_linenumber" name="793" href="#793">793</a>                 buffer.append((<strong class="jxr_keyword">char</strong>)(value % 10 + '0'));
-<a class="jxr_linenumber" name="794" href="#794">794</a>             }
-<a class="jxr_linenumber" name="795" href="#795">795</a>         }
-<a class="jxr_linenumber" name="796" href="#796">796</a>     }
-<a class="jxr_linenumber" name="797" href="#797">797</a> 
-<a class="jxr_linenumber" name="798" href="#798">798</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="799" href="#799">799</a> <em class="jxr_javadoccomment">     * &lt;p&gt;Inner class to output a padded number.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="800" href="#800">800</a> <em class="jxr_javadoccomment">     */</em>

[... 1003 lines stripped ...]


Mime
View raw message