org.wildfly.swarm.microprofile.openapi.api.util

## Class MergeUtil

- java.lang.Object
- - org.wildfly.swarm.microprofile.openapi.api.util.MergeUtil

-     public class MergeUtil
      extends Object

  Used to merge two OAI data models into a single one. The MP+OAI 1.0 spec requires that any or all of the various mechanisms for producing an OAI document can be used. When more than one mechanism is used, each mechanism produces an OpenAPI document. These multiple documents must then be sensibly merged into a final result.
  Author:
    eric.wittmann@gmail.com

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static OpenAPIImpl` | `merge(OpenAPIImpl document1, OpenAPIImpl document2)` Merges two documents and returns the result.
    `static <T> T` | `mergeObjects(T object1, T object2)` Generic merge of two objects of the same type.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### merge

          public static final OpenAPIImpl merge(OpenAPIImpl document1,
                                                OpenAPIImpl document2)

      Merges two documents and returns the result.
      Parameters:
        `document1` -
        `document2` -

    - #### mergeObjects

          public static <T> T mergeObjects(T object1,
                                           T object2)

      Generic merge of two objects of the same type.
      Parameters:
        `object1` -
        `object2` -

Copyright © 2018 JBoss by Red Hat. All rights reserved.