public enum ConstraintType extends Enum<ConstraintType>
Enum Constant and Description |
---|
GREATER_OR_EQUAL |
GREATER_THAN |
IN_RANGE |
LESS_OR_EQUAL |
LESS_THAN |
MIN_LENGTH |
VALID_VALUES |
Modifier and Type | Method and Description |
---|---|
static ConstraintType |
getByType(String type) |
List<String> |
getTypes() |
static ConstraintType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintType IN_RANGE
public static final ConstraintType GREATER_THAN
public static final ConstraintType GREATER_OR_EQUAL
public static final ConstraintType LESS_OR_EQUAL
public static final ConstraintType MIN_LENGTH
public static final ConstraintType VALID_VALUES
public static final ConstraintType LESS_THAN
public static ConstraintType[] values()
for (ConstraintType c : ConstraintType.values()) System.out.println(c);
public static ConstraintType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ConstraintType getByType(String type)
Copyright © 2017. All rights reserved.