public class RainbowUtil
extends java.lang.Object
| Constructor | Description |
|---|---|
RainbowUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static short[] |
convertArray(byte[] in) |
This function converts an one-dimensional array of bytes into a
one-dimensional array of type short
|
static short[][] |
convertArray(byte[][] in) |
This function converts a matrix of bytes into a matrix of type short
|
static short[][][] |
convertArray(byte[][][] in) |
This function converts a 3-dimensional array of bytes into a 3-dimensional array of type short
|
static byte[] |
convertArray(short[] in) |
This function converts an array of type short into an array of type byte
|
static byte[][] |
convertArray(short[][] in) |
This function converts a matrix of type short into a matrix of type byte
|
static byte[][][] |
convertArray(short[][][] in) |
This function converts a 3-dimensional array of type short into a 3-dimensional array of type byte
|
static int[] |
convertArraytoInt(byte[] in) |
This function converts an one-dimensional array of bytes into a
one-dimensional array of int
|
static byte[] |
convertIntArray(int[] in) |
This function converts an array of type int into an array of type byte
|
static boolean |
equals(short[][][] left,
short[][][] right) |
Compare two three-dimensional short arrays.
|
static boolean |
equals(short[][] left,
short[][] right) |
Compare two two-dimensional short arrays.
|
static boolean |
equals(short[] left,
short[] right) |
Compare two short arrays.
|
public static int[] convertArraytoInt(byte[] in)
in - the array to be convertedpublic static short[] convertArray(byte[] in)
in - the array to be convertedpublic static short[][] convertArray(byte[][] in)
in - the matrix to be convertedpublic static short[][][] convertArray(byte[][][] in)
in - the array to be convertedpublic static byte[] convertIntArray(int[] in)
in - the array to be convertedpublic static byte[] convertArray(short[] in)
in - the array to be convertedpublic static byte[][] convertArray(short[][] in)
in - the matrix to be convertedpublic static byte[][][] convertArray(short[][][] in)
in - the array to be convertedpublic static boolean equals(short[] left,
short[] right)
left - the first short arrayright - the second short arraypublic static boolean equals(short[][] left,
short[][] right)
left - the first short arrayright - the second short arraypublic static boolean equals(short[][][] left,
short[][][] right)
left - the first short arrayright - the second short array