public class CloneHelper extends Object
Modifier and Type | Field and Description |
---|---|
private static com.yahoo.collections.MethodCache |
cloneMethodCache |
private static Logger |
log |
Constructor and Description |
---|
CloneHelper() |
Modifier and Type | Method and Description |
---|---|
private Object |
arrayClone(Object array) |
Object |
clone(Object object)
Clones this object if it is clonable, and the clone is public.
|
Map<CompoundName,Object> |
cloneMap(Map<CompoundName,Object> map)
Clones a map by deep cloning each value which is cloneable and shallow copying all other values.
|
private Object |
objectArrayClone(Object[] object) |
protected Object |
objectClone(Object object) |
private static Logger log
private static final com.yahoo.collections.MethodCache cloneMethodCache
public final Object clone(Object object)
public Map<CompoundName,Object> cloneMap(Map<CompoundName,Object> map)
Copyright © 2018. All rights reserved.