Class OpenApiCopyUtils

java.lang.Object
org.apache.juneau.commons.utils.CopyUtils
org.apache.juneau.bean.openapi3.OpenApiCopyUtils

public class OpenApiCopyUtils extends CopyUtils
Copy utilities for the OpenAPI 3.0 bean module.

Extends CopyUtils so that a single static-import-on-demand of this class (import static org.apache.juneau.bean.openapi3.OpenApiCopyUtils.*;) brings in both the inherited collection/map/array copyOf(...) overloads and the OpenAPI bean copyOf(<BeanType>) overloads declared here, resolved via ordinary Java overload resolution.

See Also:
  • Constructor Details

  • Method Details

    • copyOf

      public static Components copyOf(Components value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static Contact copyOf(Contact value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static Discriminator copyOf(Discriminator value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static Info copyOf(Info value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static Items copyOf(Items value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static License copyOf(License value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static OAuthFlow copyOf(OAuthFlow value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static Operation copyOf(Operation value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static RequestBodyInfo copyOf(RequestBodyInfo value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static SchemaInfo copyOf(SchemaInfo value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static Server copyOf(Server value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.
    • copyOf

      public static Xml copyOf(Xml value)
      Null-safe copy: returns a deep copy of the specified value, or null if the value is null.
      Parameters:
      value - The value to copy. Can be null (returns null).
      Returns:
      A copy of the value, or null if the value was null.