Most visited

Recently visited

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


代表绝对单位的方向,例如“下周二”或“上周二”

Summary

Enum values

RelativeDateTimeFormatter.Direction  LAST

持续

RelativeDateTimeFormatter.Direction  LAST_2

两个之前。

RelativeDateTimeFormatter.Direction  NEXT

下一个

RelativeDateTimeFormatter.Direction  NEXT_2

两个之后。

RelativeDateTimeFormatter.Direction  PLAIN

平原,这意味着没有限定词

RelativeDateTimeFormatter.Direction  THIS

这个

Public methods

static RelativeDateTimeFormatter.Direction valueOf(String name)
static final Direction[] values()

Inherited methods

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

Enum values

LAST_2

Added in API level 24
RelativeDateTimeFormatter.Direction LAST_2

两个之前。 在每个语言环境中都不完全支持

NEXT

Added in API level 24
RelativeDateTimeFormatter.Direction NEXT

下一个

NEXT_2

Added in API level 24
RelativeDateTimeFormatter.Direction NEXT_2

两个之后。 在每个语言环境中都不完全支持

PLAIN

Added in API level 24
RelativeDateTimeFormatter.Direction PLAIN

平原,这意味着没有限定词

Public methods

valueOf

Added in API level 24
RelativeDateTimeFormatter.Direction valueOf (String name)

Parameters
name String
Returns
RelativeDateTimeFormatter.Direction

values

Added in API level 24
Direction[] values ()

Returns
Direction[]

Hooray!