Class CloneUtil


  • public class CloneUtil
    extends Object
    Author:
    semancik
    • Constructor Detail

      • CloneUtil

        public CloneUtil()
    • Method Detail

      • clone

        @Contract("null -> null; !null -> !null")
        public static <T> T clone​(T orig)
      • cloneCollectionMembers

        @Contract("!null -> !null; null -> null")
        public static <T> List<T> cloneCollectionMembers​(Collection<T> collection)
        Returns:
        List that can be freely used.
      • javaLangClone

        public static <T> T javaLangClone​(T orig)