Class MicroProps
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.number.MicroProps
- All Implemented Interfaces:
Cloneable,MicroPropsGenerator
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 TypeFieldDescriptionintPoints 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 outputmicrosis correctly initialized.
-
Field Details
-
sign
-
symbols
-
nsName
-
padding
-
decimal
-
integerWidth
-
modOuter
-
modMiddle
-
modInner
-
rounder
-
grouping
-
useCurrency
public boolean useCurrency -
gender
-
currencyAsDecimal
-
outputUnit
-
mixedMeasures
-
indexOfQuantity
public int indexOfQuantityPoints to quantity position, -1 if the position is not set yet.
-
-
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 outputmicrosis 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:
processQuantityin interfaceMicroPropsGenerator- Parameters:
quantity- The quantity for consideration and optional mutation.- Returns:
- an initialized MicroProps instance.
-
clone
-