Searched defs:array (Results 51 - 75 of 218) sorted by relevance

123456789

/openjdk7/jdk/src/share/classes/javax/swing/text/html/parser/
H A DTagStack.java176 public void println(char[] array) { argument
183 for (int i = 0; i < array.length; i++) {
184 if (array[i] == '\n') {
189 System.arraycopy(array, 0, partialArray, 0, i);
201 super.println(array);
/openjdk7/jdk/src/share/classes/java/beans/
H A DXMLDecoder.java71 private Object[] array; field in class:XMLDecoder
195 if (this.array == null) {
205 this.array = this.handler.getObjects();
251 ? this.array[this.index++]
/openjdk7/jdk/src/share/classes/java/lang/reflect/
H A DAccessibleObject.java69 * array of objects with a single security check (for efficiency).
77 * {@code array} may not be changed (for example, if the element
80 * accessibility of objects is set to {@code flag} for array elements
85 * @param array the array of AccessibleObjects
92 public static void setAccessible(AccessibleObject[] array, boolean flag) argument
96 for (int i = 0; i < array.length; i++) {
97 setAccessible0(array[i], flag);
221 // The cache can be either null (empty cache), a 2-array of {caller,target},
223 // In the 2-array cas
[all...]
/openjdk7/jdk/src/share/back/
H A DArrayTypeImpl.c34 * as the array. See JVM spec 5.3.3:
99 * before array class, so this should never occur.
114 jarray array; local
124 array = JNI_FUNC_PTR(env,NewObjectArray)(env, size, componentClass, 0);
127 array = NULL;
130 if (array == NULL) {
133 (void)outStream_writeByte(out, specificTypeKey(env, array));
134 (void)outStream_writeObjectRef(env, out, array);
149 jarray array = NULL; local
153 array
[all...]
/openjdk7/hotspot/src/share/vm/utilities/
H A DquickSort.cpp71 void QuickSort::print_array(const char* prefix, int* array, int length) { argument
74 tty->print(" %d", array[i]);
82 print_array("Sorted array ", actual, length);
83 print_array("Expected array", expected, length);
100 assert(sort_and_compare(test_array, expected_array, 0, test_comparator), "Empty array not handled");
105 assert(sort_and_compare(test_array, expected_array, 1, test_comparator), "Single value array not handled");
135 assert(sort_and_compare(test_array, expected_array, 10, test_comparator), "Already sorted array not correctly sorted");
150 // An array of lenght 3 is only sorted by find_pivot. Make sure that it is idempotent.
200 assert(sort_and_compare(test_array, expected_array, length, test_comparator), "Random array not correctly sorted");
211 assert(compare_arrays(test_array, expected_array, length), "Sorting already sorted array change
[all...]
H A DquickSort.hpp36 static void swap(T* array, int x, int y) { argument
37 T tmp = array[x];
38 array[x] = array[y];
39 array[y] = tmp;
43 // We swap in these three values at the right place in the array. This
45 // element. It also alters the array so that:
46 // array[first] <= array[middle] <= array[las
49 find_pivot(T* array, int length, C comparator) argument
70 partition(T* array, int pivot, int length, C comparator) argument
97 inner_sort(T* array, int length, C comparator) argument
119 sort(T* array, int length, C comparator, bool idempotent) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/codemodel/internal/
H A DJType.java98 * Create an array type of this type.
101 * doesn't have any corresponding array representation.
103 * @return A {@link JClass} representing the array type
106 public abstract JClass array(); method in class:JType
108 /** Tell whether or not this is an array type. */
150 * If this is an array, returns the component type of the array.
154 throw new IllegalArgumentException("Not an array type");
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/
H A DBuiltInEncodingAlgorithm.java43 public abstract void encodeToBytes(Object array, int astart, int alength, byte[] b, int start); argument
H A DHexadecimalEncodingAlgorithm.java136 public final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start) { argument
137 System.arraycopy((byte[])array, astart, b, start, alength);
/openjdk7/jdk/test/java/beans/PropertyChangeSupport/
H A DTestSerialization.java54 byte[] array = serialize(create());
57 check(array, read(file));
90 private static void check(PropertyChangeListener[] array, int length) { argument
91 if (length != array.length)
92 throw new Error("Unexpected amount of listeners: " + array.length);
/openjdk7/jdk/test/java/beans/VetoableChangeSupport/
H A DTestSerialization.java54 byte[] array = serialize(create());
57 check(array, read(file));
90 private static void check(VetoableChangeListener[] array, int length) { argument
91 if (length != array.length)
92 throw new Error("Unexpected amount of listeners: " + array.length);
/openjdk7/jdk/test/java/beans/XMLEncoder/
H A DAbstractTest.java131 byte[] array = writeObject(object);
132 System.out.print(new String(array, Charset.forName("UTF-8")));
133 return (Z) readObject(array);
146 private Object readObject(byte[] array) { argument
147 ByteArrayInputStream input = new ByteArrayInputStream(array);
/openjdk7/jdk/test/java/io/Serializable/evolution/AddedField/
H A DWriteAddedField.java107 NewFieldClass[] array; field in class:B
116 array = new NewFieldClass[12];
117 for (int i = 0; i < array.length; i++)
118 array[i] = new NewFieldClass(i);
133 NewFieldClass[] array; field in class:C
140 array = new NewFieldClass[12];
141 for (int i = 0; i < array.length; i++)
142 array[i] = new NewFieldClass(i);
176 s.writeObject(array);
/openjdk7/langtools/src/share/classes/javax/annotation/processing/
H A DAbstractProcessor.java188 private static Set<String> arrayToSet(String[] array) { argument
189 assert array != null;
190 Set<String> set = new HashSet<String>(array.length);
191 for (String s : array)
/openjdk7/jdk/src/share/native/java/io/
H A Dio_util.c63 * Returns true if the array slice defined by the given offset and length
67 outOfBounds(JNIEnv *env, jint off, jint len, jbyteArray array) { argument
72 ((*env)->GetArrayLength(env, array) - off < len));
/openjdk7/jdk/src/share/classes/sun/security/jgss/
H A DGSSToken.java42 * Copies an integer value to a byte array in little endian form.
44 * @param array the byte array into which the integer must be copied. It
45 * is assumed that the array will be large enough to hold the 4 bytes of
48 public static final void writeLittleEndian(int value, byte[] array) { argument
49 writeLittleEndian(value, array, 0);
53 * Copies an integer value to a byte array in little endian form.
55 * @param array the byte array into which the integer must be copied. It
56 * is assumed that the array wil
60 writeLittleEndian(int value, byte[] array, int pos) argument
68 writeBigEndian(int value, byte[] array) argument
72 writeBigEndian(int value, byte[] array, int pos) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DDSAParameterGenerator.java161 * @return an array of BigInteger, with <code>p</code> at index 0 and
187 * @return an array of BigInteger, with <code>p</code> at index 0,
279 private byte[] SHA(byte[] array) { argument
281 sha.engineUpdate(array, 0, array.length);
/openjdk7/jdk/test/java/util/concurrent/forkjoin/
H A DNQueensCS.java133 private static NQueensCS explore(int[] array, int bs) { argument
134 int row = array.length;
139 int p = array[i];
146 int[] next = Arrays.copyOf(array, row+1);
/openjdk7/jdk/test/javax/management/modelmbean/ModelMBeanInfoSupport/
H A DGetAllDescriptorsTest.java56 return (Object[]) array.clone();
60 public void tweakArray(Object[] array) { argument
61 this.array = (Object[]) array.clone();
65 private Object[] array = {"hello", "world"}; field in class:GetAllDescriptorsTest.Resource
136 new ModelMBeanAttributeInfo("Array", "array attr", getArray,
/openjdk7/jdk/src/share/classes/sun/reflect/annotation/
H A DAnnotationInvocationHandler.java84 * This method, which clones its array argument, would not be necessary
87 private Object cloneArray(Object array) { argument
88 Class<?> type = array.getClass();
91 byte[] byteArray = (byte[])array;
95 char[] charArray = (char[])array;
99 double[] doubleArray = (double[])array;
103 float[] floatArray = (float[])array;
107 int[] intArray = (int[])array;
111 long[] longArray = (long[])array;
115 short[] shortArray = (short[])array;
[all...]
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DGrowableByteArray.java31 * Growable int array, designed to allow subclasses to emulate
40 byte[] array; field in class:GrowableByteArray
46 array = new byte[initialSize];
56 if (size >= array.length)
65 * @return a direct reference to the backing array.
69 return array;
73 * @return a copy of the backing array.
77 return Arrays.copyOf(array, getSize());
82 return array[getCellIndex(index)];
102 array[nextInde
[all...]
/openjdk7/langtools/test/tools/javac/scope/
H A DHashCollisionTest.java229 <T> int indexOf(T[] array, T item) { argument
230 for (int i = 0; i < array.length; i++) {
231 if (array[i] == item)
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DGapVector.java33 * emacs. The underlying storage is a java array of some type,
34 * which is known only by the subclass of this class. The array
39 * moving the array contents directly to accomodate the change.
61 array = allocateArray(initialLength);
67 * Allocate an array to store items of the type
73 * Get the length of the allocated array
78 * Access to the array. The actual type
79 * of the array is known only by the subclass.
82 return array;
102 * The array o
104 private Object array; field in class:GapVector
[all...]
H A DSegment.java30 * A segment of a character array representing a fragment
32 * the array is directly accessible. This gives fast access
46 * This is the array containing the text of
47 * interest. This array should never be modified;
50 public char[] array; field in class:Segment
53 * This is the offset into the array that
59 * This is the number of array elements that
74 * Creates a new segment referring to an existing array.
76 * @param array the array t
80 Segment(char[] array, int offset, int count) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/
H A DVariableGridLayout.java211 static String fracsToString(double array[]) { argument
212 String result = "["+array.length+"]";
214 for (int i = 0; i < array.length; i++) {
215 result += "<"+array[i]+">";

Completed in 51 milliseconds

123456789