Lines Matching defs:capacity
44 * @param capacity
45 * the capacity of the new buffer.
48 * if {@code capacity} is less than zero.
50 public static CharBuffer allocate(int capacity) {
51 if (capacity < 0) {
52 throw new IllegalArgumentException("capacity < 0: " + capacity);
54 return new CharArrayBuffer(new char[capacity]);
75 * {@code start + charCount}, capacity will be the length of the array.
115 * {@code end}, capacity will be the length of the char sequence. The new
140 CharBuffer(int capacity) {
141 super(1, capacity, null);
156 * buffer is read-only itself. The new buffer's position, limit, capacity
192 * {@code remaining()}; the limit is set to capacity; the mark is cleared.
234 * The duplicated buffer's initial position, limit, capacity and mark are
249 * the same. Position, limit, capacity and mark are not considered.
350 * position, limit, capacity and mark don't affect the hash code.
591 * The sliced buffer's capacity will be this buffer's {@code remaining()},
593 * The new buffer's position will be 0, limit will be its capacity, and its
608 * be {@code position() + end}, capacity will be the same as this buffer.