Enum MuiVersion
- java.lang.Object
-
- java.lang.Enum<MuiVersion>
-
- com.github.grossopa.selenium.component.mui.MuiVersion
-
- All Implemented Interfaces:
Serializable,Comparable<MuiVersion>
public enum MuiVersion extends Enum<MuiVersion>
The supported Material UI versions- Since:
- 1.7
- Author:
- Jack Yin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMuiVersion.Func<T,R>The function forMuiVersionenums.
-
Enum Constant Summary
Enum Constants Enum Constant Description V4Version 4, see https://v4.mui.com/V5Version 5, current version as of year 2021
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T,R>
Rapply(MuiVersion.Func<T,R> func, T input)Executes a function by current type.static MuiVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static MuiVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V4
public static final MuiVersion V4
Version 4, see https://v4.mui.com/
-
V5
public static final MuiVersion V5
Version 5, current version as of year 2021
-
-
Method Detail
-
values
public static MuiVersion[] 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 (MuiVersion c : MuiVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MuiVersion 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
-
apply
public abstract <T,R> R apply(MuiVersion.Func<T,R> func, T input)
Executes a function by current type.- Type Parameters:
T- the input typeR- the result type- Parameters:
func- the function to executeinput- the input parameter to be passed in- Returns:
- execution result
-
-