Package software.amazon.smithy.diff
Class ModelDiff.Result
- java.lang.Object
- 
- software.amazon.smithy.diff.ModelDiff.Result
 
- 
- Enclosing class:
- ModelDiff
 
 public static final class ModelDiff.Result extends java.lang.ObjectThe result of comparing two Smithy models.
- 
- 
Constructor SummaryConstructors Constructor Description Result(Differences differences, java.util.List<ValidationEvent> diffEvents, java.util.List<ValidationEvent> oldModelEvents, java.util.List<ValidationEvent> newModelEvents)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<ValidationEvent>determineIntroducedEvents()Gets the validation events that were introduced by whatever changes were made to the new model.java.util.Set<ValidationEvent>determineResolvedEvents()Gets the validation events that were present in the old model but are no longer an issue in the new model.booleanequals(java.lang.Object o)DifferencesgetDifferences()Gets a queryable set of differences between two models.java.util.List<ValidationEvent>getDiffEvents()Gets the diff analysis as a list ofValidationEvents.java.util.List<ValidationEvent>getNewModelEvents()Gets the validation events emitted when validating the new model.java.util.List<ValidationEvent>getOldModelEvents()Gets the validation events emitted when validating the old model.inthashCode()booleanisDiffBreaking()Determines if the diff events contain any DANGER or ERROR events.
 
- 
- 
- 
Constructor Detail- 
Resultpublic Result(Differences differences, java.util.List<ValidationEvent> diffEvents, java.util.List<ValidationEvent> oldModelEvents, java.util.List<ValidationEvent> newModelEvents) 
 
- 
 - 
Method Detail- 
getDifferencespublic Differences getDifferences() Gets a queryable set of differences between two models.- Returns:
- Returns the differences.
 
 - 
getDiffEventspublic java.util.List<ValidationEvent> getDiffEvents() Gets the diff analysis as a list ofValidationEvents.- Returns:
- Returns the diff validation events.
 
 - 
getOldModelEventspublic java.util.List<ValidationEvent> getOldModelEvents() Gets the validation events emitted when validating the old model.- Returns:
- Returns the old model's validation events.
 
 - 
getNewModelEventspublic java.util.List<ValidationEvent> getNewModelEvents() Gets the validation events emitted when validating the new model.- Returns:
- Returns the new model's validation events.
 
 - 
determineResolvedEventspublic java.util.Set<ValidationEvent> 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.
 
 - 
determineIntroducedEventspublic java.util.Set<ValidationEvent> 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.
 
 - 
isDiffBreakingpublic boolean isDiffBreaking() Determines if the diff events contain any DANGER or ERROR events.- Returns:
- Returns true if this diff has breaking changes.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-