Searched refs:maxIndex (Results 1 - 24 of 24) sorted by relevance

/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/
H A DArrayUtils.java37 private static int calculateNewLength(int currentLength, int maxIndex) { argument
38 while (currentLength < maxIndex + 1)
43 public static <T> T[] ensureCapacity(T[] array, int maxIndex) { argument
44 if (maxIndex < array.length) {
47 int newLength = calculateNewLength(array.length, maxIndex);
55 public static byte[] ensureCapacity(byte[] array, int maxIndex) { argument
56 if (maxIndex < array.length) {
59 int newLength = calculateNewLength(array.length, maxIndex);
66 public static char[] ensureCapacity(char[] array, int maxIndex) { argument
67 if (maxIndex < arra
77 ensureCapacity(int[] array, int maxIndex) argument
[all...]
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/text/html/
H A DOptionListModel.java53 private int maxIndex = MIN; field in class:OptionListModel
67 public int getMaxSelectionIndex() { return maxIndex; }
86 return ((index < minIndex) || (index > maxIndex)) ? false : value.get(index);
90 return (minIndex > maxIndex);
185 maxIndex = Math.max(maxIndex, r);
206 for(minIndex = minIndex + 1; minIndex <= maxIndex; minIndex++) {
213 If (r < maxIndex) the maximum has not changed.
214 The case (r > maxIndex) is not possible because r'th value was set.
218 if (r == maxIndex) {
[all...]
/openjdk9/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/spinner/
H A DJPaletteShower.java46 int maxIndex = palette.getSize() - 1;
47 double rate = (double) maxIndex / w;
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/
H A DDefaultListSelectionModel.java60 private int maxIndex = MIN; field in class:DefaultListSelectionModel
85 public int getMaxSelectionIndex() { return maxIndex; }
111 return ((index < minIndex) || (index > maxIndex)) ? false : value.get(index);
116 return (minIndex > maxIndex);
286 maxIndex = Math.max(maxIndex, r);
305 for(minIndex = minIndex + 1; minIndex <= maxIndex; minIndex++) {
312 If (r < maxIndex) the maximum has not changed.
313 The case (r > maxIndex) is not possible because r'th value was set.
317 if (r == maxIndex) {
[all...]
H A DJTree.java2543 int maxIndex = Math.max(index0, index1);
2545 maxIndex - minIndex + 1];
2546 for(int counter = minIndex; counter <= maxIndex; counter++) {
/openjdk9/corba/src/jdk.rmic/share/classes/sun/rmi/rmic/iiop/
H A DContextStack.java80 private int maxIndex = 100; field in class:ContextStack
81 private TypeContext[] stack = new TypeContext[maxIndex];
206 if (currentIndex == maxIndex) {
207 int newMax = maxIndex * 2;
209 System.arraycopy(stack,0,newStack,0,maxIndex);
210 maxIndex = newMax;
/openjdk9/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/
H A DFastInfosetStreamWriterOutput.java93 int maxIndex; field in class:FastInfosetStreamWriterOutput.TablesPerJAXBContext
115 maxIndex = initialIndexOffset + elementIndexes.length + attributeIndexes.length;
136 indexOffset += maxIndex;
138 maxIndex = intialIndexOffset + elementIndexes.length + attributeIndexes.length;
141 if ((indexOffset + maxIndex) < 0) {
146 maxIndex = intialIndexOffset + elementIndexes.length + attributeIndexes.length;
149 if ((indexOffset + maxIndex) < 0) {
175 maxIndex++;
178 if ((indexOffset + maxIndex) < 0) {
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/gif/
H A DGIFMetadata.java271 int maxIndex = -1;
286 if (index > maxIndex) {
287 maxIndex = index;
296 int numEntries = maxIndex + 1;
/openjdk9/jdk/src/java.desktop/share/classes/sun/awt/image/
H A DByteBandedRaster.java786 int maxIndex = 0;
794 if (index > maxIndex) {
795 maxIndex = index;
800 if (data[0].length <= maxIndex*numDataElements) {
804 (maxIndex*numDataElements)+
810 if (data[i].length <= maxIndex) {
814 maxIndex+" )");
H A DShortBandedRaster.java784 int maxIndex = 0;
792 if (index > maxIndex) {
793 maxIndex = index;
797 if (data[i].length <= maxIndex) {
799 "(should be > "+ maxIndex+" )");
H A DIntegerComponentRaster.java697 int maxIndex = 0;
706 if (index > maxIndex) {
707 maxIndex = index;
710 if (data.length <= maxIndex) {
712 + maxIndex + " )");
H A DShortComponentRaster.java860 int maxIndex = 0;
869 if (index > maxIndex) {
870 maxIndex = index;
873 if (data.length <= maxIndex) {
875 + maxIndex + " )");
H A DByteComponentRaster.java927 int maxIndex = 0;
937 if (index > maxIndex) {
938 maxIndex = index;
941 if (data.length <= maxIndex) {
943 + maxIndex + " )");
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/wbmp/
H A DWBMPImageWriter.java82 int maxIndex = multiBytes.length - 1;
83 for(int b = 0; b <= maxIndex; b++) {
84 multiBytes[b] = (byte)((intValue >>> ((maxIndex - b)*7))&0x7f);
85 if(b != maxIndex) {
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/
H A DListAdapter.java263 final int maxIndex = size() - 1;
264 if(index < maxIndex) {
268 } else if(index == maxIndex) {
/openjdk9/jdk/test/java/lang/Class/getDeclaredField/
H A DFieldSetAccessibleTest.java80 static long maxIndex = Long.MAX_VALUE; field in class:FieldSetAccessibleTest
172 maxIndex = (Long.MAX_VALUE - startIndex) < maxSize
197 if (index == maxIndex) break;
226 if (!classFound && startIndex == 0 && index < maxIndex) {
/openjdk9/langtools/test/tools/javac/lambda/bridge/template_tests/
H A DBridgeMethodTestCase.java112 for (int i = 0; i <= cm.maxIndex() ; i++) {
135 for (int i = 0; i <= cm.maxIndex() ; i++) {
296 int maxIndex() { method in class:BridgeMethodTestCase.ClassModel
299 maxSoFar = Math.max(cm.maxIndex(), maxSoFar);
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/
H A DTIFFLZWDecompressor.java220 int maxIndex = Math.min(string.length,
223 for (int i=0; i < maxIndex; i++) {
H A DTIFFImageMetadata.java837 int maxIndex = -1;
843 if(id > maxIndex) {
844 maxIndex = id;
864 int mapSize = maxIndex + 1;
/openjdk9/jdk/src/java.desktop/share/classes/sun/font/
H A DExtendedTextSourceLabel.java657 int maxIndex = minIndex; // largest index seen this cluster
669 maxIndex = minIndex;
703 maxIndex = minIndex;
718 (indices[gx] <= maxIndex) ||
719 (maxIndex - minIndex > clusterExtraGlyphs))) {
749 maxIndex = Math.max(maxIndex, indices[gx]);
758 System.err.println("minIndex = " + minIndex + ", maxIndex = " + maxIndex);
H A DCompositeFont.java341 int maxIndex = maxIndices[slot];
346 while (maxIndex > curIndex) {
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/
H A DPrintingProcessor.java635 final int maxIndex = spaces.length - 1;
637 while (indentation > maxIndex) {
638 writer.print(spaces[maxIndex]);
639 indentation -= maxIndex;
/openjdk9/jdk/test/javax/management/query/
H A DSupportedQueryTypesTest.java123 int maxIndex = queries.getSize();
139 for (int i = minIndex; i <= maxIndex; i++ ) {
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/
H A DBasicListUI.java1029 int maxIndex = Math.max(index1, index2);
1040 if (minIndex == maxIndex) {
1043 Rectangle maxBounds = getCellBounds(list, maxIndex);
1048 int maxRow = convertModelToRow(maxIndex);
2671 int maxIndex = Math.max(e.getIndex0(), e.getIndex1());
2678 sm.insertIndexInterval(minIndex, maxIndex - minIndex+1, true);

Completed in 382 milliseconds