summaryrefslogtreecommitdiffstats
path: root/processing
diff options
context:
space:
mode:
Diffstat (limited to 'processing')
-rw-r--r--processing/src/main/java/com/yahoo/processing/request/CloneHelper.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java b/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java
index 279769514d0..8b639855764 100644
--- a/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java
+++ b/processing/src/main/java/com/yahoo/processing/request/CloneHelper.java
@@ -14,6 +14,16 @@ import java.util.Map;
import java.util.HashMap;
/**
+ * 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 : baldersheim
*/
public class CloneHelper {