| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DataRecord | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv String | |
| public static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public int | Returns: index to use if might have required or optional suffix, or -1 if none requiredthe unit unit, boolean omitCount, boolean useDigitPrefix, int the count count, int the format to use for displaying the count cv, boolean whether to use the count separator, if available useSep, String the term name name, boolean true if this is the last unit to be formatted last, StringBuffer the string builder to which to append the text sb)Append a count to the string builder. |
| public void | appendCountValue(int
the count count, int the number of integer digits to display integralDigits, int the number of decimal digits to display, <= 3 decimalDigits, StringBuffer the string builder to which to append the text sb)Append a count value to the builder. |
| public void | appendDigits(long
the integer to append num, int the minimum number of digits to append mindigits, int the maximum number of digits to append maxdigits, StringBuffer the string builder to which to append the text sb)Append digits to the string builder, using this.zero for '0' etc. |
| public void | |
| public boolean | Returns: true if a following digit will require a digit prefixhow and whether to display the time limit tl, int how and whether to display the time direction td, StringBuffer the string builder to which to append the text sb)Append the appropriate prefix to the string builder, depending on whether and how a limit and direction are to be displayed. |
| public void | appendSkippedUnit(StringBuffer
the string builder to which to append the text sb)Append a marker for skipped units internal to a string. |
| public void | appendSuffix(int
how and whether to display the time limit tl, int how and whether to display the time direction td, StringBuffer the string builder to which to append the text sb)Append the appropriate suffix to the string builder, depending on whether and how a limit and direction are to be displayed. |
| public boolean | Returns: true if will require skip markerthe unit to append unit, int the count of units, * 1000 count, int the format to use for displaying the count cv, int the format to use for displaying the unit uv, boolean if false, force no separator between count and unit useCountSep, boolean if true, use the digit prefix useDigitPrefix, boolean true if there are multiple units in this string multiple, boolean true if this is the last unit last, boolean true if the unit(s) before this were skipped wasSkipped, StringBuffer the string builder to which to append the text sb)Append the count and unit to the string builder. |
| public boolean | Returns: true if a prefix will be required before a following unitthe unit to which to append the separator unit, boolean longSep, boolean true if this is the first unit formatted afterFirst, boolean true if this is the next-to-last unit to be formatted beforeLast, StringBuffer the string builder to which to append the text sb)Append the appropriate separator between units |
| private int | |
| public int | Returns: the pluralization formatReturn the pluralization format used by this locale. |
| public int | |
| public boolean |
| dr | back to summary |
|---|---|
| pack-priv final DataRecord dr | |
| FORM_DUAL | back to summary |
|---|---|
| private static final int FORM_DUAL | |
| FORM_HALF_SPELLED | back to summary |
|---|---|
| private static final int FORM_HALF_SPELLED | |
| FORM_PAUCAL | back to summary |
|---|---|
| private static final int FORM_PAUCAL | |
| FORM_PLURAL | back to summary |
|---|---|
| private static final int FORM_PLURAL | |
| FORM_SINGULAR | back to summary |
|---|---|
| private static final int FORM_SINGULAR | |
| FORM_SINGULAR_NO_OMIT | back to summary |
|---|---|
| private static final int FORM_SINGULAR_NO_OMIT | |
| FORM_SINGULAR_SPELLED | back to summary |
|---|---|
| private static final int FORM_SINGULAR_SPELLED | |
| localeName | back to summary |
|---|---|
| pack-priv String localeName | |
| trace | back to summary |
|---|---|
| public static boolean trace | |
| PeriodFormatterData | back to summary |
|---|---|
| public PeriodFormatterData(String localeName, DataRecord dr) | |
| allowZero | back to summary |
|---|---|
| public boolean allowZero() Return true if zeros are allowed in the display.
| |
| appendCount | back to summary |
|---|---|
| public int appendCount(TimeUnit unit, boolean omitCount, boolean useDigitPrefix, int count, int cv, boolean useSep, String name, boolean last, StringBuffer sb) Append a count to the string builder.
| |
| appendCountValue | back to summary |
|---|---|
| public void appendCountValue(int count, int integralDigits, int decimalDigits, StringBuffer sb) Append a count value to the builder.
| |
| appendDigits | back to summary |
|---|---|
| public void appendDigits(long num, int mindigits, int maxdigits, StringBuffer sb) Append digits to the string builder, using this.zero for '0' etc.
| |
| appendInteger | back to summary |
|---|---|
| public void appendInteger(int num, int mindigits, int maxdigits, StringBuffer sb) | |
| appendPrefix | back to summary |
|---|---|
| public boolean appendPrefix(int tl, int td, StringBuffer sb) Append the appropriate prefix to the string builder, depending on whether and how a limit and direction are to be displayed.
| |
| appendSkippedUnit | back to summary |
|---|---|
| public void appendSkippedUnit(StringBuffer sb) Append a marker for skipped units internal to a string.
| |
| appendSuffix | back to summary |
|---|---|
| public void appendSuffix(int tl, int td, StringBuffer sb) Append the appropriate suffix to the string builder, depending on whether and how a limit and direction are to be displayed.
| |
| appendUnit | back to summary |
|---|---|
| public boolean appendUnit(TimeUnit unit, int count, int cv, int uv, boolean useCountSep, boolean useDigitPrefix, boolean multiple, boolean last, boolean wasSkipped, StringBuffer sb) Append the count and unit to the string builder.
| |
| appendUnitSeparator | back to summary |
|---|---|
| public boolean appendUnitSeparator(TimeUnit unit, boolean longSep, boolean afterFirst, boolean beforeLast, StringBuffer sb) Append the appropriate separator between units
| |
| computeForm | back to summary |
|---|---|
| private int computeForm(TimeUnit unit, int count, int cv, boolean lastOfMultiple) | |
| pluralization | back to summary |
|---|---|
| public int pluralization() Return the pluralization format used by this locale.
| |
| useMilliseconds | back to summary |
|---|---|
| public int useMilliseconds() | |
| weeksAloneOnly | back to summary |
|---|---|
| public boolean weeksAloneOnly() | |