Serialized Form


Package com.ibm.icu.math

Class com.ibm.icu.math.BigDecimal extends Number implements Serializable

serialVersionUID: 8245355804974198832L

Serialized Fields

ind

byte ind
The indicator. This may take the values:

 

form

byte form
The formatting style. This may take the values:

This property is an optimization; it allows us to defer number layout until it is actually needed as a string, hence avoiding unnecessary formatting.

 

mant

byte[] mant
The value of the mantissa.

Once constructed, this may become shared between several BigDecimal objects, so must not be altered.

For efficiency (speed), this is a byte array, with each byte taking a value of 0 -> 9.

If the first byte is 0 then the value of the number is zero (and mant.length=1, except when constructed from a plain number, for example, 0.000).

 

exp

int exp
The exponent.

For fixed point arithmetic, scale is -exp, and can apply to zero. Note that this property can have a value less than MinExp when the mantissa has more than one digit.

 

Class com.ibm.icu.math.MathContext extends Object implements Serializable

serialVersionUID: 7163376998892515376L

Serialized Fields

digits

int digits
The number of digits (precision) to be used for an operation. A value of 0 indicates that unlimited precision (as many digits as are required) will be used.

The BigDecimal operator methods use this value to determine the precision of results. Note that leading zeros (in the integer part of a number) are never significant.

digits will always be non-negative.

 

form

int form
The form of results from an operation.

The BigDecimal operator methods use this value to determine the form of results, in particular whether and how exponential notation should be used.

 
See Also:
MathContext.ENGINEERING, MathContext.PLAIN, MathContext.SCIENTIFIC

lostDigits

boolean lostDigits
Controls whether lost digits checking is enabled for an operation. Set to true to enable checking, or to false to disable checking.

When enabled, the BigDecimal operator methods check the precision of their operand or operands, and throw an ArithmeticException if an operand is more precise than the digits setting (that is, digits would be lost). When disabled, operands are rounded to the specified digits.

 

roundingMode

int roundingMode
The rounding algorithm to be used for an operation.

The BigDecimal operator methods use this value to determine the algorithm to be used when non-zero digits have to be discarded in order to reduce the precision of a result. The value must be one of the public constants whose name starts with ROUND_.

 
See Also:
MathContext.ROUND_CEILING, MathContext.ROUND_DOWN, MathContext.ROUND_FLOOR, MathContext.ROUND_HALF_DOWN, MathContext.ROUND_HALF_EVEN, MathContext.ROUND_HALF_UP, MathContext.ROUND_UNNECESSARY, MathContext.ROUND_UP

Package com.ibm.icu.text

Class com.ibm.icu.text.ArabicShapingException extends Exception implements Serializable

serialVersionUID: 5261531805497260490L

Class com.ibm.icu.text.ChineseDateFormat extends SimpleDateFormat implements Serializable

serialVersionUID: -4610300753104099899L

Class com.ibm.icu.text.ChineseDateFormat.Field extends DateFormat.Field implements Serializable

serialVersionUID: -5102130532751400330L

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Deprecated. ICU 50

Resolves instances being deserialized to the predefined constants.

Throws:
InvalidObjectException - if the constant could not be resolved.

Class com.ibm.icu.text.ChineseDateFormatSymbols extends DateFormatSymbols implements Serializable

serialVersionUID: 6827816119783952890L

Serialized Fields

isLeapMonth

String[] isLeapMonth
Deprecated. 

Class com.ibm.icu.text.CompactDecimalFormat extends DecimalFormat implements Serializable

serialVersionUID: 4716293295276629682L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException
Throws:
IOException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Throws:
IOException
Serialized Fields

prefix

String[] prefix

suffix

String[] suffix

divisor

long[] divisor

currencyAffixes

String[] currencyAffixes

Class com.ibm.icu.text.CurrencyPluralInfo extends Object implements Serializable

serialVersionUID: 1L

Serialized Fields

pluralCountToCurrencyUnitPattern

Map<K,V> pluralCountToCurrencyUnitPattern

pluralRules

PluralRules pluralRules

ulocale

ULocale ulocale

Class com.ibm.icu.text.DateFormat extends UFormat implements Serializable

serialVersionUID: 7218322306649953788L

Serialized Fields

calendar

Calendar calendar
The calendar that DateFormat uses to produce the time field values needed to implement date and time formatting. Subclasses should initialize this to a calendar appropriate for the locale associated with this DateFormat.

 
Status:
Stable ICU 2.0.

numberFormat

NumberFormat numberFormat
The number formatter that DateFormat uses to format numbers in dates and times. Subclasses should initialize this to a number format appropriate for the locale associated with this DateFormat.

 
Status:
Stable ICU 2.0.

Class com.ibm.icu.text.DateFormat.Field extends Format.Field implements Serializable

serialVersionUID: -3627456821000730829L

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Resolves instances being deserialized to the predefined constants.

Throws:
InvalidObjectException - if the constant could not be resolved.
Serialized Fields

calendarField

int calendarField

Class com.ibm.icu.text.DateFormatSymbols extends Object implements Serializable

serialVersionUID: -5987973545549424702L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
3.8 or older version did not have localized GMT format patterns.

