public static final class ModelDiff.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ModelDiff.Builder |
classLoader(java.lang.ClassLoader classLoader)
Sets the ClassLoader used to find
DiffEvaluator service
providers. |
ModelDiff.Result |
compare()
Performs the diff of the old and new models.
|
ModelDiff.Builder |
newModel(Model newModel)
Sets the new model to compare against.
|
ModelDiff.Builder |
newModel(ValidatedResult<Model> newModel)
Sets the new model to compare against along with the validation
events encountered while loading the model.
|
ModelDiff.Builder |
oldModel(Model oldModel)
Sets the old model to compare against.
|
ModelDiff.Builder |
oldModel(ValidatedResult<Model> oldModel)
Sets the old model to compare against along with the validation
events encountered while loading the model.
|
public ModelDiff.Builder classLoader(java.lang.ClassLoader classLoader)
DiffEvaluator service
providers.classLoader - ClassLoader to use.public ModelDiff.Builder oldModel(Model oldModel)
oldModel - Old version of a model.public ModelDiff.Builder newModel(Model newModel)
newModel - New version of a model.public ModelDiff.Builder oldModel(ValidatedResult<Model> oldModel)
oldModel - Old version of a model with events.public ModelDiff.Builder newModel(ValidatedResult<Model> newModel)
newModel - New version of a model with events.public ModelDiff.Result compare()
ModelDiff.Result.java.lang.IllegalStateException - if oldModel and newModel are not set.