Class DefaultClassCopiers


  • public abstract class DefaultClassCopiers
    extends java.lang.Object
    • Field Detail

      • identityClassCopier

        private static ClassCopier identityClassCopier
      • errorClassCopier

        private static ClassCopier errorClassCopier
    • Constructor Detail

      • DefaultClassCopiers

        private DefaultClassCopiers()
    • Method Detail

      • getIdentityClassCopier

        public static ClassCopier getIdentityClassCopier()
        Return a ClassCopier that simple returns its argument as its result.
      • getErrorClassCopier

        public static ClassCopier getErrorClassCopier()
        Return a ClassCopier that always raises a ReflectiveCopyException whenever its copy method is called.
      • makeMapClassCopier

        public static ClassCopier makeMapClassCopier​(ClassCopierFactory ccf)
        Return a ClassCopier that is suitable for instances of the Map interface. This should be limited to HashMap, Hashtable, IdentityHashMap, and TreeMap.