Throws:
IOException
ClassNotFoundException
Serialized Fields

eras

String[] eras
Era strings. For example: "AD" and "BC". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.

 

eraNames

String[] eraNames
Era name strings. For example: "Anno Domini" and "Before Christ". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.

 

narrowEras

String[] narrowEras
Narrow era names. For example: "A" and "B". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.

 

months

String[] months
Month strings. For example: "January", "February", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

shortMonths

String[] shortMonths
Short month strings. For example: "Jan", "Feb", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

narrowMonths

String[] narrowMonths
Narrow month strings. For example: "J", "F", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

standaloneMonths

String[] standaloneMonths
Standalone month strings. For example: "January", "February", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

standaloneShortMonths

String[] standaloneShortMonths
Standalone short month strings. For example: "Jan", "Feb", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

standaloneNarrowMonths

String[] standaloneNarrowMonths
Standalone narrow month strings. For example: "J", "F", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

weekdays

String[] weekdays
Weekday strings. For example: "Sunday", "Monday", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element weekdays[0] is ignored.

 

shortWeekdays

String[] shortWeekdays
Short weekday strings. For example: "Sun", "Mon", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element shortWeekdays[0] is ignored.

 

narrowWeekdays

String[] narrowWeekdays
Narrow weekday strings. For example: "S", "M", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element narrowWeekdays[0] is ignored.

 

standaloneWeekdays

String[] standaloneWeekdays
Standalone weekday strings. For example: "Sunday", "Monday", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneWeekdays[0] is ignored.

 

standaloneShortWeekdays

String[] standaloneShortWeekdays
Standalone short weekday strings. For example: "Sun", "Mon", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneShortWeekdays[0] is ignored.

 

standaloneNarrowWeekdays

String[] standaloneNarrowWeekdays
Standalone narrow weekday strings. For example: "S", "M", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneNarrowWeekdays[0] is ignored.

 

ampms

String[] ampms
AM and PM strings. For example: "AM" and "PM". An array of 2 strings, indexed by Calendar.AM and Calendar.PM.

 

shortQuarters

String[] shortQuarters
Abbreviated quarter names. For example: "Q1", "Q2", "Q3", "Q4". An array of 4 strings indexed by the month divided by 3.

 

quarters

String[] quarters
Full quarter names. For example: "1st Quarter", "2nd Quarter", "3rd Quarter", "4th Quarter". An array of 4 strings, indexed by the month divided by 3.

 

standaloneShortQuarters

String[] standaloneShortQuarters
Standalone abbreviated quarter names. For example: "Q1", "Q2", "Q3", "Q4". An array of 4 strings indexed by the month divided by 3.

 

standaloneQuarters

String[] standaloneQuarters
Standalone full quarter names. For example: "1st Quarter", "2nd Quarter", "3rd Quarter", "4th Quarter". An array of 4 strings, indexed by the month divided by 3.

 

leapMonthPatterns

String[] leapMonthPatterns
All leap month patterns, for example "{0}bis". An array of DT_MONTH_PATTERN_COUNT strings, indexed by the DT_LEAP_MONTH_PATTERN_XXX value.

 

shortYearNames

String[] shortYearNames
(Format) Short cyclic year names, for example: "jia-zi", "yi-chou", ... "gui-hai". An array of (normally) 60 strings, corresponding to cyclic years 1-60 (in Calendar YEAR field).

 

zoneStrings

String[][] zoneStrings
Localized names of time zones in this locale. This is a two-dimensional array of strings of size n by m, where m is at least 5 and up to 7. Each of the n rows is an entry containing the localized names for a single TimeZone. Each such row contains (with i ranging from 0..n-1):

localPatternChars

String localPatternChars
Localized date-time pattern characters. For example, a locale may wish to use 'u' rather than 'y' to represent years in its date format pattern strings. This string must be exactly 18 characters long, with the index of the characters described by DateFormat.ERA_FIELD, DateFormat.YEAR_FIELD, etc. Thus, if the string were "Xz...", then localized patterns would use 'X' for era and 'z' for year.

 

capitalization

Map<K,V> capitalization
Capitalization transforms. For each usage type, the first array element indicates whether to titlecase for uiListOrMenu context, the second indicates whether to titlecase for stand-alone context.

 

requestedLocale

ULocale requestedLocale

validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale

Class com.ibm.icu.text.DateIntervalFormat extends UFormat implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException
Serialized Fields

fInfo

DateIntervalInfo fInfo

fDateFormat

SimpleDateFormat fDateFormat

fFromCalendar

Calendar fFromCalendar

fToCalendar

Calendar fToCalendar

fSkeleton

String fSkeleton

Class com.ibm.icu.text.DateIntervalInfo extends Object implements Serializable

serialVersionUID: 1L

Serialized Fields

fFallbackIntervalPattern

String fFallbackIntervalPattern

fFirstDateInPtnIsLaterDate

boolean fFirstDateInPtnIsLaterDate

fIntervalPatterns

Map<K,V> fIntervalPatterns

Class com.ibm.icu.text.DateIntervalInfo.PatternInfo extends Object implements Serializable

serialVersionUID: 1L

Serialized Fields

fIntervalPatternFirstPart

