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

public static CompactDecimalFormat.CompactStyle valueOf (String name)

Parameters
name String

Returns
CompactDecimalFormat.CompactStyle

values

public static final CompactStyle[] values ()

Returns
CompactStyle[]