public enum TimeInterval extends Enum<TimeInterval>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
SECOND |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
getAxis(TimeInterval x) |
static TimeInterval |
getSmaller(TimeInterval x,
TimeInterval y) |
int |
mapTime(ZonedDateTime time) |
static TimeInterval |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeInterval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeInterval SECOND
public static final TimeInterval MINUTE
public static final TimeInterval HOUR
public static final TimeInterval DAY
public static final TimeInterval MONTH
public static final TimeInterval YEAR
public static TimeInterval[] values()
for (TimeInterval c : TimeInterval.values()) System.out.println(c);
public static TimeInterval valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String[] getAxis(TimeInterval x)
public static TimeInterval getSmaller(TimeInterval x, TimeInterval y)
public int mapTime(ZonedDateTime time)
Copyright © 2017 Committed. All rights reserved.