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

public Class Grouper

extends Object
Class Inheritance
Imports
com.ibm.icu.impl.ICUData, .ICUResourceBundle, com.ibm.icu.impl.number.PatternStringParser.ParsedPatternInfo, com.ibm.icu.number.NumberFormatter.GroupingStrategy, com.ibm.icu.util.ULocale, .UResourceBundle

A full options object for grouping sizes.

Field Summary

Modifier and TypeField and Description
private static final Grouper
private static final Grouper
private static final Grouper
private static final Grouper
private static final Grouper
private static final Grouper
private static final Grouper
private static final Grouper
private final short
grouping1

The primary grouping size, with the following special values:

  • -1 = no grouping
  • -2 = needs locale data
  • -4 = fall back to Western grouping if not in locale
private final short
grouping2

The secondary grouping size, with the following special values:

  • -1 = no grouping
  • -2 = needs locale data
  • -4 = fall back to Western grouping if not in locale
private final short
minGrouping

The minimum grouping size, with the following special values:

  • -2 = needs locale data
  • -3 = no less than 2

Constructor Summary

AccessConstructor and Description
private
Grouper(short grouping1, short grouping2, short minGrouping)

Method Summary

Modifier and TypeMethod and Description
public static Grouper
forProperties(DecimalFormatProperties properties)

Resolve the values in Properties to a Grouper object.

public static Grouper
forStrategy(NumberFormatter.GroupingStrategy grouping)

Convert from the GroupingStrategy enum to a Grouper object.

public static Grouper
getInstance(short grouping1, short grouping2, short minGrouping)

private static short
public short
public short
public boolean
groupAtPosition(int position, DecimalQuantity value)

Deprecated as a consequence of DecimalQuantity being deprecated.
public Grouper
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GROUPER_AUTOback to summary
private static final Grouper GROUPER_AUTO
GROUPER_INDICback to summary
private static final Grouper GROUPER_INDIC
GROUPER_INDIC_MIN2back to summary
private static final Grouper GROUPER_INDIC_MIN2
GROUPER_MIN2back to summary
private static final Grouper GROUPER_MIN2
GROUPER_NEVERback to summary
private static final Grouper GROUPER_NEVER
GROUPER_ON_ALIGNEDback to summary
private static final Grouper GROUPER_ON_ALIGNED
GROUPER_WESTERNback to summary
private static final Grouper GROUPER_WESTERN
GROUPER_WESTERN_MIN2back to summary
private static final Grouper GROUPER_WESTERN_MIN2
grouping1back to summary
private final short grouping1

The primary grouping size, with the following special values:

  • -1 = no grouping
  • -2 = needs locale data
  • -4 = fall back to Western grouping if not in locale
grouping2back to summary
private final short grouping2

The secondary grouping size, with the following special values:

  • -1 = no grouping
  • -2 = needs locale data
  • -4 = fall back to Western grouping if not in locale
minGroupingback to summary
private final short minGrouping

The minimum grouping size, with the following special values:

  • -2 = needs locale data
  • -3 = no less than 2

Constructor Detail

Grouperback to summary
private Grouper(short grouping1, short grouping2, short minGrouping)

Method Detail

forPropertiesback to summary
public static Grouper forProperties(DecimalFormatProperties properties)

Resolve the values in Properties to a Grouper object.

forStrategyback to summary
public static Grouper forStrategy(NumberFormatter.GroupingStrategy grouping)

Convert from the GroupingStrategy enum to a Grouper object.

getInstanceback to summary
public static Grouper getInstance(short grouping1, short grouping2, short minGrouping)
getMinGroupingForLocaleback to summary
private static short getMinGroupingForLocale(ULocale locale)
getPrimaryback to summary
public short getPrimary()
getSecondaryback to summary
public short getSecondary()
groupAtPositionback to summary
public boolean groupAtPosition(int position, DecimalQuantity value)

Deprecated

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

withLocaleDataback to summary
public Grouper withLocaleData(ULocale locale, PatternStringParser.ParsedPatternInfo patternInfo)