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

public Class AdoptingModifierStore

extends Object
implements ModifierStore
Class Inheritance
All Implemented Interfaces
com.ibm.icu.impl.number.ModifierStore
Imports
com.ibm.icu.impl.StandardPlural, com.ibm.icu.impl.number.Modifier.Signum

This implementation of ModifierStore adopts references to Modifiers. (This is named "adopting" because in C++, this class takes ownership of the Modifiers.)

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv final Modifier[]
private final Modifier
private final Modifier
private final Modifier
private final Modifier

Constructor Summary

AccessConstructor and Description
public
AdoptingModifierStore(Modifier positive, Modifier posZero, Modifier negZero, Modifier negative)

This constructor populates the ParameterizedModifier with a single positive and negative form.

public
AdoptingModifierStore()

This constructor prepares the ParameterizedModifier to be populated with a positive and negative Modifier for multiple plural forms.

Method Summary

Modifier and TypeMethod and Description
public void
public Modifier
getModifier(Modifier.Signum signum, StandardPlural plural)

Implements com.ibm.icu.impl.number.ModifierStore.getModifier.

Returns a Modifier with the given parameters (best-effort).
public Modifier
private static int
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

frozenback to summary
pack-priv boolean frozen
modsback to summary
pack-priv final Modifier[] mods
negativeback to summary
private final Modifier negative
negZeroback to summary
private final Modifier negZero
positiveback to summary
private final Modifier positive
posZeroback to summary
private final Modifier posZero

Constructor Detail

AdoptingModifierStoreback to summary
public AdoptingModifierStore(Modifier positive, Modifier posZero, Modifier negZero, Modifier negative)

This constructor populates the ParameterizedModifier with a single positive and negative form.

If this constructor is used, a plural form CANNOT be passed to getModifier.

AdoptingModifierStoreback to summary
public AdoptingModifierStore()

This constructor prepares the ParameterizedModifier to be populated with a positive and negative Modifier for multiple plural forms.

If this constructor is used, a plural form MUST be passed to getModifier.

Method Detail

freezeback to summary
public void freeze()
getModifierback to summary
public Modifier getModifier(Modifier.Signum signum, StandardPlural plural)

Implements com.ibm.icu.impl.number.ModifierStore.getModifier.

Doc from com.ibm.icu.impl.number.ModifierStore.getModifier.

Returns a Modifier with the given parameters (best-effort).

Annotations
@Override
getModifierWithoutPluralback to summary
public Modifier getModifierWithoutPlural(Modifier.Signum signum)
getModIndexback to summary
private static int getModIndex(Modifier.Signum signum, StandardPlural plural)
setModifierback to summary
public void setModifier(Modifier.Signum signum, StandardPlural plural, Modifier mod)