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

public Class MicroProps

extends Object
implements Cloneable, MicroPropsGenerator
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.number.MicroPropsGenerator, java.lang.Cloneable
Imports
java.util.List, com.ibm.icu.number.IntegerWidth, .NumberFormatter.DecimalSeparatorDisplay, .NumberFormatter.SignDisplay, .Precision, com.ibm.icu.text.DecimalFormatSymbols, com.ibm.icu.util.Measure, .MeasureUnit

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

Modifier and TypeField and Description
public String
public NumberFormatter.DecimalSeparatorDisplay
private volatile boolean
public String
public Grouper
private final boolean
public int
indexOfQuantity

Points to quantity position, -1 if the position is not set yet.

public IntegerWidth
public List<Measure>
mixedMeasures

Contains all the measures.

public Modifier
public Modifier
public Modifier
public String
public MeasureUnit
public Padder
public Precision
public NumberFormatter.SignDisplay
public DecimalFormatSymbols
public boolean

Constructor Summary

AccessConstructor and Description
public
MicroProps(boolean
Whether this MicroProps should behave as an immutable after construction with respect to the quantity chain.
immutable
)

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.
public MicroProps

Returns:

an initialized MicroProps instance.
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.
As MicroProps is the "base instance", this implementation of MircoPropsGenerator.processQuantity() just ensures that the output micros is correctly initialized.
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currencyAsDecimalback to summary
public String currencyAsDecimal
decimalback to summary
public NumberFormatter.DecimalSeparatorDisplay decimal
exhaustedback to summary
private volatile boolean exhausted
genderback to summary
public String gender
groupingback to summary
public Grouper grouping
immutableback to summary
private final boolean immutable
indexOfQuantityback to summary
public int indexOfQuantity

Points to quantity position, -1 if the position is not set yet.

integerWidthback to summary
public IntegerWidth integerWidth
mixedMeasuresback to summary
public List<Measure> mixedMeasures

Contains all the measures.

modInnerback to summary
public Modifier modInner
modMiddleback to summary
public Modifier modMiddle
modOuterback to summary
public Modifier modOuter
nsNameback to summary
public String nsName
outputUnitback to summary
public MeasureUnit outputUnit
paddingback to summary
public Padder padding
rounderback to summary
public Precision rounder
signback to summary
public NumberFormatter.SignDisplay sign
symbolsback to summary
public DecimalFormatSymbols symbols
useCurrencyback to summary
public boolean useCurrency

Constructor Detail

MicroPropsback to summary
public MicroProps(boolean immutable)
Parameters
immutable:boolean

Whether this MicroProps should behave as an immutable after construction with respect to the quantity chain.

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

Annotations
@Override
processQuantityback to summary
public MicroProps processQuantity(DecimalQuantity quantity)

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

Deprecated

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

As MicroProps is the "base instance", this implementation of MircoPropsGenerator.processQuantity() just ensures that the output micros 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.

Parameters
quantity:DecimalQuantity

The quantity for consideration and optional mutation.

Returns:MicroProps

an initialized MicroProps instance.

Annotations
@Override