lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

CompactDecimalFormat.CompactStyle

public static final enum CompactDecimalFormat.CompactStyle
extends Enum<CompactDecimalFormat.CompactStyle>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.CompactDecimalFormat.CompactStyle>
     ↳ android.icu.text.CompactDecimalFormat.CompactStyle


Style parameter for CompactDecimalFormat.

Summary

Enum values

CompactDecimalFormat.CompactStyle  LONG

Longer version, like "1.2 trillion", if available. 

CompactDecimalFormat.CompactStyle  SHORT

Short version, like "1.2T"  

Public methods

static CompactDecimalFormat.CompactStyle valueOf(String name)
static final CompactStyle[] values()

Inherited methods

Enum values

LONG

added in API level 24
public static final CompactDecimalFormat.CompactStyle LONG

Longer version, like "1.2 trillion", if available. May return same result as SHORT if not.

SHORT

added in API level 24
public static final CompactDecimalFormat.CompactStyle SHORT

Short version, like "1.2T"

Public methods

valueOf

added in API level 24
public static CompactDecimalFormat.CompactStyle valueOf (String name)

Parameters
name String

Returns
CompactDecimalFormat.CompactStyle

values

added in API level 24
public static final CompactStyle[] values ()

Returns
CompactStyle[]