String fIntervalPatternFirstPart

fIntervalPatternSecondPart

String fIntervalPatternSecondPart

fFirstDateInPtnIsLaterDate

boolean fFirstDateInPtnIsLaterDate

Class com.ibm.icu.text.DecimalFormat extends NumberFormat implements Serializable

serialVersionUID: 864413376551465018L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
First, read the default serializable fields from the stream. Then if serialVersionOnStream is less than 1, indicating that the stream was written by JDK 1.1, initialize useExponentialNotation to false, since it was not present in JDK 1.1. Finally, set serialVersionOnStream back to the maximum allowed value so that default serialization will work properly if this object is streamed out again.

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Throws:
IOException
Serialized Fields

positivePrefix

String positivePrefix
The symbol used as a prefix when formatting positive numbers, e.g. "+".

 
See Also:
DecimalFormat.getPositivePrefix()

positiveSuffix

String positiveSuffix
The symbol used as a suffix when formatting positive numbers. This is often an empty string.

 
See Also:
DecimalFormat.getPositiveSuffix()

negativePrefix

String negativePrefix
The symbol used as a prefix when formatting negative numbers, e.g. "-".

 
See Also:
DecimalFormat.getNegativePrefix()

negativeSuffix

String negativeSuffix
The symbol used as a suffix when formatting negative numbers. This is often an empty string.

 
See Also:
DecimalFormat.getNegativeSuffix()

posPrefixPattern

String posPrefixPattern
The prefix pattern for non-negative numbers. This variable corresponds to positivePrefix.

This pattern is expanded by the method expandAffix() to positivePrefix to update the latter to reflect changes in symbols. If this variable is null then positivePrefix is taken as a literal value that does not change when symbols changes. This variable is always null for DecimalFormat objects older than stream version 2 restored from stream.

 

posSuffixPattern

String posSuffixPattern
The suffix pattern for non-negative numbers. This variable corresponds to positiveSuffix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 

negPrefixPattern

String negPrefixPattern
The prefix pattern for negative numbers. This variable corresponds to negativePrefix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 

negSuffixPattern

String negSuffixPattern
The suffix pattern for negative numbers. This variable corresponds to negativeSuffix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 

currencyChoice

ChoiceFormat currencyChoice
Formatter for ChoiceFormat-based currency names. If this field is not null, then delegate to it to format currency symbols.

Since:
ICU 2.6

multiplier

int multiplier
The multiplier for use in percent, permill, etc.

 
See Also:
DecimalFormat.getMultiplier()

groupingSize

byte groupingSize
The number of digits between grouping separators in the integer portion of a number. Must be greater than 0 if NumberFormat.groupingUsed is true.

 
See Also:
DecimalFormat.getGroupingSize(), NumberFormat.isGroupingUsed()

groupingSize2

byte groupingSize2
The secondary grouping size. This is only used for Hindi numerals, which use a primary grouping of 3 and a secondary grouping of 2, e.g., "12,34,567". If this value is less than 1, then secondary grouping is equal to the primary grouping.


decimalSeparatorAlwaysShown

boolean decimalSeparatorAlwaysShown
If true, forces the decimal separator to always appear in a formatted number, even if the fractional part of the number is zero.

 
See Also:
DecimalFormat.isDecimalSeparatorAlwaysShown()

symbols

DecimalFormatSymbols symbols
The DecimalFormatSymbols object used by this format. It contains the symbols used to format numbers, e.g. the grouping separator, decimal separator, and so on.

 
See Also:
DecimalFormat.setDecimalFormatSymbols(com.ibm.icu.text.DecimalFormatSymbols), DecimalFormatSymbols

useSignificantDigits

boolean useSignificantDigits
True to use significant digits rather than integer and fraction digit counts.

 
Since:
ICU 3.0

minSignificantDigits

int minSignificantDigits
The minimum number of significant digits to show. Must be >= 1 and <= maxSignificantDigits. Ignored unless useSignificantDigits == true.

 
Since:
ICU 3.0

maxSignificantDigits

int maxSignificantDigits
The maximum number of significant digits to show. Must be >= minSignficantDigits. Ignored unless useSignificantDigits == true.

 
Since:
ICU 3.0

useExponentialNotation

boolean useExponentialNotation
True to force the use of exponential (i.e. scientific) notation when formatting numbers.

Note that the JDK 1.2 public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.

 

minExponentDigits

byte minExponentDigits
The minimum number of digits used to display the exponent when a number is formatted in exponential notation. This field is ignored if useExponentialNotation is not true.

Note that the JDK 1.2 public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.

 

exponentSignAlwaysShown

boolean exponentSignAlwaysShown
If true, the exponent is always prefixed with either the plus sign or the minus sign. Otherwise, only negative exponents are prefixed with the minus sign. This has no effect unless useExponentialNotation is true.

 
Since:
AlphaWorks NumberFormat

roundingIncrement

BigDecimal roundingIncrement
The value to which numbers are rounded during formatting. For example, if the rounding increment is 0.05, then 13.371 would be formatted as 13.350, assuming 3 fraction digits. Has the value null if rounding is not in effect, or a positive value if rounding is in effect. Default value null.

 
Since:
AlphaWorks NumberFormat

