Searched refs:numElements (Results 1 – 4 of 4) sorted by relevance
47 public ArrayDeque(int numElements) { in ArrayDeque() argument55 private void allocateElements(int numElements) { in allocateElements() argument
128 private void allocateElements(int numElements) { in allocateElements() argument132 if (numElements >= initialCapacity) { in allocateElements()133 initialCapacity = numElements; in allocateElements()187 public ArrayDeque(int numElements) { in ArrayDeque() argument188 allocateElements(numElements); in ArrayDeque()
44 public ArrayDeque(int numElements) { throw new RuntimeException("Stub!"); } in ArrayDeque() argument
940 protected final long acquirePermits(long numElements) { in acquirePermits() argument944 assert numElements > 0; in acquirePermits() local948 return unlimited ? numElements : 0; in acquirePermits()949 grabbing = Math.min(remainingPermits, numElements); in acquirePermits()954 return Math.max(numElements - grabbing, 0); in acquirePermits()