Home
last modified time | relevance | path

Searched refs:maxElements (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DDelayQueue.java367 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()
DBlockingQueue.java376 int drainTo(Collection<? super E> c, int maxElements); in drainTo() argument
DLinkedBlockingQueue.java703 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()
DPriorityBlockingQueue.java730 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()
DScheduledThreadPoolExecutor.java1238 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()
DArrayBlockingQueue.java665 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()
DLinkedBlockingDeque.java742 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()
DSynchronousQueue.java1133 public int drainTo(Collection<? super E> c, int maxElements) { in drainTo() argument
1139 for (E e; n < maxElements && (e = poll()) != null;) { in drainTo()
DLinkedTransferQueue.java1387 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/
DLinkedBlockingQueue.java152 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() argument
DPriorityBlockingQueue.java164 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() argument
DLinkedBlockingDeque.java218 public int drainTo(java.util.Collection<? super E> c, int maxElements) { in drainTo() argument