Searched defs:peek (Results 1 - 25 of 26) sorted by relevance

12

/libcore/luni/src/main/java/java/util/
H A DQueue.java45 * <td>{@link #peek peek()}</td>
78 * <p>The {@link #element()} and {@link #peek()} methods return, but do
173 * differs from {@link #peek peek} only in that it throws an exception
187 E peek(); method in interface:Queue
H A DStack.java53 public synchronized E peek() { method in class:Stack
67 * @see #peek
88 * @see #peek
H A DDeque.java104 * <td>{@link java.util.Queue#peek peek()}</td>
105 * <td>{@link #peek peekFirst()}</td>
130 * <td>{@link #peek peek()}</td>
135 * <p>Note that the {@link #peek peek} method works equally well when
426 * This method differs from {@link #peek peek} only in that it throws an
446 E peek(); method in interface:Deque
[all...]
H A DArrayDeque.java432 * this deque. This method differs from {@link #peek peek} only in
453 public E peek() { method in class:ArrayDeque
H A DPriorityQueue.java216 public E peek() { method in class:PriorityQueue
H A DLinkedList.java902 public E peek() { method in class:LinkedList
H A DFormatter.java2294 private int peek() { method in class:Formatter.FormatSpecifierParser
2312 int ch = peek();
2315 if (peek() == '$') {
2339 while (token.setFlag(peek())) {
2344 ch = peek();
2358 int ch = peek();
2368 int ch = peek();
2402 while (Character.isDigit(peek())) {
H A DCollections.java2763 @Override public E peek() { method in class:Collections.AsLIFOQueue
/libcore/json/src/main/java/org/json/
H A DJSONStringer.java189 Scope context = peek();
205 private Scope peek() throws JSONException { method in class:JSONStringer
384 Scope context = peek();
404 Scope context = peek();
/libcore/luni/src/main/java/java/net/
H A DDatagramSocketImpl.java189 protected abstract int peek(InetAddress sender) throws IOException; method in class:DatagramSocketImpl
H A DPlainDatagramSocketImpl.java151 protected int peek(InetAddress sender) throws IOException { method in class:PlainDatagramSocketImpl
/libcore/luni/src/main/java/java/util/concurrent/
H A DBlockingDeque.java151 * <td>{@link #peek() peek()}</td>
534 * This method differs from {@link #peek peek} only in that it throws an
553 E peek(); method in interface:BlockingDeque
H A DDelayQueue.java114 if (q.peek() == e) {
160 E first = q.peek();
182 E first = q.peek();
204 if (leader == null && q.peek() != null)
226 E first = q.peek();
254 if (leader == null && q.peek() != null)
270 public E peek() { method in class:DelayQueue
274 return q.peek();
296 E first = q.peek();
H A DConcurrentLinkedQueue.java351 public E peek() { method in class:ConcurrentLinkedQueue
370 * This is yet another variant of poll/peek; here returning the
371 * first node, not element. We could make peek() a wrapper around
H A DLinkedBlockingQueue.java475 public E peek() { method in class:LinkedBlockingQueue
H A DPriorityBlockingQueue.java526 public E peek() { method in class:PriorityBlockingQueue
H A DLinkedBlockingDeque.java658 * this deque. This method differs from {@link #peek peek} only in that
670 public E peek() { method in class:LinkedBlockingDeque
H A DArrayBlockingQueue.java65 /** items index for next take, poll, peek or remove */
395 public E peek() { method in class:ArrayBlockingQueue
H A DConcurrentLinkedDeque.java1002 public E peek() { return peekFirst(); } method in class:ConcurrentLinkedDeque
H A DLinkedTransferQueue.java754 * null if none. Used by peek.
1179 public E peek() { method in class:LinkedTransferQueue
H A DScheduledThreadPoolExecutor.java484 Delayed head = (Delayed) super.getQueue().peek();
966 public RunnableScheduledFuture<?> peek() { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
H A DSynchronousQueue.java21 * <tt>peek</tt> at a synchronous queue because an element is only
1027 public E peek() { method in class:SynchronousQueue
/libcore/luni/src/test/java/libcore/java/net/
H A DOldDatagramSocketImplFactoryTest.java173 public int peek(InetAddress arg0) throws IOException { method in class:OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
H A DOldDatagramSocketTest.java290 // PlainDatagramSocketImpl.peek()
1073 protected int peek(InetAddress arg0) throws IOException {
2079 protected int peek(InetAddress arg0) throws IOException { method in class:OldDatagramSocketTest.TestDatagramSocketImpl
/libcore/luni/src/test/java/tests/api/java/util/
H A DAbstractQueueTest.java99 public E peek() { method in class:AbstractQueueTest.MockAbstractQueue
236 assertNull(queue.peek());
247 assertNull(queue.peek());

Completed in 451 milliseconds

12