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 | |
---|---|
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."],[],[]]