public class ObjectCloneSnippets extends Object implements Snippets
Modifier and Type | Field and Description |
---|---|
static EnumMap<Kind,Method> |
arrayCloneMethods |
Constructor and Description |
---|
ObjectCloneSnippets() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
booleanArrayClone(boolean[] src) |
static byte[] |
byteArrayClone(byte[] src) |
static char[] |
charArrayClone(char[] src) |
static double[] |
doubleArrayClone(double[] src) |
static float[] |
floatArrayClone(float[] src) |
private static Method |
getCloneMethod(String name,
Class<?> param) |
static int[] |
intArrayClone(int[] src) |
static long[] |
longArrayClone(long[] src) |
static Object[] |
objectArrayClone(Object[] src) |
static short[] |
shortArrayClone(short[] src) |
public static final EnumMap<Kind,Method> arrayCloneMethods
public ObjectCloneSnippets()
private static Method getCloneMethod(String name, Class<?> param)
public static boolean[] booleanArrayClone(boolean[] src)
public static byte[] byteArrayClone(byte[] src)
public static short[] shortArrayClone(short[] src)
public static char[] charArrayClone(char[] src)
public static int[] intArrayClone(int[] src)
public static float[] floatArrayClone(float[] src)
public static long[] longArrayClone(long[] src)
public static double[] doubleArrayClone(double[] src)
public static Object[] objectArrayClone(Object[] src)