Class ChangedRangeTrait
java.lang.Object
software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
software.amazon.smithy.diff.evaluators.ChangedRangeTrait
- All Implemented Interfaces:
DiffEvaluator
Detects when the Range trait is made more restrictive by either
raising the min or lowering the max.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal List<ValidationEvent>
evaluate
(Differences differences) Returns validation events given two models and the detected differences between them.protected Optional<BigDecimal>
getMax
(RangeTrait t) protected Optional<BigDecimal>
getMin
(RangeTrait t) protected Class<RangeTrait>
Methods inherited from class software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator
danger, danger, error, error, getEventId, note, note, warning, warning
-
Constructor Details
-
ChangedRangeTrait
public ChangedRangeTrait()
-
-
Method Details
-
getTraitType
-
getMin
-
getMax
-
evaluate
Description copied from interface:DiffEvaluator
Returns validation events given two models and the detected differences between them.- Parameters:
differences
- Detected differences.- Returns:
- Returns validation events that are relative to the new model.
-