Package software.amazon.smithy.diff
Class ModelDiff.Result
java.lang.Object
software.amazon.smithy.diff.ModelDiff.Result
- Enclosing class:
- ModelDiff
The result of comparing two Smithy models.
-
Constructor Summary
ConstructorDescriptionResult
(Differences differences, List<ValidationEvent> diffEvents, List<ValidationEvent> oldModelEvents, List<ValidationEvent> newModelEvents) -
Method Summary
Modifier and TypeMethodDescriptionGets the validation events that were introduced by whatever changes were made to the new model.Gets the validation events that were present in the old model but are no longer an issue in the new model.boolean
Gets a queryable set of differences between two models.Gets the diff analysis as a list ofValidationEvent
s.Gets the validation events emitted when validating the new model.Gets the validation events emitted when validating the old model.int
hashCode()
boolean
Determines if the diff events contain any DANGER or ERROR events.
-
Constructor Details
-
Result
public Result(Differences differences, List<ValidationEvent> diffEvents, List<ValidationEvent> oldModelEvents, List<ValidationEvent> newModelEvents)
-
-
Method Details
-
getDifferences
Gets a queryable set of differences between two models.- Returns:
- Returns the differences.
-
getDiffEvents
Gets the diff analysis as a list ofValidationEvent
s.- Returns:
- Returns the diff validation events.
-
getOldModelEvents
Gets the validation events emitted when validating the old model.- Returns:
- Returns the old model's validation events.
-
getNewModelEvents
Gets the validation events emitted when validating the new model.- Returns:
- Returns the new model's validation events.
-
determineResolvedEvents
Gets the validation events that were present in the old model but are no longer an issue in the new model.- Returns:
- Returns the resolved validation events.
-
determineIntroducedEvents
Gets the validation events that were introduced by whatever changes were made to the new model.- Returns:
- Returns the validation events introduced by the new model.
-
isDiffBreaking
public boolean isDiffBreaking()Determines if the diff events contain any DANGER or ERROR events.- Returns:
- Returns true if this diff has breaking changes.
-
equals
-
hashCode
public int hashCode()
-