Package javax.validation.constraints
Enum Pattern.Flag
- java.lang.Object
-
- java.lang.Enum<Pattern.Flag>
-
- javax.validation.constraints.Pattern.Flag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Pattern.Flag>
- Enclosing class:
- Pattern
public static enum Pattern.Flag extends java.lang.Enum<Pattern.Flag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANON_EQ
CASE_INSENSITIVE
COMMENTS
DOTALL
MULTILINE
UNICODE_CASE
UNIX_LINES
-
Field Summary
Fields Modifier and Type Field Description private int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
Flag(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static Pattern.Flag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Pattern.Flag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIX_LINES
public static final Pattern.Flag UNIX_LINES
-
CASE_INSENSITIVE
public static final Pattern.Flag CASE_INSENSITIVE
-
COMMENTS
public static final Pattern.Flag COMMENTS
-
MULTILINE
public static final Pattern.Flag MULTILINE
-
DOTALL
public static final Pattern.Flag DOTALL
-
UNICODE_CASE
public static final Pattern.Flag UNICODE_CASE
-
CANON_EQ
public static final Pattern.Flag CANON_EQ
-
-
Method Detail
-
values
public static Pattern.Flag[] 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 (Pattern.Flag c : Pattern.Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Pattern.Flag valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
-
-