Class CloneHelper


  • public class CloneHelper
    extends Object
    Helps to deep clone complex objects The following classes and their subclasses does have a fastpath - com.yahoo.component.provider.FreezableClass - com.yahoo.processing.request.properties.PublicCloneable BTW, this is the one you should implement too if you want the fastpath. - java.util.LinkedList - java.util.ArrayList The rest has the slow path with reflection, though using a fast thread safe method cache for speedup.
    Author:
    bratseth, baldersheim
    • Constructor Detail

      • CloneHelper

        public CloneHelper()
    • Method Detail

      • clone

        public final Object clone​(Object object)
        Clones this object if it is clonable, and the clone is public. Returns null if not
      • objectClone

        protected Object objectClone​(Object object)