Lines Matching refs:capacity
49 * <p> The optional capacity bound constructor argument serves as a
50 * way to prevent excessive expansion. The capacity, if unspecified,
53 * deque above capacity.
152 private final int capacity;
164 * Creates a {@code LinkedBlockingDeque} with a capacity of
172 * Creates a {@code LinkedBlockingDeque} with the given (fixed) capacity.
174 * @param capacity the capacity of this deque
175 * @throws IllegalArgumentException if {@code capacity} is less than 1
177 public LinkedBlockingDeque(int capacity) {
178 if (capacity <= 0) throw new IllegalArgumentException();
179 this.capacity = capacity;
183 * Creates a {@code LinkedBlockingDeque} with a capacity of
216 if (count >= capacity)
235 if (count >= capacity)
621 * violate capacity restrictions. When using a capacity-restricted deque,
627 * time due to capacity restrictions
706 * blocking. This is always equal to the initial capacity of this deque
718 return capacity - count;
838 * collection, especially when count is close to capacity.
1156 * @serialData The capacity (int), followed by elements (each an
1165 // Write out capacity and any hidden stuff