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

12

/libcore/ojluni/src/main/java/java/util/
H A DQueue.java74 * <td>{@link Queue#peek peek()}</td>
107 * <p>The {@link #element()} and {@link #peek()} methods return, but do
194 * differs from {@link #peek peek} only in that it throws an exception
208 E peek(); method in interface:Queue
H A DStack.java33 * method to <tt>peek</tt> at the top item on the stack, a method to test
84 obj = peek();
98 public synchronized E peek() { method in class:Stack
H A DDeque.java130 * <td>{@link java.util.Queue#peek peek()}</td>
131 * <td>{@link #peek peekFirst()}</td>
156 * <td>{@link #peek peek()}</td>
161 * <p>Note that the {@link #peek peek} method works equally well when
457 * This method differs from {@link #peek peek} only in that it throws an
477 E peek(); method in interface:Deque
[all...]
H A DArrayDeque.java448 * this deque. This method differs from {@link #peek peek} only in
469 public E peek() { method in class:ArrayDeque
H A DPriorityQueue.java44 * {@code remove}, {@code peek}, and {@code element} access the
72 * ({@code peek}, {@code element}, and {@code size}).
349 public E peek() { method in class:PriorityQueue
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAbstractQueueTest.java35 public Integer peek() { return one; } method in class:AbstractQueueTest.Succeed
46 public Integer peek() { return null; } method in class:AbstractQueueTest.Fail
102 * element returns normally if peek succeeds
110 * element throws NSEE if peek returns null
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerInputBuffer.java86 int peek() throws IOException { method in class:DerInputBuffer
365 int peek = pos;
366 while (buf[peek] != 'Z' &&
367 buf[peek] != '+' &&
368 buf[peek] != '-') {
369 peek++;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DDatagramSocketImplTest.java118 protected int peek(InetAddress sender) throws IOException { method in class:MockDatagramSocketImpl
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractQueueTest.java99 public E peek() { method in class:AbstractQueueTest.MockAbstractQueue
236 assertNull(queue.peek());
247 assertNull(queue.peek());
/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/test/java/libcore/java/net/
H A DOldDatagramSocketImplFactoryTest.java173 public int peek(InetAddress arg0) throws IOException { method in class:OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DBlockingDeque.java187 * <td>{@link #peek() peek()}</td>
570 * This method differs from {@link #peek peek} only in that it throws an
589 E peek(); method in interface:BlockingDeque
H A DDelayQueue.java147 if (q.peek() == e) {
193 E first = q.peek();
214 E first = q.peek();
237 if (leader == null && q.peek() != null)
259 E first = q.peek();
288 if (leader == null && q.peek() != null)
304 public E peek() { method in class:DelayQueue
308 return q.peek();
330 E first = q.peek();
H A DConcurrentLinkedQueue.java364 public E peek() { method in class:ConcurrentLinkedQueue
383 * This is yet another variant of poll/peek; here returning the
384 * first node, not element. We could make peek() a wrapper around
H A DLinkedBlockingQueue.java504 public E peek() { method in class:LinkedBlockingQueue
H A DPriorityBlockingQueue.java569 public E peek() { method in class:PriorityBlockingQueue
/libcore/ojluni/src/main/java/java/net/
H A DAbstractPlainDatagramSocketImpl.java154 protected abstract int peek(InetAddress i) throws IOException; method in class:AbstractPlainDatagramSocketImpl
H A DDatagramSocketImpl.java133 protected abstract int peek(InetAddress i) throws IOException; method in class:DatagramSocketImpl
H A DPlainDatagramSocketImpl.java128 protected synchronized int peek(InetAddress i) throws IOException { method in class:PlainDatagramSocketImpl
/libcore/ojluni/src/main/java/java/util/jar/
H A DManifest.java227 if (fis.peek() == ' ') {
238 if (fis.peek() == ' ') {
400 public byte peek() throws IOException { method in class:Manifest.FastInputStream
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoubleStream.java211 * .peek(e -> System.out.println("Filtered value: " + e))
213 * .peek(e -> System.out.println("Mapped value: " + e))
222 DoubleStream peek(DoubleConsumer action); method in interface:DoubleStream
H A DStream.java409 * .peek(e -> System.out.println("Filtered value: " + e))
411 * .peek(e -> System.out.println("Mapped value: " + e))
420 Stream<T> peek(Consumer<? super T> action); method in interface:Stream
H A DDoublePipeline.java317 public final DoubleStream peek(DoubleConsumer action) { method in class:DoublePipeline
H A DIntPipeline.java353 public final IntStream peek(IntConsumer action) { method in class:IntPipeline
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java839 public MockResponse peek() { method in class:HttpsURLConnectionTest.DelegatingDispatcher
840 return delegates.getFirst().peek();
893 public MockResponse peek() { method in class:HttpsURLConnectionTest.ProxyConnectDispatcher
944 public MockResponse peek() { method in class:HttpsURLConnectionTest.SingleRequestDispatcher

Completed in 995 milliseconds

12