# Print output for @column tags ?> NumberRangeFormatter.RangeCollapse - Android SDK | Android Developers

Most visited

Recently visited

NumberRangeFormatter.RangeCollapse

public static final enum NumberRangeFormatter.RangeCollapse
extends Enum<NumberRangeFormatter.RangeCollapse>

java.lang.Object
   ↳ java.lang.Enum<android.icu.number.NumberRangeFormatter.RangeCollapse>
     ↳ android.icu.number.NumberRangeFormatter.RangeCollapse


Defines how to merge fields that are identical across the range sign.

See also:

Summary

Enum values

NumberRangeFormatter.RangeCollapse  ALL

Collapse any field that is equal across the range sign. 

NumberRangeFormatter.RangeCollapse  AUTO

Use locale data and heuristics to determine how much of the string to collapse. 

NumberRangeFormatter.RangeCollapse  NONE

Do not collapse any part of the number. 

NumberRangeFormatter.RangeCollapse  UNIT

Collapse the unit part of the number, but not the notation, if present. 

Public methods

static NumberRangeFormatter.RangeCollapse valueOf(String name)
static final RangeCollapse[] values()

Inherited methods

Enum values

ALL

public static final NumberRangeFormatter.RangeCollapse ALL

Collapse any field that is equal across the range sign. May introduce ambiguity on the magnitude of the number. Example: "3.2 – 5.3 thousand kilograms"

See also:

AUTO

public static final NumberRangeFormatter.RangeCollapse AUTO

Use locale data and heuristics to determine how much of the string to collapse. Could end up collapsing none, some, or all repeated pieces in a locale-sensitive way.

The heuristics used for this option are subject to change over time.

See also:

NONE

public static final NumberRangeFormatter.RangeCollapse NONE

Do not collapse any part of the number. Example: "3.2 thousand kilograms – 5.3 thousand kilograms"

See also:

UNIT

public static final NumberRangeFormatter.RangeCollapse UNIT

Collapse the unit part of the number, but not the notation, if present. Example: "3.2 thousand – 5.3 thousand kilograms"

See also:

Public methods

valueOf

public static NumberRangeFormatter.RangeCollapse valueOf (String name)

Parameters
name String

Returns
NumberRangeFormatter.RangeCollapse

values

public static final RangeCollapse[] values ()

Returns
RangeCollapse[]