public enum DateResolution extends Enum<DateResolution>
| Modifier and Type | Method and Description |
|---|---|
static Iterable<DateResolution> |
getResolutionsHigherOrEqualTo(DateResolution r)
Returns the resolutions that are higher or equal to the given resolution,
starting from the given resolution.
|
static List<DateResolution> |
getResolutionsLowerThan(DateResolution r)
Returns the resolutions that are lower than the given resolution,
starting from the given resolution.
|
static DateResolution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateResolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateResolution DAY
public static final DateResolution MONTH
public static final DateResolution YEAR
public static DateResolution[] values()
for (DateResolution c : DateResolution.values()) System.out.println(c);
public static DateResolution 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 Iterable<DateResolution> getResolutionsHigherOrEqualTo(DateResolution r)
r - The resolution to start frompublic static List<DateResolution> getResolutionsLowerThan(DateResolution r)
r - The resolution to start fromCopyright © 2017 Vaadin Ltd. All rights reserved.