Package gw.util
Class Array
java.lang.Object
gw.util.Array
Replaces java.lang.reflect.Array for better performance.
Basically the java.lang.reflect version uses native methods which are quite slow.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
static boolean
getBoolean
(Object array, int index) static byte
static char
static double
static float
static int
static int
static long
static short
static Object
newInstance
(Class<?> componentType, int length) static Object
newInstance
(Class<?> componentType, int[] dimensions) static void
static void
setBoolean
(Object array, int index, boolean value) static void
static void
static void
static void
static void
static void
static void
-
Constructor Details
-
Array
private Array()
-
-
Method Details
-
newInstance
-
newInstance
-
getLength
-
get
-
getBoolean
-
getByte
-
getChar
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
set
-
setBoolean
-
setByte
-
setChar
-
setShort
-
setInt
-
setLong
-
setFloat
-
setDouble
-