public static enum Timeline.TimelineStyle extends java.lang.Enum<Timeline.TimelineStyle>
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
toDateForStyle(long value)
Returns the opposite of toLongForStyle
|
long |
toLongForStyle(java.util.Date value)
Takes the date, and returns the appropriate value for it for the given style.
|
long |
toLongForStyle(long dateMillis)
Takes the date as time, and returns the appropriate value for it for the given style.
|
static Timeline.TimelineStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Timeline.TimelineStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Timeline.TimelineStyle Calandar
public static final Timeline.TimelineStyle TimeOfDay
public static Timeline.TimelineStyle[] values()
for (Timeline.TimelineStyle c : Timeline.TimelineStyle.values()) System.out.println(c);
public static Timeline.TimelineStyle valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic long toLongForStyle(java.util.Date value)
public long toLongForStyle(long dateMillis)
public java.util.Date toDateForStyle(long value)