Package org.jfree.chart.util
Class CloneUtils
- java.lang.Object
-
- org.jfree.chart.util.CloneUtils
-
public class CloneUtils extends java.lang.Object
Utilities for cloning.- Since:
- 1.0.18
-
-
Constructor Summary
Constructors Constructor Description CloneUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<?>cloneList(java.util.List<?> source)Returns a list containing cloned copies of the items in the source list.static java.util.MapcloneMapValues(java.util.Map source)Returns a new map that contains the same keys and cloned copied of the values.
-
-
-
Constructor Detail
-
CloneUtils
public CloneUtils()
-
-
Method Detail
-
cloneList
public static java.util.List<?> cloneList(java.util.List<?> source)
Returns a list containing cloned copies of the items in the source list.- Parameters:
source- the source list (nullnot permitted).- Returns:
- A new list.
-
cloneMapValues
public static java.util.Map cloneMapValues(java.util.Map source)
Returns a new map that contains the same keys and cloned copied of the values.- Parameters:
source- the source map (nullnot permitted).- Returns:
- A new map.
- Since:
- 1.0.18
-
-