/libcore/ojluni/src/main/java/java/nio/ |
H A D | FloatBuffer.java | 298 * index. 300 * @param index 301 * The index from which the float will be read 303 * @return The float at the given index 306 * If <tt>index</tt> is negative 309 public abstract float get(int index); argument 315 * index. </p> 317 * @param index 318 * The index at which the float will be written 326 * If <tt>index</t 332 put(int index, float f) argument [all...] |
H A D | IntBuffer.java | 299 * index. 301 * @param index 302 * The index from which the int will be read 304 * @return The int at the given index 307 * If <tt>index</tt> is negative 310 public abstract int get(int index); argument 316 * index. </p> 318 * @param index 319 * The index at which the int will be written 327 * If <tt>index</t 333 put(int index, int i) argument [all...] |
H A D | LongBuffer.java | 298 * index. 300 * @param index 301 * The index from which the long will be read 303 * @return The long at the given index 306 * If <tt>index</tt> is negative 309 public abstract long get(int index); argument 315 * index. </p> 317 * @param index 318 * The index at which the long will be written 326 * If <tt>index</t 332 put(int index, long l) argument [all...] |
H A D | ShortBuffer.java | 298 * index. 300 * @param index 301 * The index from which the short will be read 303 * @return The short at the given index 306 * If <tt>index</tt> is negative 309 public abstract short get(int index); argument 315 * index. </p> 317 * @param index 318 * The index at which the short will be written 326 * If <tt>index</t 332 put(int index, short s) argument [all...] |
H A D | CharBuffer.java | 281 * The index of the first character to be used; 286 * The index of the character following the last character to be 415 * index. 417 * @param index 418 * The index from which the char will be read 420 * @return The char at the given index 423 * If <tt>index</tt> is negative 426 public abstract char get(int index); argument 430 * index without any validation of the index 437 getUnchecked(int index) argument 460 put(int index, char c) argument 1061 charAt(int index) argument [all...] |
/libcore/ojluni/src/main/java/java/nio/file/ |
H A D | Path.java | 173 * <p> The {@code index} parameter is the index of the name element to return. 175 * has index {@code 0}. The element that is <em>farthest</em> from the root 176 * has index {@link #getNameCount count}{@code -1}. 178 * @param index 179 * the index of the element 184 * if {@code index} is negative, {@code index} is greater than or 188 Path getName(int index); argument 196 * in the directory hierarchy has index { [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | List.java | 33 * inserted. The user can access elements by their integer index (position in 52 * that these operations may execute in time proportional to the index value 91 * <a href="{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/collections/index.html"> 244 * the lowest index <tt>i</tt> such that 320 * @param index index at which to insert the first element from the 333 * @throws IndexOutOfBoundsException if the index is out of range 334 * (<tt>index < 0 || index > size()</tt>) 336 boolean addAll(int index, Collectio argument 566 get(int index) argument 586 set(int index, E element) argument 607 add(int index, E element) argument 622 remove(int index) argument 692 listIterator(int index) argument [all...] |
H A D | AbstractList.java | 63 * <a href="{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/collections/index.html"> 117 abstract public E get(int index); argument 131 public E set(int index, E element) { argument 147 public void add(int index, E element) { argument 160 public E remove(int index) { argument 227 * index)} or {@code removeRange(int fromIndex, int toIndex)} is 256 public boolean addAll(int index, Collection<? extends E> c) { argument 257 rangeCheckForAdd(index); 260 add(index++, e); 324 public ListIterator<E> listIterator(final int index) { argument 391 ListItr(int index) argument 603 rangeCheckForAdd(int index) argument 608 outOfBoundsMsg(int index) argument 632 set(int index, E element) argument 638 get(int index) argument 649 add(int index, E element) argument 657 remove(int index) argument 677 addAll(int index, Collection<? extends E> c) argument 694 listIterator(final int index) argument 753 rangeCheck(int index) argument 758 rangeCheckForAdd(int index) argument 763 outOfBoundsMsg(int index) argument [all...] |
H A D | EnumMap.java | 72 * <a href="{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/collections/index.html"> 269 int index = key.ordinal(); 270 Object oldValue = vals[index]; 271 vals[index] = maskNull(value); 289 int index = ((Enum<?>)key).ordinal(); 290 Object oldValue = vals[index]; 291 vals[index] = null; 300 int index = ((Enum<?>)key).ordinal(); 301 if (maskNull(value).equals(vals[index])) { 302 vals[index] 521 int index = 0; field in class:EnumMap.EnumMapIterator 585 private int index; field in class:EnumMap.EntryIterator.Entry 587 Entry(int index) argument 716 entryHashCode(int index) argument [all...] |
H A D | Random.java | 1000 long index; field in class:Random.RandomIntsSpliterator 1004 RandomIntsSpliterator(Random rng, long index, long fence, argument 1006 this.rng = rng; this.index = index; this.fence = fence; 1011 long i = index, m = (i + fence) >>> 1; 1013 new RandomIntsSpliterator(rng, i, index = m, origin, bound); 1017 return fence - index; 1027 long i = index, f = fence; 1030 index = i + 1; 1038 long i = index, 1055 long index; field in class:Random.RandomLongsSpliterator 1059 RandomLongsSpliterator(Random rng, long index, long fence, long origin, long bound) argument 1111 long index; field in class:Random.RandomDoublesSpliterator 1115 RandomDoublesSpliterator(Random rng, long index, long fence, double origin, double bound) argument [all...] |
H A D | Spliterators.java | 163 * @param fromIndex The least index (inclusive) to cover 164 * @param toIndex One past the greatest index to cover 225 * @param fromIndex The least index (inclusive) to cover 226 * @param toIndex One past the greatest index to cover 291 * @param fromIndex The least index (inclusive) to cover 292 * @param toIndex One past the greatest index to cover 357 * @param fromIndex The least index (inclusive) to cover 358 * @param toIndex One past the greatest index to cover 376 * Validate inclusive start index and exclusive end index agains 901 private int index; // current index, modified on advance/split field in class:Spliterators.ArraySpliterator 986 private int index; // current index, modified on advance/split field in class:Spliterators.IntArraySpliterator 1069 private int index; // current index, modified on advance/split field in class:Spliterators.LongArraySpliterator 1152 private int index; // current index, modified on advance/split field in class:Spliterators.DoubleArraySpliterator [all...] |
H A D | SplittableRandom.java | 833 long index; field in class:SplittableRandom.RandomIntsSpliterator 837 RandomIntsSpliterator(SplittableRandom rng, long index, long fence, argument 839 this.rng = rng; this.index = index; this.fence = fence; 844 long i = index, m = (i + fence) >>> 1; 846 new RandomIntsSpliterator(rng.split(), i, index = m, origin, bound); 850 return fence - index; 860 long i = index, f = fence; 863 index = i + 1; 871 long i = index, 889 long index; field in class:SplittableRandom.RandomLongsSpliterator 893 RandomLongsSpliterator(SplittableRandom rng, long index, long fence, long origin, long bound) argument 946 long index; field in class:SplittableRandom.RandomDoublesSpliterator 950 RandomDoublesSpliterator(SplittableRandom rng, long index, long fence, double origin, double bound) argument [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | Exchanger.java | 139 * anyway as ThreadLocals, and include in them per-thread index 205 * order, restarting at the maximum index (which will tend to be 261 * The maximum supported arena index. The maximum allocatable 278 * The maximum slot index of the arena: The number of slots that 311 int index; // Arena index field in class:Exchanger.Node 342 * The index of the largest valid arena position, OR'ed with SEQ 361 for (int i = p.index;;) { // access slot at i 411 i = p.index >>>= 1; // descend 436 p.index [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerIndefLenConverter.java | 52 private int newDataPos, dataPos, dataSize, index; field in class:DerIndefLenConverter 98 int index; 99 for (index = ndefsList.size()-1; index >= 0; index--) { 102 elem = ndefsList.get(index); 109 if (index < 0) { 116 ndefsList.set(index, sectionLenBytes); 189 byte[] lenBytes = (byte[])ndefsList.get(index++); 240 int index [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | GeneralSubtrees.java | 86 public GeneralSubtree get(int index) { argument 87 return trees.get(index); 90 public void remove(int index) { argument 91 trees.remove(index); 172 * @param ndx index of the GeneralSubtree from which to obtain the name
|
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/ |
H A D | SerializationTest.java | 107 * @param index array index of tested data (as returned by 111 protected File getDataFile(int index) { argument 119 return new File(path, name.substring(dot + 1) + "." + index + ".dat"); 349 * using specified <code>comparator</code>. (<code>N</code> is index
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONArray.java | 40 * JSONObject#NULL}. In particular, {@code get} fails if the requested index 201 * Sets the value at {@code index} to {@code value}, null padding this array 203 * index}, it will be replaced. 207 public JSONArray put(int index, boolean value) throws JSONException { argument 208 return put(index, (Boolean) value); 212 * Sets the value at {@code index} to {@code value}, null padding this array 214 * index}, it will be replaced. 220 public JSONArray put(int index, double value) throws JSONException { argument 221 return put(index, (Double) value); 225 * Sets the value at {@code index} t 231 put(int index, int value) argument 242 put(int index, long value) argument 257 put(int index, Object value) argument 273 isNull(int index) argument 285 get(int index) argument 301 opt(int index) argument 312 remove(int index) argument 326 getBoolean(int index) argument 339 optBoolean(int index) argument 347 optBoolean(int index, boolean fallback) argument 360 getDouble(int index) argument 373 optDouble(int index) argument 381 optDouble(int index, double fallback) argument 394 getInt(int index) argument 407 optInt(int index) argument 415 optInt(int index, int fallback) argument 428 getLong(int index) argument 441 optLong(int index) argument 449 optLong(int index, long fallback) argument 461 getString(int index) argument 474 optString(int index) argument 482 optString(int index, String fallback) argument 495 getJSONArray(int index) argument 508 optJSONArray(int index) argument 520 getJSONObject(int index) argument 533 optJSONObject(int index) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | ElementImpl.java | 129 * with the given ID attribute. We should consider adding an index to speed 346 public Node item(int index) { argument 347 return ElementImpl.this.attributes.get(index);
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | StringBuffer.java | 200 public synchronized char charAt(int index) { argument 201 if ((index < 0) || (index >= count)) 202 throw new StringIndexOutOfBoundsException(index); 203 return value[index]; 210 public synchronized int codePointAt(int index) { argument 211 return super.codePointAt(index); 218 public synchronized int codePointBefore(int index) { argument 219 return super.codePointBefore(index); 234 public synchronized int offsetByCodePoints(int index, in argument 253 setCharAt(int index, char ch) argument 439 deleteCharAt(int index) argument 488 insert(int index, char[] str, int offset, int len) argument [all...] |
/libcore/ojluni/src/main/java/java/lang/reflect/ |
H A D | Array.java | 167 * @param index the index 173 * @exception ArrayIndexOutOfBoundsException If the specified {@code index} 178 public static Object get(Object array, int index) argument 181 return ((Object[]) array)[index]; 184 return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE; 187 return Byte.valueOf(((byte[]) array)[index]); 190 return Character.valueOf(((char[]) array)[index]); 193 return Short.valueOf(((short[]) array)[index]); 196 return Integer.valueOf(((int[]) array)[index]); 230 getBoolean(Object array, int index) argument 255 getByte(Object array, int index) argument 280 getChar(Object array, int index) argument 305 getShort(Object array, int index) argument 332 getInt(Object array, int index) argument 363 getLong(Object array, int index) argument 396 getFloat(Object array, int index) argument 431 getDouble(Object array, int index) argument 469 set(Object array, int index, Object value) argument 523 setBoolean(Object array, int index, boolean z) argument 550 setByte(Object array, int index, byte b) argument 587 setChar(Object array, int index, char c) argument 622 setShort(Object array, int index, short s) argument 657 setInt(Object array, int index, int i) argument 690 setLong(Object array, int index, long l) argument 720 setFloat(Object array, int index, float f) argument 749 setDouble(Object array, int index, double d) argument [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | SpinedBuffer.java | 70 * The curChunk pointer is always valid. The elementIndex is the index of 159 * Retrieve the element at the specified index. 161 public E get(long index) { argument 165 // Casts to int are safe since the spine array index is the index minus 168 if (index < elementIndex) 169 return curChunk[((int) index)]; 171 throw new IndexOutOfBoundsException(Long.toString(index)); 174 if (index >= count()) 175 throw new IndexOutOfBoundsException(Long.toString(index)); 521 chunkFor(long index) argument 633 arrayForOne(T_ARR array, int index, T_CONS consumer) argument 775 get(long index) argument 889 get(long index) argument 1005 get(long index) argument [all...] |
/libcore/ojluni/src/main/java/sun/net/www/ |
H A D | MessageHeader.java | 184 int index = 0; field in class:MessageHeader.HeaderIterator 199 while (index < nkeys) { 200 if (key.equalsIgnoreCase (keys[index])) { 202 next = index++; 205 index ++; 327 * with the new k/v. If the index didn't exist before
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixPath.java | 207 int count, index; 211 index = 0; 216 while (index < path.length) { 217 byte c = path[index++]; 220 while (index < path.length && path[index] != '/') 221 index++; 229 index = 0; 230 while (index < path.length) { 231 byte c = path[index]; 318 getName(int index) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/jca/ |
H A D | ProviderList.java | 147 public Provider get(int index) { 148 return getProvider(index); 229 * Return the Provider at the specified index. Returns EMPTY_PROVIDER 232 Provider getProvider(int index) { argument 233 Provider p = configs[index].getProvider(); 247 int index = getIndex(name); 248 return (index != -1) ? configs[index] : null; 258 * Return the index at which the provider with the specified name is 396 // index int 423 tryGet(int index) argument 453 get(int index) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS9Attribute.java | 307 * attributes, by index in <code>PKCS9_OIDS</code>. 369 * by index in <code>PKCS9_OIDS</code>. 398 * The index of the OID of this attribute in <code>PKCS9_OIDS</code>, 401 private int index; field in class:PKCS9Attribute 405 * <code>VALUE_CLASSES[index]</code>. The SET itself 461 index = indexOf(oid, PKCS9_OIDS, 1); 462 Class<?> clazz = index == -1 ? BYTE_ARRAY_CLASS: VALUE_CLASSES[index]; 498 index = indexOf(oid, PKCS9_OIDS, 1); 499 if (index [all...] |