lightbulb_outline Please take our October 2018 developer survey. Start survey

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

added in API level 24
public static final RelativeDateTimeFormatter.Direction LAST

Last

LAST_2

added in API level 24
public static final RelativeDateTimeFormatter.Direction LAST_2

Two before. Not fully supported in every locale

NEXT

added in API level 24
public static final RelativeDateTimeFormatter.Direction NEXT

Next

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

THIS

added in API level 24
public static final RelativeDateTimeFormatter.Direction THIS

This

Public methods

valueOf

added in API level 24
public static RelativeDateTimeFormatter.Direction valueOf (String name)

Parameters
name String

Returns
RelativeDateTimeFormatter.Direction

values

added in API level 24
public static final Direction[] values ()

Returns
Direction[]