Searched refs:maxElements (Results 1 – 12 of 12) sorted by relevance
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | DelayQueue.java | 367 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument 372 if (maxElements <= 0) in drainTo() 378 for (E e; n < maxElements && (e = peekExpired()) != null;) { in drainTo()
|
D | BlockingQueue.java | 376 int drainTo(Collection<? super E> c, int maxElements); in drainTo() argument
|
D | LinkedBlockingQueue.java | 703 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument 708 if (maxElements <= 0) in drainTo() 714 int n = Math.min(maxElements, count.get()); in drainTo()
|
D | PriorityBlockingQueue.java | 730 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument 735 if (maxElements <= 0) in drainTo() 740 int n = Math.min(size, maxElements); in drainTo()
|
D | ScheduledThreadPoolExecutor.java | 1238 public int drainTo(Collection<? super Runnable> c, int maxElements) { in drainTo() argument 1243 if (maxElements <= 0) in drainTo() 1250 while (n < maxElements && (first = peekExpired()) != null) { in drainTo()
|
D | ArrayBlockingQueue.java | 665 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument 669 if (maxElements <= 0) in drainTo() 675 int n = Math.min(maxElements, count); in drainTo()
|
D | LinkedBlockingDeque.java | 742 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument 747 if (maxElements <= 0) in drainTo() 752 int n = Math.min(maxElements, count); in drainTo()
|
D | SynchronousQueue.java | 1133 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument 1139 for (E e; n < maxElements && (e = poll()) != null;) { in drainTo()
|
D | LinkedTransferQueue.java | 1387 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument 1393 for (E e; n < maxElements && (e = poll()) != null;) { in drainTo()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | LinkedBlockingQueue.java | 152 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() argument
|
D | PriorityBlockingQueue.java | 164 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() argument
|
D | LinkedBlockingDeque.java | 218 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() argument
|