Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.lang.time
Class FastDateFormat.PaddedNumberField  view FastDateFormat.PaddedNumberField download FastDateFormat.PaddedNumberField.java

java.lang.Object
  extended byorg.apache.commons.lang.time.FastDateFormat.PaddedNumberField
All Implemented Interfaces:
FastDateFormat.NumberRule, FastDateFormat.Rule
Enclosing class:
FastDateFormat

private static class FastDateFormat.PaddedNumberField
extends java.lang.Object
implements FastDateFormat.NumberRule

Inner class to output a padded number.


Field Summary
private  int mField
           
private  int mSize
           
 
Constructor Summary
(package private) FastDateFormat.PaddedNumberField(int field, int size)
           
 
Method Summary
 void appendTo(java.lang.StringBuffer buffer, java.util.Calendar calendar)
           
 void appendTo(java.lang.StringBuffer buffer, int value)
           
 int estimateLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mField

private final int mField

mSize

private final int mSize
Constructor Detail

FastDateFormat.PaddedNumberField

FastDateFormat.PaddedNumberField(int field,
                                 int size)
Method Detail

estimateLength

public int estimateLength()
Specified by:
estimateLength in interface FastDateFormat.Rule

appendTo

public void appendTo(java.lang.StringBuffer buffer,
                     java.util.Calendar calendar)
Specified by:
appendTo in interface FastDateFormat.Rule

appendTo

public final void appendTo(java.lang.StringBuffer buffer,
                           int value)
Specified by:
appendTo in interface FastDateFormat.NumberRule