roundingMode

int roundingMode
The rounding mode. This value controls any rounding operations which occur when applying a rounding increment or when reducing the number of fraction digits to satisfy a maximum fraction digits limit. The value may assume any of the BigDecimal rounding mode values. Default value BigDecimal.ROUND_HALF_EVEN.

 
Since:
AlphaWorks NumberFormat

mathContext

MathContext mathContext
Operations on BigDecimal numbers are controlled by a MathContext object, which provides the context (precision and other information) for the operation. The default MathContext settings are digits=0, form=PLAIN, lostDigits=false, roundingMode=ROUND_HALF_UP; these settings perform fixed point arithmetic with unlimited precision, as defined for the original BigDecimal class in Java 1.1 and Java 1.2


formatWidth

int formatWidth
The padded format width, or zero if there is no padding. Must be >= 0. Default value zero.

 
Since:
AlphaWorks NumberFormat

pad

char pad
The character used to pad the result of format to formatWidth, if padding is in effect. Default value ' '.

 
Since:
AlphaWorks NumberFormat

padPosition

int padPosition
The position in the string at which the pad character will be inserted, if padding is in effect. Must have a value from PAD_BEFORE_PREFIX to PAD_AFTER_SUFFIX. Default value PAD_BEFORE_PREFIX.

 
Since:
AlphaWorks NumberFormat

parseBigDecimal

boolean parseBigDecimal
True if DecimalFormat.parse(String, ParsePosition) to return BigDecimal rather than Long, Double or BigDecimal except special values. This property is introduced for J2SE 5 compatibility support.

 
Since:
ICU 3.6
See Also:
DecimalFormat.setParseBigDecimal(boolean), DecimalFormat.isParseBigDecimal()

serialVersionOnStream

int serialVersionOnStream
The internal serial version which says which version was written Possible values are:

 

attributes

ArrayList<E> attributes

formatPattern

String formatPattern

style

int style

currencySignCount

int currencySignCount
Represents whether this is a currency format, and which currency format style. 0: not currency format type; 1: currency style -- symbol name, such as "$" for US dollar. 2: currency style -- ISO name, such as USD for US dollar. 3: currency style -- plural long name, such as "US Dollar" for "1.00 US Dollar", or "US Dollars" for "3.00 US Dollars".


currencyPluralInfo

CurrencyPluralInfo currencyPluralInfo

Class com.ibm.icu.text.DecimalFormatSymbols extends Object implements Serializable

serialVersionUID: 5772796243397350300L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Reads the default serializable fields, then if serialVersionOnStream is less than 1, initialize monetarySeparator to be the same as decimalSeparator and exponential to be 'E'. Finally, sets serialVersionOnStream back to the maximum allowed value so that default serialization will work properly if this object is streamed out again.

Throws:
IOException
ClassNotFoundException
Serialized Fields

currencySpcBeforeSym

String[] currencySpcBeforeSym

currencySpcAfterSym

String[] currencySpcAfterSym

zeroDigit

char zeroDigit
Character used for zero. This remains only for backward compatibility purposes. The digits array below is now used to actively store the digits.

 
See Also:
DecimalFormatSymbols.getZeroDigit()

digits

char[] digits
Array of characters used for the digits 0-9 in order.


groupingSeparator

char groupingSeparator
Character used for thousands separator.

 
See Also:
DecimalFormatSymbols.getGroupingSeparator()

decimalSeparator

char decimalSeparator
Character used for decimal sign.

 
See Also:
DecimalFormatSymbols.getDecimalSeparator()

perMill

char perMill
Character used for mille percent sign.

 
See Also:
DecimalFormatSymbols.getPerMill()

percent

char percent
Character used for percent sign.

 
See Also:
DecimalFormatSymbols.getPercent()

digit

char digit
Character used for a digit in a pattern.

 
See Also:
DecimalFormatSymbols.getDigit()

sigDigit

char sigDigit
Character used for a significant digit in a pattern.

 
See Also:
DecimalFormatSymbols.getSignificantDigit()

patternSeparator

char patternSeparator
Character used to separate positive and negative subpatterns in a pattern.

 
See Also:
DecimalFormatSymbols.getPatternSeparator()

infinity

String infinity
Character used to represent infinity.

 
See Also:
DecimalFormatSymbols.getInfinity()

NaN

String NaN
Character used to represent NaN.

 
See Also:
DecimalFormatSymbols.getNaN()

minusSign

char minusSign
Character used to represent minus sign.

 
See Also:
DecimalFormatSymbols.getMinusSign()

currencySymbol

String currencySymbol
String denoting the local currency, e.g. "$".

 
See Also:
DecimalFormatSymbols.getCurrencySymbol()

intlCurrencySymbol

String intlCurrencySymbol
International string denoting the local currency, e.g. "USD".

 
See Also:
DecimalFormatSymbols.getInternationalCurrencySymbol()

monetarySeparator

char monetarySeparator
The decimal separator used when formatting currency values.

 
See Also:
DecimalFormatSymbols.getMonetaryDecimalSeparator()

monetaryGroupingSeparator

char monetaryGroupingSeparator
The decimal separator used when formatting currency values.

 
See Also:
DecimalFormatSymbols.getMonetaryGroupingSeparator()

