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