public class DefaultKeySizeConstraint extends Object implements Constraint
Constraint.Environment
Modifier and Type | Field and Description |
---|---|
protected static short |
MAX__KEY_SIZE_EXCEEDED_VIOLATION |
protected static long |
maxSize |
Constructor and Description |
---|
DefaultKeySizeConstraint() |
Modifier and Type | Method and Description |
---|---|
List<Short> |
check(Constraint.Environment env,
Mutation mutation)
Checks a mutation for constraint violations.
|
String |
getViolationDescription(short violationCode)
Gets a short, one-sentence description of what a given violation code means.
|
protected static final short MAX__KEY_SIZE_EXCEEDED_VIOLATION
protected static final long maxSize
public String getViolationDescription(short violationCode)
Constraint
getViolationDescription
in interface Constraint
violationCode
- numeric violation codepublic List<Short> check(Constraint.Environment env, Mutation mutation)
Constraint
check
in interface Constraint
env
- constraint environmentmutation
- mutation to checkCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.