exponential

char exponential
The character used to distinguish the exponent in a number formatted in exponential notation, e.g. 'E' for a number such as "1.23E45".

Note that this field has been superseded by exponentSeparator. It is retained for backward compatibility.

 

exponentSeparator

String exponentSeparator
The string used to separate the mantissa from the exponent. Examples: "x10^" for 1.23x10^4, "E" for 1.23E4.

Note that this supersedes the exponential field.

 
Since:
AlphaWorks

padEscape

char padEscape
The character used to indicate a padding character in a format, e.g., '*' in a pattern such as "$*_#,##0.00".

 
Since:
AlphaWorks

plusSign

char plusSign
The character used to indicate a plus sign.

 
Since:
AlphaWorks

requestedLocale

Locale requestedLocale
The locale for which this object was constructed. Set to the default locale for objects resurrected from old streams.

Since:
ICU 2.2

ulocale

ULocale ulocale
The requested ULocale. We keep the old locale for serialization compatibility.

Since:
IDU 3.2

serialVersionOnStream

int serialVersionOnStream
Describes the version of DecimalFormatSymbols present on the stream. Possible values are: When streaming out a DecimalFormatSymbols, the most recent format (corresponding to the highest allowable serialVersionOnStream) is always written.

 

currencyPattern

String currencyPattern

validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale

Class com.ibm.icu.text.DurationFormat extends UFormat implements Serializable

serialVersionUID: -2076961954727774282L

Class com.ibm.icu.text.MeasureFormat extends UFormat implements Serializable

serialVersionUID: -7182021401701778240L

Class com.ibm.icu.text.MessageFormat extends UFormat implements Serializable

serialVersionUID: 7136212545847378652L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Custom deserialization, new in ICU 4.8. See comments on writeObject().

Throws:
InvalidObjectException - if the objects read from the stream is invalid.
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Custom serialization, new in ICU 4.8. We do not want to use default serialization because we only have a small amount of persistent state which is better expressed explicitly rather than via writing field objects.

Serial Data:
Writes the locale as a BCP 47 language tag string, the MessagePattern.ApostropheMode as an object, and the pattern string (null if none was applied). Followed by an int with the number of (int formatIndex, Object formatter) pairs, and that many such pairs, corresponding to previous setFormat() calls for custom formats. Followed by an int with the number of (int, Object) pairs, and that many such pairs, for future (post-ICU 4.8) extension of the serialization format.
Throws:
IOException

Class com.ibm.icu.text.MessageFormat.Field extends Format.Field implements Serializable

serialVersionUID: 7510380454602616157L

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Resolves instances being deserialized to the predefined constants.

Throws:
InvalidObjectException - if the constant could not be resolved.

Class com.ibm.icu.text.NumberFormat extends UFormat implements Serializable

serialVersionUID: -2308460125733713944L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
First, read in the default serializable data. Then, if serialVersionOnStream is less than 1, indicating that the stream was written by JDK 1.1, set the int fields such as maximumIntegerDigits to be equal to the byte fields such as maxIntegerDigits, since the int fields were not present in JDK 1.1. Finally, set serialVersionOnStream back to the maximum allowed value so that default serialization will work properly if this object is streamed out again.

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Write out the default serializable data, after first setting the byte fields such as maxIntegerDigits to be equal to the int fields such as maximumIntegerDigits (or to Byte.MAX_VALUE, whichever is smaller), for compatibility with the JDK 1.1 version of the stream format.

Throws:
IOException
Serialized Fields

groupingUsed

boolean groupingUsed
True if the the grouping (i.e. thousands) separator is used when formatting and parsing numbers.

 
See Also:
NumberFormat.isGroupingUsed()

maxIntegerDigits

byte maxIntegerDigits
The maximum number of digits allowed in the integer portion of a number. maxIntegerDigits must be greater than or equal to minIntegerDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field maximumIntegerDigits is used instead. When writing to a stream, maxIntegerDigits is set to maximumIntegerDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMaximumIntegerDigits()

minIntegerDigits

byte minIntegerDigits
The minimum number of digits allowed in the integer portion of a number. minimumIntegerDigits must be less than or equal to maximumIntegerDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field minimumIntegerDigits is used instead. When writing to a stream, minIntegerDigits is set to minimumIntegerDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMinimumIntegerDigits()

maxFractionDigits

byte maxFractionDigits
The maximum number of digits allowed in the fractional portion of a number. maximumFractionDigits must be greater than or equal to minimumFractionDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field maximumFractionDigits is used instead. When writing to a stream, maxFractionDigits is set to maximumFractionDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMaximumFractionDigits()

minFractionDigits

byte minFractionDigits
The minimum number of digits allowed in the fractional portion of a number. minimumFractionDigits must be less than or equal to maximumFractionDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field minimumFractionDigits is used instead. When writing to a stream, minFractionDigits is set to minimumFractionDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMinimumFractionDigits()

parseIntegerOnly

boolean parseIntegerOnly
True if this format will parse numbers as integers only.

 
See Also:
NumberFormat.isParseIntegerOnly()

maximumIntegerDigits

