Class CopyUtil

java.lang.Object
org.jboss.jca.common.api.metadata.CopyUtil

public class CopyUtil extends Object
A CopyUtil.
Author:
Stefano Maestri
  • Constructor Details

    • CopyUtil

      public CopyUtil()
  • Method Details

    • cloneList

      public static <T extends CopyableMetaData> List<T> cloneList(List<T> list)
      clone a list of IdDecoratedMetadata and deep into the elements
      Type Parameters:
      T - type extending CopyableMetaData
      Parameters:
      list - the list to clone
      Returns:
      cloned list
    • cloneListOfStrings

      public static List<String> cloneListOfStrings(List<String> list)
      clone a list of string deep into elements
      Parameters:
      list - the list to clone
      Returns:
      cloned list
    • cloneString

      public static String cloneString(String input)
      clone a String
      Parameters:
      input - the input
      Returns:
      cloned String
    • clone

      public static <T extends CopyableMetaData> T clone(T input)
      Clone an IDDecoratedMetadata taking care of null cheks
      Type Parameters:
      T - type extending CopyableMetaData
      Parameters:
      input - type extending IdDecoratedMetadata
      Returns:
      cloned input