Class SwaggerCopyUtils

java.lang.Object
org.apache.juneau.commons.utils.CopyUtils
org.apache.juneau.bean.swagger.SwaggerCopyUtils

public class SwaggerCopyUtils extends CopyUtils
Copy utilities for the Swagger 2.0 bean module.

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

See Also:
  • Constructor Details

  • Method Details

    • 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

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