int maximumIntegerDigits
The maximum number of digits allowed in the integer portion of a number. maximumIntegerDigits must be greater than or equal to minimumIntegerDigits.

 
See Also:
NumberFormat.getMaximumIntegerDigits()

minimumIntegerDigits

int minimumIntegerDigits
The minimum number of digits allowed in the integer portion of a number. minimumIntegerDigits must be less than or equal to maximumIntegerDigits.

 
See Also:
NumberFormat.getMinimumIntegerDigits()

maximumFractionDigits

int maximumFractionDigits
The maximum number of digits allowed in the fractional portion of a number. maximumFractionDigits must be greater than or equal to minimumFractionDigits.

 
See Also:
NumberFormat.getMaximumFractionDigits()

minimumFractionDigits

int minimumFractionDigits
The minimum number of digits allowed in the fractional portion of a number. minimumFractionDigits must be less than or equal to maximumFractionDigits.

 
See Also:
NumberFormat.getMinimumFractionDigits()

currency

Currency currency
Currency object used to format currencies. Subclasses may ignore this if they are not currency formats. This will be null unless a subclass sets it to a non-null value.

Since:
ICU 2.6

serialVersionOnStream

int serialVersionOnStream
Describes the version of NumberFormat present on the stream. Possible values are: When streaming out a NumberFormat, the most recent format (corresponding to the highest allowable serialVersionOnStream) is always written.

 

parseStrict

boolean parseStrict

Class com.ibm.icu.text.NumberFormat.Field extends Format.Field implements Serializable

serialVersionUID: -4516273749929385842L

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
serizalization method resolve instances to the constant NumberFormat.Field values

Throws:
InvalidObjectException

Class com.ibm.icu.text.PluralFormat extends UFormat implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException
Serialized Fields

ulocale

ULocale ulocale
The locale used for standard number formatting and getting the predefined plural rules (if they were not defined explicitely).

 

pluralRules

PluralRules pluralRules
The plural rules used for plural selection.

 

pattern

String pattern
The applied pattern string.

 

parsedValues

Map<K,V> parsedValues
Obsolete with use of MessagePattern since ICU 4.8. Used to be: The format messages for each plural case. It is a mapping: String(plural case keyword) --> String (message for this plural case).

 

numberFormat

NumberFormat numberFormat
This NumberFormat is used for the standard formatting of the number inserted into the message.

 

Class com.ibm.icu.text.PluralRules extends Object implements Serializable

serialVersionUID: 1L

Serialized Fields

rules

com.ibm.icu.text.PluralRules.RuleList rules

keywords

Set<E> keywords

repeatLimit

int repeatLimit

Class com.ibm.icu.text.RuleBasedNumberFormat extends NumberFormat implements Serializable

serialVersionUID: -7664252765575395068L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException
Reads this object in from a stream.

Throws:
IOException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Writes this object to a stream.

Throws:
IOException
Serialized Fields

locale

ULocale locale
The formatter's locale. This is used to create DecimalFormatSymbols and Collator objects.

 

lenientParse

boolean lenientParse
Flag specifying whether lenient parse mode is on or off. Off by default.

 

ruleSetDisplayNames

Map<K,V> ruleSetDisplayNames
Localizations for rule set names.

 

publicRuleSetNames

String[] publicRuleSetNames
The public rule set names;

 

Class com.ibm.icu.text.SelectFormat extends Format implements Serializable

serialVersionUID: 2993154333257524984L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException
Serialized Fields

pattern

String pattern

Class com.ibm.icu.text.SimpleDateFormat extends DateFormat implements Serializable

serialVersionUID: 4774881970558875024L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Override readObject.

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Override writeObject.

Throws:
IOException
Serialized Fields

serialVersionOnStream

int serialVersionOnStream
The version of the serialized data on the stream. Possible values: When streaming out this class, the most recent format and the highest allowable serialVersionOnStream is written.

 

pattern

String pattern
The pattern string of this formatter. This is always a non-localized pattern. May not be null. See class documentation for details.

 

override

String override
The override string of this formatter. Used to override the numbering system for one or more fields.

 

numberFormatters

HashMap<K,V> numberFormatters
The hash map used for number format overrides.

 

overrideMap

HashMap<K,V> overrideMap
The hash map used for number format overrides.

 

formatData

DateFormatSymbols formatData
The symbols used by this formatter for week names, month names, etc. May not be null.

 
See Also:
DateFormatSymbols

defaultCenturyStart

Date defaultCenturyStart
We map dates with two-digit years into the century starting at defaultCenturyStart, which may be any date. May not be null.

 
Since:
JDK1.1.4

tzFormat

TimeZoneFormat tzFormat

defaultCapitalizationContext

SimpleDateFormat.ContextValue defaultCapitalizationContext

Class com.ibm.icu.text.StringPrepParseException extends ParseException implements Serializable

serialVersionUID: 7160264827701651255L

Serialized Fields

error

int error

line

int line
The line on which the error occurred. If the parse engine is not using this field, it should set it to zero. Otherwise it should be a positive integer. The default value of this field is -1. It will be set to 0 if the code populating this struct is not using line numbers.


preContext

StringBuffer preContext
Textual context before the error. Null-terminated. May be the empty string if not implemented by parser.


postContext

