Top Description Inners Fields Constructors Methods
com.ibm.icu.impl.number

public Class LongNameMultiplexer

extends Object
implements MicroPropsGenerator
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.number.MicroPropsGenerator
Imports
java.util.ArrayList, .List, com.ibm.icu.number.NumberFormatter, com.ibm.icu.text.PluralRules, com.ibm.icu.util.MeasureUnit, .ULocale

A MicroPropsGenerator that multiplexes between different LongNameHandlers, depending on the outputUnit. See processQuantity() for the input requirements.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
LongNameMultiplexer.ParentlessMicroPropsGenerator

LongNameMultiplexer calls the parent MicroPropsGenerator itself, receiving the MicroProps instance in use for this formatting pipeline.

Field Summary

Modifier and TypeField and Description
private List<LongNameMultiplexer.ParentlessMicroPropsGenerator>
private List<MeasureUnit>
private final MicroPropsGenerator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static LongNameMultiplexer
public MicroProps
processQuantity(DecimalQuantity
The quantity for consideration and optional mutation.
quantity
)

Implements com.ibm.icu.impl.number.MicroPropsGenerator.processQuantity.

Deprecated as a consequence of DecimalQuantity being deprecated.
Considers the given DecimalQuantity, optionally mutates it, and returns a MicroProps.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fHandlersback to summary
private List<LongNameMultiplexer.ParentlessMicroPropsGenerator> fHandlers
fMeasureUnitsback to summary
private List<MeasureUnit> fMeasureUnits
fParentback to summary
private final MicroPropsGenerator fParent

Constructor Detail

LongNameMultiplexerback to summary
public LongNameMultiplexer(MicroPropsGenerator fParent)

Method Detail

forMeasureUnitsback to summary
public static LongNameMultiplexer forMeasureUnits(ULocale locale, List<MeasureUnit> units, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent)
processQuantityback to summary
public MicroProps processQuantity(DecimalQuantity quantity)

Implements com.ibm.icu.impl.number.MicroPropsGenerator.processQuantity.

Doc from com.ibm.icu.impl.number.MicroPropsGenerator.processQuantity.

Deprecated

as a consequence of DecimalQuantity being deprecated. See corresponding docs for further information.

Considers the given DecimalQuantity, optionally mutates it, and returns a MicroProps.

Parameters
quantity:DecimalQuantity

The quantity for consideration and optional mutation.

Returns:MicroProps

A MicroProps instance resolved for the quantity.

Annotations
@Override
com.ibm.icu.impl.number back to summary

public Interface LongNameMultiplexer.ParentlessMicroPropsGenerator

Known Direct Implementers
com.ibm.icu.impl.number.MixedUnitLongNameHandler, com.ibm.icu.impl.number.LongNameHandler

LongNameMultiplexer calls the parent MicroPropsGenerator itself, receiving the MicroProps instance in use for this formatting pipeline. Next it multiplexes between name handlers (fHandlers) which are not given access to a parent. Consequently LongNameMultiplexer must give these handlers the MicroProps instance.

Method Summary

Modifier and TypeMethod and Description
public MicroProps
processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros)

Deprecated as a consequence of DecimalQuantity being deprecated.

Method Detail

processQuantityWithMicrosback to summary
public MicroProps processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros)

Deprecated

as a consequence of DecimalQuantity being deprecated. See corresponding docs for further information.