Package dev.dokimos.core.evaluators
Class LengthEvaluator
java.lang.Object
dev.dokimos.core.BaseEvaluator
dev.dokimos.core.evaluators.LengthEvaluator
- All Implemented Interfaces:
Evaluator
Evaluator that checks if the length of the actual output falls within an inclusive
[minimumOutputLength, maximumOutputLength] range.
Length is measured in Unicode code points rather than UTF-16 char units, so a
supplementary character such as an emoji counts as one, not two.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LengthEvaluator.Builderbuilder()Creates a new builder for constructing length evaluators.Methods inherited from class dev.dokimos.core.BaseEvaluator
evaluate, evaluateAsync, evaluateAsync, name, threshold
-
Method Details
-
builder
Creates a new builder for constructing length evaluators.- Returns:
- a new builder
-