public class MicroProps extends Object implements Cloneable, MicroPropsGenerator
| Modifier and Type | Field and Description |
|---|---|
String |
currencyAsDecimal |
NumberFormatter.DecimalSeparatorDisplay |
decimal |
String |
gender |
Grouper |
grouping |
int |
indexOfQuantity
Points to quantity position, -1 if the position is not set yet.
|
IntegerWidth |
integerWidth |
List<Measure> |
mixedMeasures
Contains all the measures.
|
Modifier |
modInner |
Modifier |
modMiddle |
Modifier |
modOuter |
String |
nsName |
MeasureUnit |
outputUnit |
Padder |
padding |
Precision |
rounder |
NumberFormatter.SignDisplay |
sign |
DecimalFormatSymbols |
symbols |
boolean |
useCurrency |
| Constructor and Description |
|---|
MicroProps(boolean immutable) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
MicroProps |
processQuantity(DecimalQuantity quantity)
As MicroProps is the "base instance", this implementation of
MircoPropsGenerator.processQuantity() just ensures that the output
`micros` is correctly initialized.
|
public NumberFormatter.SignDisplay sign
public DecimalFormatSymbols symbols
public String nsName
public Padder padding
public NumberFormatter.DecimalSeparatorDisplay decimal
public IntegerWidth integerWidth
public Modifier modOuter
public Modifier modMiddle
public Modifier modInner
public Precision rounder
public Grouper grouping
public boolean useCurrency
public String gender
public String currencyAsDecimal
public MeasureUnit outputUnit
public int indexOfQuantity
public MicroProps(boolean immutable)
immutable - Whether this MicroProps should behave as an immutable after construction with respect
to the quantity chain.public MicroProps processQuantity(DecimalQuantity quantity)
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.
processQuantity in interface MicroPropsGeneratorquantity - The quantity for consideration and optional mutation.