validate
2.0.0-SNAPSHOT.108
validate
/
io.spine.validate.option
/
MaxConstraint
Max
Constraint
public
final
class
MaxConstraint
extends
RangedConstraint
<
T
>
Content copied to clipboard
A constraint, which checks whether a numeric field value exceeds a max value, when applied.
Functions
Inherited functions
Functions
accept
Link copied to clipboard
public
void
accept
(
ConstraintTranslator
<
? extends
Object
>
visitor
)
Content copied to clipboard
Accepts the given
ConstraintTranslator
.
compile
Error
Message
Link copied to clipboard
protected
String
compileErrorMessage
(
Range
<
ComparableNumber
>
range
)
Content copied to clipboard
Inherited functions
error
Message
Link copied to clipboard
public
String
errorMessage
(
FieldContext
field
)
Content copied to clipboard
Produces an error message for the given field validation context.
field
Link copied to clipboard
public
final
FieldDeclaration
field
(
)
Content copied to clipboard
option
Value
Link copied to clipboard
public
final
V
optionValue
(
)
Content copied to clipboard
Returns a value that describes the constraint.
range
Link copied to clipboard
public
final
Range
<
ComparableNumber
>
range
(
)
Content copied to clipboard
target
Type
Link copied to clipboard
public
MessageType
targetType
(
)
Content copied to clipboard
The associated message type.