-
- Type Parameters:
T
- the type of model
public interface ModelMergeHandler<T>
A model merge handle is responsible for merging partial models into a final model. Generally used as a parameter to theMergeModel
operator or to theGetModel
operator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<T>
getModelClass()
Returns the java type of the modelT
merge(List<T> models)
Merges the given list of models into a single model.
-
-
-
Method Detail
-
getModelClass
Class<T> getModelClass()
Returns the java type of the model- Returns:
- the java type of the model
-
merge
T merge(List<T> models)
Merges the given list of models into a single model. Note that implementations should not make any assumptions about model ordering. Furthermore the merge algorithm should be both commutative and associative since future versions of the framework may support hierarchical merging.- Parameters:
models
- the partial models.- Returns:
- the final model.
-
-