Package com.ibm.icu.impl.number
Class MicroProps
java.lang.Object
com.ibm.icu.impl.number.MicroProps
- All Implemented Interfaces:
MicroPropsGenerator
,Cloneable
MicroProps is the first MicroPropsGenerator that should be should be called,
producing an initialized MicroProps instance that will be passed on and
modified throughout the rest of the chain of MicroPropsGenerator instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final boolean
int
Points to quantity position, -1 if the position is not set yet.Contains all the measures.boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
processQuantity
(DecimalQuantity quantity) As MicroProps is the "base instance", this implementation ofMircoPropsGenerator.processQuantity()
just ensures that the outputmicros
is correctly initialized.
-
Field Details
-
sign
-
symbols
-
nsName
-
padding
-
decimal
-
integerWidth
-
modOuter
-
modMiddle
-
modInner
-
rounder
-
grouping
-
useCurrency
public boolean useCurrency -
gender
-
currencyAsDecimal
-
immutable
private final boolean immutable -
outputUnit
-
mixedMeasures
Contains all the measures. -
indexOfQuantity
public int indexOfQuantityPoints to quantity position, -1 if the position is not set yet. -
exhausted
private volatile boolean exhausted
-
-
Constructor Details
-
MicroProps
public MicroProps(boolean immutable) - Parameters:
immutable
- Whether this MicroProps should behave as an immutable after construction with respect to the quantity chain.
-
-
Method Details
-
processQuantity
As MicroProps is the "base instance", this implementation ofMircoPropsGenerator.processQuantity()
just ensures that the outputmicros
is correctly initialized.For the "safe" invocation of this function, micros must not be *this, such that a copy of the base instance is made. For the "unsafe" path, this function can be used only once, because the base MicroProps instance will be modified and thus not be available for re-use.
- Specified by:
processQuantity
in interfaceMicroPropsGenerator
- Parameters:
quantity
- The quantity for consideration and optional mutation.- Returns:
- an initialized MicroProps instance.
-
clone
-