com.vaadin.shared.ui.datefield.
Enum DateTimeResolution
- java.lang.Object
-
- java.lang.Enum<DateTimeResolution>
-
- com.vaadin.shared.ui.datefield.DateTimeResolution
-
All Implemented Interfaces:
public enum DateTimeResolution extends Enum<DateTimeResolution>
Resolutions for DateTimeFields.
Since:
8.0
Author:
Vaadin Ltd.
-
-
Method Summary
All Methods Modifier and Type Method Description static DateTimeResolution
valueOf​(String name)
Returns the enum constant of this type with the specified name.
static DateTimeResolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECOND
public static final DateTimeResolution SECOND
-
MINUTE
public static final DateTimeResolution MINUTE
-
HOUR
public static final DateTimeResolution HOUR
-
DAY
public static final DateTimeResolution DAY
-
MONTH
public static final DateTimeResolution MONTH
-
YEAR
public static final DateTimeResolution YEAR
-
-
Method Detail
-
values
public static DateTimeResolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DateTimeResolution c : DateTimeResolution.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTimeResolution valueOf​(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name
- the name of the enum constant to be returned.Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-