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 Objectstatic booleangetBoolean(Object array, int index) static bytestatic charstatic doublestatic floatstatic intstatic intstatic longstatic shortstatic ObjectnewInstance(Class<?> componentType, int length) static ObjectnewInstance(Class<?> componentType, int[] dimensions) static voidstatic voidsetBoolean(Object array, int index, boolean value) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic 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
-