Package software.amazon.smithy.diff
Class ModelDiff
- java.lang.Object
- 
- software.amazon.smithy.diff.ModelDiff
 
- 
 public final class ModelDiff extends java.lang.ObjectComputes the difference between two models and any problems that might occur due to those differences.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classModelDiff.BuilderBuilder used to construct a diff of two Smithy models.static classModelDiff.ResultThe result of comparing two Smithy models.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelDiff.Builderbuilder()Creates a new ModelDiff.Builder that provides in-depth diff analysis.static java.util.List<ValidationEvent>compare(java.lang.ClassLoader classLoader, Model oldModel, Model newModel)Evaluates the differences between two models.static java.util.List<ValidationEvent>compare(Model oldModel, Model newModel)Evaluates the differences between two models.
 
- 
- 
- 
Method Detail- 
builderpublic static ModelDiff.Builder builder() Creates a new ModelDiff.Builder that provides in-depth diff analysis.- Returns:
- Returns the builder.
 
 - 
comparepublic static java.util.List<ValidationEvent> compare(Model oldModel, Model newModel) Evaluates the differences between two models.Use ModelDiff.Builderdirectly to get access to additional information.- Parameters:
- oldModel- Previous version of the model.
- newModel- New model to compare.
- Returns:
- Returns the computed validation events.
 
 - 
comparepublic static java.util.List<ValidationEvent> compare(java.lang.ClassLoader classLoader, Model oldModel, Model newModel) Evaluates the differences between two models.Use ModelDiff.Builderdirectly to get access to additional information.- Parameters:
- classLoader- ClassLoader used to find- DiffEvaluatorservice providers.
- oldModel- Previous version of the model.
- newModel- New model to compare.
- Returns:
- Returns the computed validation events.
 
 
- 
 
-