Most visited

Recently visited

Added in API level 24

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

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

LONG

Added in API level 24
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
CompactDecimalFormat.CompactStyle SHORT

Short version, like "1.2T"

Public methods

valueOf

Added in API level 24
CompactDecimalFormat.CompactStyle valueOf (String name)

Parameters
name String
Returns
CompactDecimalFormat.CompactStyle

values

Added in API level 24
CompactStyle[] values ()

Returns
CompactStyle[]

Hooray!