Lines Matching refs:Array

5 import java.lang.reflect.Array;
27 intArray = Array.newInstance(Integer.TYPE, 2); in testSingleInt()
31 Array.setInt(intArray, 1, 6); in testSingleInt()
33 if (Array.getInt(intArray, 0) != 5) in testSingleInt()
42 Array.setInt(intArray, 2, 27); in testSingleInt()
45 if (array.length != Array.getLength(intArray) || in testSingleInt()
54 Array.set(intArray, 0, x123); in testSingleInt()
55 Array.set(intArray, 1, x456); in testSingleInt()
56 if (!Array.get(intArray, 0).equals(x123) || !Array.get(intArray, 1).equals(x456)) { in testSingleInt()
66 intArray = Array.newInstance(Integer.TYPE, 0); in testSingleInt()
67 if (Array.getLength(intArray) != 0) in testSingleInt()
73 Object charArray = Array.newInstance(Character.TYPE, 7); in testSingleChar()
83 Array.setChar(charArray, 1, '1'); in testSingleChar()
84 Array.setChar(charArray, 4, '4'); in testSingleChar()
86 Array.setShort(charArray, 3, (short) 'Y'); in testSingleChar()
90 Array.setInt(charArray, 5, 'Z'); in testSingleChar()
96 if (Array.getInt(charArray, i) - '0' != i) { in testSingleChar()
101 if (Array.getInt(charArray, 4) != '4') { in testSingleChar()
108 Array.getByte(charArray, 2); in testSingleChar()
112 Array.setChar(charArray, 3, (char) 0xffff); in testSingleChar()
114 if (Array.getInt(charArray, 3) != 0xffff) { in testSingleChar()
116 + Array.getInt(charArray, 3)); in testSingleChar()
126 Object shortArray = Array.newInstance(Short.TYPE, 1); in testSingleShort()
127 Array.setShort(shortArray, 0, (short) -1); in testSingleShort()
128 if (Array.getInt(shortArray, 0) != -1) { in testSingleShort()
132 Short box = (Short) Array.get(shortArray, 0); in testSingleShort()
138 Object longArray = Array.newInstance(Long.TYPE, 2); in testSingleLong()
139 Array.setInt(longArray, 0, 123); in testSingleLong()
140 Array.setLong(longArray, 1, 0x1122334455667788L); in testSingleLong()
142 Array.getInt(longArray, 0); in testSingleLong()
151 float f = Array.getFloat(longArray, 0); in testSingleLong()
155 if (Array.getLong(longArray, 1) != 0x1122334455667788L) { in testSingleLong()
165 strArray = Array.newInstance(String.class, 2); in testSingle()
169 Array.set(strArray, 1, "entry one"); in testSingle()
171 Array.set(strArray, 2, "entry two"); in testSingle()
177 if (!"entry zero".equals(Array.get(strArray, 0))) in testSingle()
182 if (array.length != Array.getLength(strArray) || in testSingle()
189 Array.set(strArray, 0, new Integer(5)); in testSingle()
199 intIntIntArray = Array.newInstance(Integer.TYPE, dimensions); in testMultiInt()
218 strStrStrArray = Array.newInstance(String.class, dimensions); in testMulti()
246 strStrStrArray = Array.newInstance(String[].class, dimensions2); in testMulti()
261 Object arrayOfAbstractClasses = Array.newInstance(Number.class, 1); in testAbstract()
264 arrayOfAbstractClasses = Array.newInstance(Cloneable.class, 1); in testAbstract()