Enum CompositionType
- All Implemented Interfaces:
Serializable
,Comparable<CompositionType>
,java.lang.constant.Constable
The Enum
CompositionType
which is used as argument to the annotation ConstraintComposition
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionALL_FALSE is a generalisation of the usual NOT operator, which is applied to a list of conditions rather than just one element.Used to indicate the conjunction of all the constraints it is applied to.Used to indicate the disjunction of all constraints it is applied to. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositionType
Returns the enum constant of this type with the specified name.static CompositionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OR
Used to indicate the disjunction of all constraints it is applied to. -
AND
Used to indicate the conjunction of all the constraints it is applied to. -
ALL_FALSE
ALL_FALSE is a generalisation of the usual NOT operator, which is applied to a list of conditions rather than just one element. When the annotation it is used on is composed of a single constraint annotation, then it is equivalent to NOT.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-