/libcore/luni/src/main/java/java/nio/ |
H A D | MappedByteBuffer.java | 42 MappedByteBuffer(MemoryBlock block, int capacity, MapMode mapMode) { argument 43 super(capacity, block);
|
H A D | Buffer.java | 32 * and not greater than capacity.</li> 54 * The capacity of this buffer, which never changes. 56 final int capacity; field in class:Buffer 60 * Limit must be no less than zero and no greater than <code>capacity</code>. 97 Buffer(int elementSizeShift, int capacity, MemoryBlock block) { argument 99 if (capacity < 0) { 100 throw new IllegalArgumentException("capacity < 0: " + capacity); 102 this.capacity = this.limit = capacity; 147 public final int capacity() { method in class:Buffer [all...] |
H A D | CharArrayBuffer.java | 35 private CharArrayBuffer(int capacity, char[] backingArray, int arrayOffset, boolean isReadOnly) { argument 36 super(capacity); 43 CharArrayBuffer buf = new CharArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 60 limit = capacity;
|
H A D | DoubleArrayBuffer.java | 35 private DoubleArrayBuffer(int capacity, double[] backingArray, int arrayOffset, boolean isReadOnly) { argument 36 super(capacity); 43 DoubleArrayBuffer buf = new DoubleArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 60 limit = capacity;
|
H A D | DoubleBuffer.java | 42 * @param capacity 43 * the capacity of the new buffer. 46 * if {@code capacity} is less than zero. 48 public static DoubleBuffer allocate(int capacity) { argument 49 if (capacity < 0) { 50 throw new IllegalArgumentException("capacity < 0: " + capacity); 52 return new DoubleArrayBuffer(new double[capacity]); 73 * {@code start + doubleCount}, capacity will be the length of the array. 95 DoubleBuffer(int capacity) { argument [all...] |
H A D | FloatArrayBuffer.java | 35 private FloatArrayBuffer(int capacity, float[] backingArray, int arrayOffset, boolean isReadOnly) { argument 36 super(capacity); 43 FloatArrayBuffer buf = new FloatArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 61 limit = capacity;
|
H A D | FloatBuffer.java | 41 * @param capacity 42 * the capacity of the new buffer. 45 * if {@code capacity} is less than zero. 47 public static FloatBuffer allocate(int capacity) { argument 48 if (capacity < 0) { 49 throw new IllegalArgumentException("capacity < 0: " + capacity); 51 return new FloatArrayBuffer(new float[capacity]); 72 * {@code start + floatCount}, capacity will be the length of the array. 96 FloatBuffer(int capacity) { argument [all...] |
H A D | IntArrayBuffer.java | 35 private IntArrayBuffer(int capacity, int[] backingArray, int arrayOffset, boolean isReadOnly) { argument 36 super(capacity); 43 IntArrayBuffer buf = new IntArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 60 limit = capacity;
|
H A D | IntBuffer.java | 39 * @param capacity 40 * the capacity of the new buffer. 43 * if {@code capacity} is less than zero. 45 public static IntBuffer allocate(int capacity) { argument 46 if (capacity < 0) { 47 throw new IllegalArgumentException("capacity < 0: " + capacity); 49 return new IntArrayBuffer(new int[capacity]); 70 * {@code start + intCount}, capacity will be the length of the array. 92 IntBuffer(int capacity) { argument [all...] |
H A D | LongArrayBuffer.java | 35 private LongArrayBuffer(int capacity, long[] backingArray, int arrayOffset, boolean isReadOnly) { argument 36 super(capacity); 43 LongArrayBuffer buf = new LongArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 60 limit = capacity;
|
H A D | LongBuffer.java | 41 * @param capacity 42 * the capacity of the new buffer. 45 * if {@code capacity} is less than zero. 47 public static LongBuffer allocate(int capacity) { argument 48 if (capacity < 0) { 49 throw new IllegalArgumentException("capacity < 0: " + capacity); 51 return new LongArrayBuffer(new long[capacity]); 72 * {@code start + longCount}, capacity will be the length of the array. 94 LongBuffer(int capacity) { argument [all...] |
H A D | ShortArrayBuffer.java | 35 private ShortArrayBuffer(int capacity, short[] backingArray, int arrayOffset, boolean isReadOnly) { argument 36 super(capacity); 43 ShortArrayBuffer buf = new ShortArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 60 limit = capacity;
|
H A D | ShortBuffer.java | 41 * @param capacity 42 * the capacity of the new buffer. 45 * if {@code capacity} is less than zero. 47 public static ShortBuffer allocate(int capacity) { argument 48 if (capacity < 0) { 49 throw new IllegalArgumentException("capacity < 0: " + capacity); 51 return new ShortArrayBuffer(new short[capacity]); 72 * {@code start + shortCount}, capacity will be the length of the array. 94 ShortBuffer(int capacity) { argument [all...] |
H A D | ByteArrayBuffer.java | 40 private ByteArrayBuffer(int capacity, byte[] backingArray, int arrayOffset, boolean isReadOnly) { argument 41 super(capacity, null); 45 if (arrayOffset + capacity > backingArray.length) { 47 ", capacity=" + capacity + ", arrayOffset=" + arrayOffset); 52 ByteArrayBuffer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 69 limit = capacity;
|
H A D | ByteBuffer.java | 46 * @param capacity 47 * the capacity of the new buffer 50 * if {@code capacity < 0}. 52 public static ByteBuffer allocate(int capacity) { argument 53 if (capacity < 0) { 54 throw new IllegalArgumentException("capacity < 0: " + capacity); 56 return new ByteArrayBuffer(new byte[capacity]); 62 * @param capacity 63 * the capacity o 68 allocateDirect(int capacity) argument 115 ByteBuffer(int capacity, MemoryBlock block) argument [all...] |
H A D | CharBuffer.java | 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) { argument 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 wil 140 CharBuffer(int capacity) argument [all...] |
H A D | DirectByteBuffer.java | 32 protected DirectByteBuffer(MemoryBlock block, int capacity, int offset, boolean isReadOnly, MapMode mapMode) { argument 33 super(block, capacity, mapMode); 36 if (baseSize >= 0 && (capacity + offset) > baseSize) { 37 throw new IllegalArgumentException("capacity + offset > baseSize"); 47 DirectByteBuffer(long address, int capacity) { argument 48 this(MemoryBlock.wrapFromJni(address, capacity), capacity, 0, false, null); 52 DirectByteBuffer buf = new DirectByteBuffer(other.block, other.capacity(), other.offset, isReadOnly, other.mapMode); 69 limit = capacity;
|
/libcore/luni/src/main/java/java/util/ |
H A D | LinkedHashSet.java | 49 * capacity. 51 * @param capacity 52 * the initial capacity of this {@code LinkedHashSet}. 54 public LinkedHashSet(int capacity) { argument 55 super(new LinkedHashMap<E, HashSet<E>>(capacity)); 60 * capacity and load factor. 62 * @param capacity 63 * the initial capacity. 67 public LinkedHashSet(int capacity, float loadFactor) { argument 68 super(new LinkedHashMap<E, HashSet<E>>(capacity, loadFacto 88 createBackingMap(int capacity, float loadFactor) argument [all...] |
H A D | HashSet.java | 44 * Constructs a new instance of {@code HashSet} with the specified capacity. 46 * @param capacity 47 * the initial capacity of this {@code HashSet}. 49 public HashSet(int capacity) { argument 50 this(new HashMap<E, HashSet<E>>(capacity)); 54 * Constructs a new instance of {@code HashSet} with the specified capacity 57 * @param capacity 58 * the initial capacity. 62 public HashSet(int capacity, float loadFactor) { argument 63 this(new HashMap<E, HashSet<E>>(capacity, loadFacto 210 createBackingMap(int capacity, float loadFactor) argument [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | StrictLineReader.java | 63 * Constructs a new {@code StrictLineReader} with the default capacity and charset. 73 * Constructs a new {@code LineReader} with the specified capacity and the default charset. 76 * @param capacity the capacity of the buffer. 78 * @throws IllegalArgumentException for negative or zero {@code capacity}. 80 public StrictLineReader(InputStream in, int capacity) { argument 81 this(in, capacity, StandardCharsets.US_ASCII); 85 * Constructs a new {@code LineReader} with the specified charset and the default capacity. 98 * Constructs a new {@code LineReader} with the specified capacity and charset. 101 * @param capacity th 108 StrictLineReader(InputStream in, int capacity, Charset charset) argument [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | ListOfTypes.java | 30 ListOfTypes(int capacity) { argument 31 types = new ArrayList<Type>(capacity);
|
/libcore/luni/src/main/java/java/lang/ |
H A D | StringBuilder.java | 50 * Constructs an instance with an initial capacity of {@code 16}. 52 * @see #capacity() 58 * Constructs an instance with the specified capacity. 60 * @param capacity 61 * the initial capacity to use. 63 * if the specified {@code capacity} is negative. 64 * @see #capacity() 66 public StringBuilder(int capacity) { argument 67 super(capacity); 72 * specified {@code CharSequence}. The capacity o [all...] |
H A D | ThreadLocal.java | 241 * Creates a new, empty table with the given capacity. 243 private void initializeTable(int capacity) { argument 244 this.table = new Object[capacity * 2]; 247 this.maximumLoad = capacity * 2 / 3; // 2/3 306 int capacity = table.length >> 1; 308 // Default to the same capacity. This will create a table of the 314 int newCapacity = capacity; 316 if (size > (capacity >> 1)) { 319 newCapacity = capacity * 2;
|
H A D | AbstractStringBuilder.java | 78 AbstractStringBuilder(int capacity) { argument 79 if (capacity < 0) { 80 throw new NegativeArraySizeException(Integer.toString(capacity)); 82 value = new char[capacity]; 186 * @return the capacity 190 public int capacity() { method in class:AbstractStringBuilder 267 * Ensures that this object has a minimum capacity available before 270 * {@link #capacity()}, then the capacity will be increased to the largest 271 * value of either the {@code minimumCapacity} or the current capacity [all...] |
H A D | StringBuffer.java | 57 * Constructs a new StringBuffer using the default capacity which is 16. 63 * Constructs a new StringBuffer using the specified capacity. 65 * @param capacity 66 * the initial capacity. 68 public StringBuffer(int capacity) { argument 69 super(capacity); 74 * string. The capacity of the new buffer will be the length of the 75 * {@code String} plus the default capacity. 88 * specified {@code CharSequence}. The capacity of the new buffer will be 89 * the length of the {@code CharSequence} plus the default capacity [all...] |