Searched defs:newLength (Results 1 - 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/lang/ |
H A D | StringBuffer.java | 190 public synchronized void setLength(int newLength) { argument 192 super.setLength(newLength);
|
H A D | AbstractStringBuilder.java | 185 * index <i>k</i> less than {@code newLength}, the character at 191 * In other words, if the {@code newLength} argument is less than 194 * If the {@code newLength} argument is greater than or equal 197 * length becomes the {@code newLength} argument. 199 * The {@code newLength} argument must be greater than or equal 202 * @param newLength the new length 204 * {@code newLength} argument is negative. 206 public void setLength(int newLength) { argument 207 if (newLength < 0) 208 throw new StringIndexOutOfBoundsException(newLength); [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | RandomAccessFile.java | 644 * {@code length} method is greater than the {@code newLength} 647 * than {@code newLength} then after this method returns the offset 648 * will be equal to {@code newLength}. 651 * {@code length} method is smaller than the {@code newLength} 655 * @param newLength The desired length of the file 659 public void setLength(long newLength) throws IOException { argument 661 if (newLength < 0) { 662 throw new IllegalArgumentException("newLength < 0"); 665 Libcore.os.ftruncate(fd, newLength); 671 if (filePointer > newLength) { [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 3100 * @param newLength the length of the copy to be returned 3103 * @throws NegativeArraySizeException if <tt>newLength</tt> is negative 3108 public static <T> T[] copyOf(T[] original, int newLength) { argument 3109 return (T[]) copyOf(original, newLength, original.getClass()); 3125 * @param newLength the length of the copy to be returned 3129 * @throws NegativeArraySizeException if <tt>newLength</tt> is negative 3136 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { argument 3139 ? (T[]) new Object[newLength] 3140 : (T[]) Array.newInstance(newType.getComponentType(), newLength); 3142 Math.min(original.length, newLength)); 3163 copyOf(byte[] original, int newLength) argument 3187 copyOf(short[] original, int newLength) argument 3211 copyOf(int[] original, int newLength) argument 3235 copyOf(long[] original, int newLength) argument 3259 copyOf(char[] original, int newLength) argument 3283 copyOf(float[] original, int newLength) argument 3307 copyOf(double[] original, int newLength) argument 3331 copyOf(boolean[] original, int newLength) argument [all...] |
Completed in 685 milliseconds