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

12

/libcore/ojluni/src/main/java/java/util/
H A DQueue.java73 * <td>{@link Queue#peek peek()}</td>
106 * <p>The {@link #element()} and {@link #peek()} methods return, but do
193 * differs from {@link #peek peek} only in that it throws an exception
207 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.java132 * <td>{@link java.util.Queue#peek peek()}</td>
133 * <td>{@link #peek peekFirst()}</td>
158 * <td>{@link #peek peek()}</td>
163 * <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.java447 * this deque. This method differs from {@link #peek peek} only in
468 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.java84 int peek() throws IOException { method in class:DerInputBuffer
358 int peek = pos;
359 while (buf[peek] != 'Z' &&
360 buf[peek] != '+' &&
361 buf[peek] != '-') {
362 peek++;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DDatagramSocketImplTest.java111 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/main/java/java/util/concurrent/
H A DBlockingDeque.java158 * <td>{@link #peek() peek()}</td>
541 * This method differs from {@link #peek peek} only in that it throws an
560 E peek(); method in interface:BlockingDeque
H A DDelayQueue.java118 if (q.peek() == e) {
164 E first = q.peek();
185 E first = q.peek();
208 if (leader == null && q.peek() != null)
230 E first = q.peek();
259 if (leader == null && q.peek() != null)
275 public E peek() { method in class:DelayQueue
279 return q.peek();
301 E first = q.peek();
H A DConcurrentLinkedQueue.java335 public E peek() { method in class:ConcurrentLinkedQueue
354 * This is yet another variant of poll/peek; here returning the
355 * 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.java540 public E peek() { method in class:PriorityBlockingQueue
/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/net/
H A DDatagramSocketImpl.java113 protected abstract int peek(InetAddress i) throws IOException; method in class:DatagramSocketImpl
H A DPlainDatagramSocketImpl.java46 protected synchronized native int peek(InetAddress i) throws IOException; method in class:PlainDatagramSocketImpl
H A DAbstractPlainDatagramSocketImpl.java139 protected abstract int peek(InetAddress i) throws IOException; method in class:AbstractPlainDatagramSocketImpl
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValueReader.java76 public int peek() { method in class:EncodedValueReader
222 switch (peek()) {
282 if (peek() != expected) {
284 String.format("Expected %x but was %x", expected, peek()));
/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
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java837 public MockResponse peek() { method in class:HttpsURLConnectionTest.DelegatingDispatcher
838 return delegates.getFirst().peek();
891 public MockResponse peek() { method in class:HttpsURLConnectionTest.ProxyConnectDispatcher
942 public MockResponse peek() { method in class:HttpsURLConnectionTest.SingleRequestDispatcher

Completed in 4892 milliseconds

12