Package com.vaadin.flow.shared.ui
Enum Dependency.Type
- java.lang.Object
-
- java.lang.Enum<Dependency.Type>
-
- com.vaadin.flow.shared.ui.Dependency.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Dependency.Type>
- Enclosing class:
- Dependency
public static enum Dependency.Type extends Enum<Dependency.Type>
The type of a dependency.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DYNAMIC_IMPORT
JAVASCRIPT
JS_MODULE
STYLESHEET
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
contains(String value)
Check if the given value is contained as a enum value.static Dependency.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Dependency.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STYLESHEET
public static final Dependency.Type STYLESHEET
-
JAVASCRIPT
public static final Dependency.Type JAVASCRIPT
-
JS_MODULE
public static final Dependency.Type JS_MODULE
-
DYNAMIC_IMPORT
public static final Dependency.Type DYNAMIC_IMPORT
-
-
Method Detail
-
values
public static Dependency.Type[] 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 (Dependency.Type c : Dependency.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dependency.Type 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
-
contains
public static boolean contains(String value)
Check if the given value is contained as a enum value.- Parameters:
value
- value to check- Returns:
- true if there is a matching enum value
-
-