Interface ModelMergeHandler<T>

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 the MergeModel operator or to the GetModel operator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the java type of the model
    merge(List<T> models)
    Merges the given list of models into a single model.
  • Method Details

    • 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.