close
The Wayback Machine - https://web.archive.org/web/20161009120822/https://developer.android.com/reference/android/icu/text/CompactDecimalFormat.CompactStyle.html
Skip to content

Most visited

Recently visited

navigation

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

BERJAYAFrom class java.lang.Enum
BERJAYAFrom class java.lang.Object
BERJAYAFrom 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[]
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.