public class Flattener extends Object
| Constructor and Description |
|---|
Flattener() |
| Modifier and Type | Method and Description |
|---|---|
static boolean[] |
flatten(boolean src)
Flatten a scalar boolean into a 1-dimensional array of
boolean
|
static boolean[] |
flatten(Boolean src)
Flatten a scalar java.lang.Boolean into a 1-dimensional array of
boolean
|
static boolean[] |
flatten(boolean[] src)
Flatten a 1-dimensional array of boolean into a 1-dimensional array of
boolean
|
static boolean[] |
flatten(Boolean[] src)
Flatten a 1-dimensional array of java.lang.Boolean into a 1-dimensional array of
boolean
|
static boolean[] |
flatten(boolean[][] src)
Flatten a 2-dimensional array of boolean into a 1-dimensional array of
boolean
|
static boolean[] |
flatten(Boolean[][] src)
Flatten a 2-dimensional array of java.lang.Boolean into a 1-dimensional array of
boolean
|
static boolean[] |
flatten(boolean[][][] src)
Flatten a 3-dimensional array of boolean into a 1-dimensional array of
boolean
|
static boolean[] |
flatten(Boolean[][][] src)
Flatten a 3-dimensional array of java.lang.Boolean into a 1-dimensional array of
boolean
|
static byte[] |
flatten(byte src)
Flatten a scalar byte into a 1-dimensional array of
byte
|
static byte[] |
flatten(Byte src)
Flatten a scalar java.lang.Byte into a 1-dimensional array of
byte
|
static byte[] |
flatten(byte[] src)
Flatten a 1-dimensional array of byte into a 1-dimensional array of
byte
|
static byte[] |
flatten(Byte[] src)
Flatten a 1-dimensional array of java.lang.Byte into a 1-dimensional array of
byte
|
static byte[] |
flatten(byte[][] src)
Flatten a 2-dimensional array of byte into a 1-dimensional array of
byte
|
static byte[] |
flatten(Byte[][] src)
Flatten a 2-dimensional array of java.lang.Byte into a 1-dimensional array of
byte
|
static byte[] |
flatten(byte[][][] src)
Flatten a 3-dimensional array of byte into a 1-dimensional array of
byte
|
static byte[] |
flatten(Byte[][][] src)
Flatten a 3-dimensional array of java.lang.Byte into a 1-dimensional array of
byte
|
static char[] |
flatten(char src)
Flatten a scalar char into a 1-dimensional array of
char
|
static char[] |
flatten(char[] src)
Flatten a 1-dimensional array of char into a 1-dimensional array of
char
|
static char[] |
flatten(char[][] src)
Flatten a 2-dimensional array of char into a 1-dimensional array of
char
|
static char[] |
flatten(char[][][] src)
Flatten a 3-dimensional array of char into a 1-dimensional array of
char
|
static char[] |
flatten(Character src)
Flatten a scalar java.lang.Character into a 1-dimensional array of
char
|
static char[] |
flatten(Character[] src)
Flatten a 1-dimensional array of java.lang.Character into a 1-dimensional array of
char
|
static char[] |
flatten(Character[][] src)
Flatten a 2-dimensional array of java.lang.Character into a 1-dimensional array of
char
|
static char[] |
flatten(Character[][][] src)
Flatten a 3-dimensional array of java.lang.Character into a 1-dimensional array of
char
|
static double[] |
flatten(double src)
Flatten a scalar double into a 1-dimensional array of
double
|
static double[] |
flatten(Double src)
Flatten a scalar java.lang.Double into a 1-dimensional array of
double
|
static double[] |
flatten(double[] src)
Flatten a 1-dimensional array of double into a 1-dimensional array of
double
|
static double[] |
flatten(Double[] src)
Flatten a 1-dimensional array of java.lang.Double into a 1-dimensional array of
double
|
static double[] |
flatten(double[][] src)
Flatten a 2-dimensional array of double into a 1-dimensional array of
double
|
static double[] |
flatten(Double[][] src)
Flatten a 2-dimensional array of java.lang.Double into a 1-dimensional array of
double
|
static double[] |
flatten(double[][][] src)
Flatten a 3-dimensional array of double into a 1-dimensional array of
double
|
static double[] |
flatten(Double[][][] src)
Flatten a 3-dimensional array of java.lang.Double into a 1-dimensional array of
double
|
static float[] |
flatten(float src)
Flatten a scalar float into a 1-dimensional array of
float
|
static float[] |
flatten(Float src)
Flatten a scalar java.lang.Float into a 1-dimensional array of
float
|
static float[] |
flatten(float[] src)
Flatten a 1-dimensional array of float into a 1-dimensional array of
float
|
static float[] |
flatten(Float[] src)
Flatten a 1-dimensional array of java.lang.Float into a 1-dimensional array of
float
|
static float[] |
flatten(float[][] src)
Flatten a 2-dimensional array of float into a 1-dimensional array of
float
|
static float[] |
flatten(Float[][] src)
Flatten a 2-dimensional array of java.lang.Float into a 1-dimensional array of
float
|
static float[] |
flatten(float[][][] src)
Flatten a 3-dimensional array of float into a 1-dimensional array of
float
|
static float[] |
flatten(Float[][][] src)
Flatten a 3-dimensional array of java.lang.Float into a 1-dimensional array of
float
|
static int[] |
flatten(int src)
Flatten a scalar int into a 1-dimensional array of
int
|
static int[] |
flatten(int[] src)
Flatten a 1-dimensional array of int into a 1-dimensional array of
int
|
static int[] |
flatten(int[][] src)
Flatten a 2-dimensional array of int into a 1-dimensional array of
int
|
static int[] |
flatten(int[][][] src)
Flatten a 3-dimensional array of int into a 1-dimensional array of
int
|
static int[] |
flatten(Integer src)
Flatten a scalar java.lang.Integer into a 1-dimensional array of
int
|
static int[] |
flatten(Integer[] src)
Flatten a 1-dimensional array of java.lang.Integer into a 1-dimensional array of
int
|
static int[] |
flatten(Integer[][] src)
Flatten a 2-dimensional array of java.lang.Integer into a 1-dimensional array of
int
|
static int[] |
flatten(Integer[][][] src)
Flatten a 3-dimensional array of java.lang.Integer into a 1-dimensional array of
int
|
static long[] |
flatten(long src)
Flatten a scalar long into a 1-dimensional array of
long
|
static long[] |
flatten(Long src)
Flatten a scalar java.lang.Long into a 1-dimensional array of
long
|
static long[] |
flatten(long[] src)
Flatten a 1-dimensional array of long into a 1-dimensional array of
long
|
static long[] |
flatten(Long[] src)
Flatten a 1-dimensional array of java.lang.Long into a 1-dimensional array of
long
|
static long[] |
flatten(long[][] src)
Flatten a 2-dimensional array of long into a 1-dimensional array of
long
|
static long[] |
flatten(Long[][] src)
Flatten a 2-dimensional array of java.lang.Long into a 1-dimensional array of
long
|
static long[] |
flatten(long[][][] src)
Flatten a 3-dimensional array of long into a 1-dimensional array of
long
|
static long[] |
flatten(Long[][][] src)
Flatten a 3-dimensional array of java.lang.Long into a 1-dimensional array of
long
|
static Object |
flatten(Object src)
Generic method for flattening array of dimensions greater than 3.
|
static Object[] |
flatten(Object[] src)
Flatten a 1-dimensional array of java.lang.Object into a 1-dimensional array of
java.lang.Object
|
static Object[] |
flatten(Object[][] src)
Flatten a 2-dimensional array of java.lang.Object into a 1-dimensional array of
java.lang.Object
|
static Object[] |
flatten(Object[][][] src)
Flatten a 3-dimensional array of java.lang.Object into a 1-dimensional array of
java.lang.Object
|
static short[] |
flatten(short src)
Flatten a scalar short into a 1-dimensional array of
short
|
static short[] |
flatten(Short src)
Flatten a scalar java.lang.Short into a 1-dimensional array of
short
|
static short[] |
flatten(short[] src)
Flatten a 1-dimensional array of short into a 1-dimensional array of
short
|
static short[] |
flatten(Short[] src)
Flatten a 1-dimensional array of java.lang.Short into a 1-dimensional array of
short
|
static short[] |
flatten(short[][] src)
Flatten a 2-dimensional array of short into a 1-dimensional array of
short
|
static short[] |
flatten(Short[][] src)
Flatten a 2-dimensional array of java.lang.Short into a 1-dimensional array of
short
|
static short[] |
flatten(short[][][] src)
Flatten a 3-dimensional array of short into a 1-dimensional array of
short
|
static short[] |
flatten(Short[][][] src)
Flatten a 3-dimensional array of java.lang.Short into a 1-dimensional array of
short
|
static char[] |
flatten(String src)
Flatten a scalar java.lang.String into a 1-dimensional array of
char
|
static String[] |
flatten(String[] src)
Flatten a 1-dimensional array of java.lang.String into a 1-dimensional array of
java.lang.String
|
static String[] |
flatten(String[][] src)
Flatten a 2-dimensional array of java.lang.String into a 1-dimensional array of
java.lang.String
|
static String[] |
flatten(String[][][] src)
Flatten a 3-dimensional array of java.lang.String into a 1-dimensional array of
java.lang.String
|
static void |
genericFlattenBoolean(boolean[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of boolean of dimensions greater than 3 into a
1-dimensional array of boolean.
|
static void |
genericFlattenByte(byte[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of byte of dimensions greater than 3 into a
1-dimensional array of byte.
|
static void |
genericFlattenChar(char[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of char of dimensions greater than 3 into a
1-dimensional array of char.
|
static void |
genericFlattenDouble(double[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of double of dimensions greater than 3 into a
1-dimensional array of double.
|
static void |
genericFlattenFloat(float[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of float of dimensions greater than 3 into a
1-dimensional array of float.
|
static void |
genericFlattenInt(int[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of int of dimensions greater than 3 into a
1-dimensional array of int.
|
static void |
genericFlattenJavaLangBoolean(boolean[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Boolean of dimensions greater than 3 into a
1-dimensional array of boolean.
|
static void |
genericFlattenJavaLangByte(byte[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Byte of dimensions greater than 3 into a
1-dimensional array of byte.
|
static void |
genericFlattenJavaLangCharacter(char[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Character of dimensions greater than 3 into a
1-dimensional array of char.
|
static void |
genericFlattenJavaLangDouble(double[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Double of dimensions greater than 3 into a
1-dimensional array of double.
|
static void |
genericFlattenJavaLangFloat(float[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Float of dimensions greater than 3 into a
1-dimensional array of float.
|
static void |
genericFlattenJavaLangInteger(int[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Integer of dimensions greater than 3 into a
1-dimensional array of int.
|
static void |
genericFlattenJavaLangLong(long[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Long of dimensions greater than 3 into a
1-dimensional array of long.
|
static void |
genericFlattenJavaLangObject(Object[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Object of dimensions greater than 3 into a
1-dimensional array of java.lang.Object.
|
static void |
genericFlattenJavaLangShort(short[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.Short of dimensions greater than 3 into a
1-dimensional array of short.
|
static void |
genericFlattenJavaLangString(String[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of java.lang.String of dimensions greater than 3 into a
1-dimensional array of java.lang.String.
|
static void |
genericFlattenLong(long[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of long of dimensions greater than 3 into a
1-dimensional array of long.
|
static void |
genericFlattenShort(short[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
Flatten an array of short of dimensions greater than 3 into a
1-dimensional array of short.
|
public static Object flatten(Object src)
src - Multi dimensional input arraypublic static byte[] flatten(byte src)
src - scalar bytepublic static byte[] flatten(byte[] src)
src - 1-dimensional array of bytepublic static byte[] flatten(byte[][] src)
src - 2-dimensional array of bytepublic static byte[] flatten(byte[][][] src)
src - 3-dimensional array of bytepublic static void genericFlattenByte(byte[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of byte contianing the flattened data.src - Array of byte with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static int[] flatten(Integer src)
src - scalar java.lang.Integerpublic static int[] flatten(Integer[] src)
src - 1-dimensional array of java.lang.Integerpublic static int[] flatten(Integer[][] src)
src - 2-dimensional array of java.lang.Integerpublic static int[] flatten(Integer[][][] src)
src - 3-dimensional array of java.lang.Integerpublic static void genericFlattenJavaLangInteger(int[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of int contianing the flattened data.src - Array of java.lang.Integer with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static long[] flatten(Long src)
src - scalar java.lang.Longpublic static long[] flatten(Long[] src)
src - 1-dimensional array of java.lang.Longpublic static long[] flatten(Long[][] src)
src - 2-dimensional array of java.lang.Longpublic static long[] flatten(Long[][][] src)
src - 3-dimensional array of java.lang.Longpublic static void genericFlattenJavaLangLong(long[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of long contianing the flattened data.src - Array of java.lang.Long with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static long[] flatten(long src)
src - scalar longpublic static long[] flatten(long[] src)
src - 1-dimensional array of longpublic static long[] flatten(long[][] src)
src - 2-dimensional array of longpublic static long[] flatten(long[][][] src)
src - 3-dimensional array of longpublic static void genericFlattenLong(long[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of long contianing the flattened data.src - Array of long with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static boolean[] flatten(Boolean src)
src - scalar java.lang.Booleanpublic static boolean[] flatten(Boolean[] src)
src - 1-dimensional array of java.lang.Booleanpublic static boolean[] flatten(Boolean[][] src)
src - 2-dimensional array of java.lang.Booleanpublic static boolean[] flatten(Boolean[][][] src)
src - 3-dimensional array of java.lang.Booleanpublic static void genericFlattenJavaLangBoolean(boolean[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of boolean contianing the flattened data.src - Array of java.lang.Boolean with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static float[] flatten(Float src)
src - scalar java.lang.Floatpublic static float[] flatten(Float[] src)
src - 1-dimensional array of java.lang.Floatpublic static float[] flatten(Float[][] src)
src - 2-dimensional array of java.lang.Floatpublic static float[] flatten(Float[][][] src)
src - 3-dimensional array of java.lang.Floatpublic static void genericFlattenJavaLangFloat(float[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of float contianing the flattened data.src - Array of java.lang.Float with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static char[] flatten(String src)
src - scalar java.lang.Stringpublic static String[] flatten(String[] src)
src - 1-dimensional array of java.lang.Stringpublic static String[] flatten(String[][] src)
src - 2-dimensional array of java.lang.Stringpublic static String[] flatten(String[][][] src)
src - 3-dimensional array of java.lang.Stringpublic static void genericFlattenJavaLangString(String[] dst, Object src, int start, List<Integer> stride, List<Integer> len, int depth)
dst - 1-dimensional array of java.lang.String contianing the flattened data.src - Array of java.lang.String with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static double[] flatten(Double src)
src - scalar java.lang.Doublepublic static double[] flatten(Double[] src)
src - 1-dimensional array of java.lang.Doublepublic static double[] flatten(Double[][] src)
src - 2-dimensional array of java.lang.Doublepublic static double[] flatten(Double[][][] src)
src - 3-dimensional array of java.lang.Doublepublic static void genericFlattenJavaLangDouble(double[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of double contianing the flattened data.src - Array of java.lang.Double with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static boolean[] flatten(boolean src)
src - scalar booleanpublic static boolean[] flatten(boolean[] src)
src - 1-dimensional array of booleanpublic static boolean[] flatten(boolean[][] src)
src - 2-dimensional array of booleanpublic static boolean[] flatten(boolean[][][] src)
src - 3-dimensional array of booleanpublic static void genericFlattenBoolean(boolean[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of boolean contianing the flattened data.src - Array of boolean with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static char[] flatten(Character src)
src - scalar java.lang.Characterpublic static char[] flatten(Character[] src)
src - 1-dimensional array of java.lang.Characterpublic static char[] flatten(Character[][] src)
src - 2-dimensional array of java.lang.Characterpublic static char[] flatten(Character[][][] src)
src - 3-dimensional array of java.lang.Characterpublic static void genericFlattenJavaLangCharacter(char[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of char contianing the flattened data.src - Array of java.lang.Character with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static byte[] flatten(Byte src)
src - scalar java.lang.Bytepublic static byte[] flatten(Byte[] src)
src - 1-dimensional array of java.lang.Bytepublic static byte[] flatten(Byte[][] src)
src - 2-dimensional array of java.lang.Bytepublic static byte[] flatten(Byte[][][] src)
src - 3-dimensional array of java.lang.Bytepublic static void genericFlattenJavaLangByte(byte[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of byte contianing the flattened data.src - Array of java.lang.Byte with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static int[] flatten(int src)
src - scalar intpublic static int[] flatten(int[] src)
src - 1-dimensional array of intpublic static int[] flatten(int[][] src)
src - 2-dimensional array of intpublic static int[] flatten(int[][][] src)
src - 3-dimensional array of intpublic static void genericFlattenInt(int[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of int contianing the flattened data.src - Array of int with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static char[] flatten(char src)
src - scalar charpublic static char[] flatten(char[] src)
src - 1-dimensional array of charpublic static char[] flatten(char[][] src)
src - 2-dimensional array of charpublic static char[] flatten(char[][][] src)
src - 3-dimensional array of charpublic static void genericFlattenChar(char[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of char contianing the flattened data.src - Array of char with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static double[] flatten(double src)
src - scalar doublepublic static double[] flatten(double[] src)
src - 1-dimensional array of doublepublic static double[] flatten(double[][] src)
src - 2-dimensional array of doublepublic static double[] flatten(double[][][] src)
src - 3-dimensional array of doublepublic static void genericFlattenDouble(double[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of double contianing the flattened data.src - Array of double with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static float[] flatten(float src)
src - scalar floatpublic static float[] flatten(float[] src)
src - 1-dimensional array of floatpublic static float[] flatten(float[][] src)
src - 2-dimensional array of floatpublic static float[] flatten(float[][][] src)
src - 3-dimensional array of floatpublic static void genericFlattenFloat(float[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of float contianing the flattened data.src - Array of float with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static short[] flatten(short src)
src - scalar shortpublic static short[] flatten(short[] src)
src - 1-dimensional array of shortpublic static short[] flatten(short[][] src)
src - 2-dimensional array of shortpublic static short[] flatten(short[][][] src)
src - 3-dimensional array of shortpublic static void genericFlattenShort(short[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of short contianing the flattened data.src - Array of short with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static Object[] flatten(Object[] src)
src - 1-dimensional array of java.lang.Objectpublic static Object[] flatten(Object[][] src)
src - 2-dimensional array of java.lang.Objectpublic static Object[] flatten(Object[][][] src)
src - 3-dimensional array of java.lang.Objectpublic static void genericFlattenJavaLangObject(Object[] dst, Object src, int start, List<Integer> stride, List<Integer> len, int depth)
dst - 1-dimensional array of java.lang.Object contianing the flattened data.src - Array of java.lang.Object with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base casepublic static short[] flatten(Short src)
src - scalar java.lang.Shortpublic static short[] flatten(Short[] src)
src - 1-dimensional array of java.lang.Shortpublic static short[] flatten(Short[][] src)
src - 2-dimensional array of java.lang.Shortpublic static short[] flatten(Short[][][] src)
src - 3-dimensional array of java.lang.Shortpublic static void genericFlattenJavaLangShort(short[] dst,
Object src,
int start,
List<Integer> stride,
List<Integer> len,
int depth)
dst - 1-dimensional array of short contianing the flattened data.src - Array of java.lang.Short with number of dimensions greater than 3start - Offset in the destination array corresponding to an element in source arraystride - List containing value of stride for each dimensionlen - List containing all the dimensions of the source arraydepth - Level of recursion. This valus is used for determining when we reach the base caseCopyright © 2015–2021. All rights reserved.