Interface Constraint
-
- All Superinterfaces:
Constraint
- All Known Implementing Classes:
DefaultKeySizeConstraint
,NoDeleteConstraint
,VisibilityConstraint
@Deprecated(since="2.1.0") public interface Constraint extends Constraint
Deprecated.since 2.1.0 UseConstraint
This class is replaced byConstraint
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Constraint.Environment
Deprecated.The environment within which a constraint exists.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description List<Short>
check(Constraint.Environment env, Mutation mutation)
Deprecated.Checks a mutation for constraint violations.default List<Short>
check(Constraint.Environment env, Mutation mutation)
Deprecated.Implemented for backwards compatibility.String
getViolationDescription(short violationCode)
Deprecated.Gets a short, one-sentence description of what a given violation code means.
-
-
-
Method Detail
-
getViolationDescription
String getViolationDescription(short violationCode)
Deprecated.Gets a short, one-sentence description of what a given violation code means.- Specified by:
getViolationDescription
in interfaceConstraint
- Parameters:
violationCode
- numeric violation code- Returns:
- matching violation description
-
check
List<Short> check(Constraint.Environment env, Mutation mutation)
Deprecated.Checks a mutation for constraint violations. If the mutation contains no violations, returns null. Otherwise, returns a list of violation codes. Violation codes must be non-negative. Negative violation codes are reserved for system use.- Parameters:
env
- constraint environmentmutation
- mutation to check- Returns:
- list of violation codes, or null if none
-
check
default List<Short> check(Constraint.Environment env, Mutation mutation)
Deprecated.Implemented for backwards compatibility.- Specified by:
check
in interfaceConstraint
- Parameters:
env
- constraint environmentmutation
- mutation to check- Returns:
- list of violation codes, or null if none
- Since:
- 2.1.0
-
-