StringBuffer postContext
Textual context after the error. Null-terminated. May be the empty string if not implemented by parser.

Class com.ibm.icu.text.TimeUnitFormat extends MeasureFormat implements Serializable

serialVersionUID: -3707773153184971529L

Serialized Fields

format

NumberFormat format

locale

ULocale locale

style

int style

Class com.ibm.icu.text.TimeZoneFormat extends UFormat implements Serializable

serialVersionUID: 2281246852693575022L

Serialization Methods

readObject

private void readObject(ObjectInputStream ois)
                 throws ClassNotFoundException,
                        IOException
Throws:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
Throws:
IOException
Serialized Fields

_gmtOffsetDigits

String[] _gmtOffsetDigits
The array of decimal digits used by localized GMT format (the size of array is 10).

_gmtOffsetPatterns

Stirng[] _gmtOffsetPatterns
The array of GMT offset patterns used by localized GMT format (positive hour-min, positive hour-min-sec, negative hour-min, negative hour-min-sec).

_gmtPattern

String _gmtPattern
The pattern string for localized GMT format.

_gmtZeroFormat

String _gmtZeroFormat
The localized GMT string used for GMT(UTC).

_locale

ULocale _locale
The locale of this TimeZoneFormat object.

_parseAllStyles

boolean _parseAllStyles
true if this TimeZoneFormat object is configure for parsing all available names.

_tznames

TimeZoneNames _tznames
The time zone name data.

Class com.ibm.icu.text.TimeZoneNames extends Object implements Serializable

serialVersionUID: -9180227029248969153L

Class com.ibm.icu.text.UFormat extends Format implements Serializable

serialVersionUID: -4964390515840164416L

Serialized Fields

validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale

Package com.ibm.icu.util

Class com.ibm.icu.util.AnnualTimeZoneRule extends TimeZoneRule implements Serializable

serialVersionUID: -8870666707791230688L

Serialized Fields

dateTimeRule

DateTimeRule dateTimeRule

startYear

int startYear

endYear

int endYear

Class com.ibm.icu.util.BasicTimeZone extends TimeZone implements Serializable

serialVersionUID: -3204278532246180932L

Class com.ibm.icu.util.BuddhistCalendar extends GregorianCalendar implements Serializable

serialVersionUID: 2583005278132380631L

Class com.ibm.icu.util.Calendar extends Object implements Serializable

serialVersionUID: 6222646104888790989L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Reconstitute this object from a stream (i.e., deserialize it).

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Save the state of this object to a stream (i.e., serialize it).

Throws:
IOException
Serialized Fields

time

long time
The currently set time for this calendar, expressed in milliseconds after January 1, 1970, 0:00:00 GMT.

 

lenient

boolean lenient
True if this calendar allows out-of-range field values during computation of time from fields[].

 
See Also:
Calendar.setLenient(boolean)

zone

TimeZone zone
The TimeZone used by this calendar. Calendar uses the time zone data to translate between local and GMT time.

 

firstDayOfWeek

int firstDayOfWeek
The first day of the week, with possible values Calendar.SUNDAY, Calendar.MONDAY, etc. This is a locale-dependent value.

 

minimalDaysInFirstWeek

int minimalDaysInFirstWeek
The number of days required for the first week in a month or year, with possible values from 1 to 7. This is a locale-dependent value.

 

weekendOnset

int weekendOnset
First day of the weekend in this calendar's locale. Must be in the range SUNDAY...SATURDAY (1..7). The weekend starts at weekendOnsetMillis milliseconds after midnight on that day of the week. This value is taken from locale resource data.


weekendOnsetMillis

int weekendOnsetMillis
Milliseconds after midnight at which the weekend starts on the day of the week weekendOnset. Times that are greater than or equal to weekendOnsetMillis are considered part of the weekend. Must be in the range 0..24*60*60*1000-1. This value is taken from locale resource data.


weekendCease

int weekendCease
Day of the week when the weekend stops in this calendar's locale. Must be in the range SUNDAY...SATURDAY (1..7). The weekend stops at weekendCeaseMillis milliseconds after midnight on that day of the week. This value is taken from locale resource data.


weekendCeaseMillis

int weekendCeaseMillis
Milliseconds after midnight at which the weekend stops on the day of the week weekendCease. Times that are greater than or equal to weekendCeaseMillis are considered not to be the weekend. Must be in the range 0..24*60*60*1000-1. This value is taken from locale resource data.


repeatedWallTime

int repeatedWallTime
Option used when the specified wall time occurs multiple times.


skippedWallTime

int skippedWallTime
Option used when the specified wall time does not exist.


validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale

Class com.ibm.icu.util.ChineseCalendar extends Calendar implements Serializable

serialVersionUID: 7312110751940929420L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Override readObject.

Throws:
IOException
ClassNotFoundException

Class com.ibm.icu.util.CopticCalendar extends com.ibm.icu.util.CECalendar implements Serializable

serialVersionUID: 5903818751846742911L

Class com.ibm.icu.util.Currency extends MeasureUnit implements Serializable

serialVersionUID: -5839973855554750484L

Serialized Fields

isoCode

String isoCode
ISO 4217 3-letter code.

