Class CopyUtil

    • Constructor Detail

      • CopyUtil

        public CopyUtil()
    • Method Detail

      • cloneList

        public static <T extends CopyableMetaDataList<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