Added in API level 24
RelativeDateTimeFormatter.Direction
public
static
final
enum
RelativeDateTimeFormatter.Direction
extends Enum<RelativeDateTimeFormatter.Direction>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.text.RelativeDateTimeFormatter.Direction> | |
↳ | android.icu.text.RelativeDateTimeFormatter.Direction |
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday"
Summary
Enum values | |
---|---|
RelativeDateTimeFormatter.Direction |
LAST
Last |
RelativeDateTimeFormatter.Direction |
LAST_2
Two before. |
RelativeDateTimeFormatter.Direction |
NEXT
Next |
RelativeDateTimeFormatter.Direction |
NEXT_2
Two after. |
RelativeDateTimeFormatter.Direction |
PLAIN
Plain, which means the absence of a qualifier |
RelativeDateTimeFormatter.Direction |
THIS
This |
Public methods | |
---|---|
static
RelativeDateTimeFormatter.Direction
|
valueOf(String name)
|
static
final
Direction[]
|
values()
|
Inherited methods | |
---|---|
Enum values
LAST_2
Added in API level 24
public static final RelativeDateTimeFormatter.Direction LAST_2
Two before. Not fully supported in every locale
NEXT_2
Added in API level 24
public static final RelativeDateTimeFormatter.Direction NEXT_2
Two after. Not fully supported in every locale
PLAIN
Added in API level 24
public static final RelativeDateTimeFormatter.Direction PLAIN
Plain, which means the absence of a qualifier
Public methods
valueOf
public static RelativeDateTimeFormatter.Direction valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
RelativeDateTimeFormatter.Direction |
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-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]