Class com.ibm.icu.util.DateInterval extends Object implements Serializable

serialVersionUID: 1L

Serialized Fields

fromDate

long fromDate

toDate

long toDate

Class com.ibm.icu.util.DateTimeRule extends Object implements Serializable

serialVersionUID: 2183055795738051443L

Serialized Fields

dateRuleType

int dateRuleType

month

int month

dayOfMonth

int dayOfMonth

dayOfWeek

int dayOfWeek

weekInMonth

int weekInMonth

timeRuleType

int timeRuleType

millisInDay

int millisInDay

Class com.ibm.icu.util.EthiopicCalendar extends com.ibm.icu.util.CECalendar implements Serializable

serialVersionUID: -2438495771339315608L

Serialized Fields

eraType

int eraType

Class com.ibm.icu.util.GregorianCalendar extends Calendar implements Serializable

serialVersionUID: 9199388694351062137L

Serialized Fields

gregorianCutover

long gregorianCutover
The point at which the Gregorian calendar rules are used, measured in milliseconds from the standard epoch. Default is October 15, 1582 (Gregorian) 00:00:00 UTC or -12219292800000L. For this value, October 4, 1582 (Julian) is followed by October 15, 1582 (Gregorian). This corresponds to Julian day number 2299161.

 

Class com.ibm.icu.util.HebrewCalendar extends Calendar implements Serializable

serialVersionUID: -1952524560588825816L

Class com.ibm.icu.util.IllformedLocaleException extends RuntimeException implements Serializable

serialVersionUID: 1L

Serialized Fields

_errIdx

int _errIdx

Class com.ibm.icu.util.IndianCalendar extends Calendar implements Serializable

serialVersionUID: 3617859668165014834L

Class com.ibm.icu.util.InitialTimeZoneRule extends TimeZoneRule implements Serializable

serialVersionUID: 1876594993064051206L

Class com.ibm.icu.util.IslamicCalendar extends Calendar implements Serializable

serialVersionUID: -6253365474073869325L

Serialized Fields

civil

boolean civil
true if this object uses the fixed-cycle Islamic civil calendar, and false if it approximates the true religious calendar using astronomical calculations for the time of the new moon.

 

Class com.ibm.icu.util.JapaneseCalendar extends GregorianCalendar implements Serializable

serialVersionUID: -2977189902603704691L

Class com.ibm.icu.util.RuleBasedTimeZone extends BasicTimeZone implements Serializable

serialVersionUID: 7580833058949327935L

Serialized Fields

initialRule

InitialTimeZoneRule initialRule

historicRules

List<E> historicRules

finalRules

AnnualTimeZoneRule[] finalRules

Class com.ibm.icu.util.SimpleTimeZone extends BasicTimeZone implements Serializable

serialVersionUID: -7034676239311322769L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Returns the java.util.SimpleTimeZone that this class wraps. java.util.SimpleTimeZone unwrapSTZ() { return (java.util.SimpleTimeZone) unwrap(); }

Throws:
IOException
ClassNotFoundException
Serialized Fields

raw

int raw

dst

int dst

xinfo

com.ibm.icu.util.STZInfo xinfo

startMonth

int startMonth

startDay

int startDay

startDayOfWeek

int startDayOfWeek

startTime

int startTime

startTimeMode

int startTimeMode

endTimeMode

int endTimeMode

endMonth

int endMonth

endDay

int endDay

endDayOfWeek

int endDayOfWeek

endTime

int endTime

startYear

int startYear

useDaylight

boolean useDaylight

startMode

int startMode

endMode

int endMode

Class com.ibm.icu.util.TaiwanCalendar extends GregorianCalendar implements Serializable

serialVersionUID: 2583005278132380631L

Class com.ibm.icu.util.TimeArrayTimeZoneRule extends TimeZoneRule implements Serializable

serialVersionUID: -1117109130077415245L

Serialized Fields

startTimes

long[] startTimes

timeType

int timeType

Class com.ibm.icu.util.TimeZone extends Object implements Serializable

serialVersionUID: -744942128318337471L

Serialized Fields

ID

String ID
The string identifier of this TimeZone. This is a programmatic identifier used internally to look up TimeZone objects from the system table and also to map them to their localized display names. ID values are unique in the system table but may not be for dynamically created zones.

 

Class com.ibm.icu.util.TimeZoneRule extends Object implements Serializable

serialVersionUID: 6374143828553768100L

Serialized Fields

name

String name

rawOffset

int rawOffset

dstSavings

int dstSavings

Class com.ibm.icu.util.ULocale extends Object implements Serializable

serialVersionUID: 3715177670352309217L

Serialized Fields

localeID

String localeID
The raw localeID that we were passed in.

Class com.ibm.icu.util.UResourceTypeMismatchException extends RuntimeException implements Serializable

serialVersionUID: 1286569061095434541L

Class com.ibm.icu.util.VTimeZone extends BasicTimeZone implements Serializable

serialVersionUID: -6851467294127795902L

Serialized Fields

tz

BasicTimeZone tz

vtzlines

List<E> vtzlines

olsonzid

String olsonzid

tzurl

String tzurl

lastmod

Date lastmod



Copyright (c) 2012 IBM Corporation and others.