Class RelativeDateTimeFormatter.RelDateTimeDataSink
java.lang.Object
com.ibm.icu.impl.UResource.Sink
com.ibm.icu.text.RelativeDateTimeFormatter.RelDateTimeDataSink
- Enclosing class:
RelativeDateTimeFormatter
Sink for enumerating all of the relative data time formatter names.
More specific bundles (en_GB) are enumerated before their parents (en_001, en, root):
Only store a value if it is still missing, that is, it has not been overridden.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) EnumMap<RelativeDateTimeFormatter.Style, EnumMap<RelativeDateTimeFormatter.AbsoluteUnit, EnumMap<RelativeDateTimeFormatter.Direction, String>>> (package private) StringBuilder(package private) RelativeDateTimeFormatter.Style(package private) EnumMap<RelativeDateTimeFormatter.Style, EnumMap<RelativeDateTimeFormatter.RelativeUnit, String[][]>> (package private) RelativeDateTimeFormatter.RelDateTimeDataSink.DateTimeUnit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeTableRelative(UResource.Key key, UResource.Value value) voidconsumeTableRelativeTime(UResource.Key key, UResource.Value value) voidconsumeTimeDetail(UResource.Key key, UResource.Value value) voidconsumeTimeUnit(UResource.Key key, UResource.Value value) private voidhandleAlias(UResource.Key key, UResource.Value value, boolean noFallback) private voidhandlePlainDirection(UResource.Key key, UResource.Value value) voidput(UResource.Key key, UResource.Value value, boolean noFallback) Called once for each bundle (child-parent-...-root).private RelativeDateTimeFormatter.StylestyleFromAlias(UResource.Value value) private RelativeDateTimeFormatter.Styleprivate static int
-
Field Details
-
qualitativeUnitMap
-
styleRelUnitPatterns
EnumMap<RelativeDateTimeFormatter.Style, EnumMap<RelativeDateTimeFormatter.RelativeUnit, String[][]>> styleRelUnitPatterns -
sb
-
pastFutureIndex
int pastFutureIndex -
style
-
unit
-
-
Constructor Details
-
RelDateTimeDataSink
RelDateTimeDataSink()
-
-
Method Details
-
styleFromKey
-
styleFromAlias
-
styleSuffixLength
-
consumeTableRelative
-
consumeTableRelativeTime
-
consumeTimeDetail
-
handlePlainDirection
-
consumeTimeUnit
-
handleAlias
-
put
Description copied from class:UResource.SinkCalled once for each bundle (child-parent-...-root). The value is normally an array or table resource, and implementations of this method normally iterate over the tree of resource items stored there.- Specified by:
putin classUResource.Sink- Parameters:
key- Initially the key string of the enumeration-start resource. Empty if the enumeration starts at the top level of the bundle. Reuse for output values from Array and Table getters.value- Call getArray() or getTable() as appropriate. Then reuse for output values from Array and Table getters.noFallback- true if the bundle has no parent; that is, its top-level table has the nofallback attribute, or it is the root bundle of a locale tree.
-