Enum CommandPredicate.Type
- java.lang.Object
-
- java.lang.Enum<CommandPredicate.Type>
-
- org.sonar.iac.docker.checks.utils.command.CommandPredicate.Type
-
- All Implemented Interfaces:
Serializable,Comparable<CommandPredicate.Type>
- Enclosing interface:
- CommandPredicate
public static enum CommandPredicate.Type extends Enum<CommandPredicate.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MATCHNO_MATCHOPTIONALZERO_OR_MORE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandPredicate.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static CommandPredicate.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MATCH
public static final CommandPredicate.Type MATCH
-
NO_MATCH
public static final CommandPredicate.Type NO_MATCH
-
OPTIONAL
public static final CommandPredicate.Type OPTIONAL
-
ZERO_OR_MORE
public static final CommandPredicate.Type ZERO_OR_MORE
-
-
Method Detail
-
values
public static CommandPredicate.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 (CommandPredicate.Type c : CommandPredicate.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 CommandPredicate.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
-
-