Added in API level 24
RelativeDateTimeFormatter.Style
public
static
final
enum
RelativeDateTimeFormatter.Style
extends Enum<RelativeDateTimeFormatter.Style>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.text.RelativeDateTimeFormatter.Style> | |
↳ | android.icu.text.RelativeDateTimeFormatter.Style |
The formatting style
Summary
Enum values | |
---|---|
RelativeDateTimeFormatter.Style |
LONG
Everything spelled out. |
RelativeDateTimeFormatter.Style |
NARROW
Use single letters when possible. |
RelativeDateTimeFormatter.Style |
SHORT
Abbreviations used when possible. |
Public methods | |
---|---|
static
RelativeDateTimeFormatter.Style
|
valueOf(String name)
|
static
final
Style[]
|
values()
|
Inherited methods | |
---|---|
Enum values
LONG
Added in API level 24
public static final RelativeDateTimeFormatter.Style LONG
Everything spelled out.
NARROW
Added in API level 24
public static final RelativeDateTimeFormatter.Style NARROW
Use single letters when possible.
SHORT
Added in API level 24
public static final RelativeDateTimeFormatter.Style SHORT
Abbreviations used when possible.
Public methods
valueOf
public static RelativeDateTimeFormatter.Style valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
RelativeDateTimeFormatter.Style |
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-09-03 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-09-03 UTC."],[],[]]