Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for peek (0.16 sec)

  1. android/guava/src/com/google/common/collect/Iterators.java

       *     Iterators.peekingIterator(Iterators.forArray("a", "b"));
       * String a1 = peekingIterator.peek(); // returns "a"
       * String a2 = peekingIterator.peek(); // also returns "a"
       * String a3 = peekingIterator.next(); // also returns "a"
       * }</pre>
       *
       * <p>Any structural changes to the underlying iteration (aside from those performed by the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> nonpeek = Lists.newArrayList("a", "b", "c").iterator();
        PeekingIterator<String> peek = Iterators.peekingIterator(nonpeek);
        assertNotSame(peek, nonpeek);
        assertSame(peek, Iterators.peekingIterator(peek));
        assertSame(peek, Iterators.peekingIterator((Iterator<String>) peek));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> nonpeek = Lists.newArrayList("a", "b", "c").iterator();
        PeekingIterator<String> peek = Iterators.peekingIterator(nonpeek);
        assertNotSame(peek, nonpeek);
        assertSame(peek, Iterators.peekingIterator(peek));
        assertSame(peek, Iterators.peekingIterator((Iterator<String>) peek));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Iterators.java

       *     Iterators.peekingIterator(Iterators.forArray("a", "b"));
       * String a1 = peekingIterator.peek(); // returns "a"
       * String a2 = peekingIterator.peek(); // also returns "a"
       * String a3 = peekingIterator.next(); // also returns "a"
       * }</pre>
       *
       * <p>Any structural changes to the underlying iteration (aside from those performed by the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        } catch (ExecutionException expected) {
                        }
                        try {
                          peeker.getDone(nonInput);
                          fail("Peeker should not be able to peek into non-input ClosingFuture.");
                        } catch (IllegalArgumentException expected) {
                        }
                        capturedPeeker.set(peeker);
                        return closeable2;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        } catch (ExecutionException expected) {
                        }
                        try {
                          peeker.getDone(nonInput);
                          fail("Peeker should not be able to peek into non-input ClosingFuture.");
                        } catch (IllegalArgumentException expected) {
                        }
                        capturedPeeker.set(peeker);
                        return closeable2;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

        public boolean offer(E e) {
          synchronized (mutex) {
            return delegate().offer(e);
          }
        }
    
        @Override
        @CheckForNull
        public E peek() {
          synchronized (mutex) {
            return delegate().peek();
          }
        }
    
        @Override
        @CheckForNull
        public E poll() {
          synchronized (mutex) {
            return delegate().poll();
          }
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

                } catch (e: IOException) {
                  throw RuntimeException(e)
                }
              }
              return result
            }
    
            override fun peek(): MockResponse = queueDispatcher.peek()
    
            override fun shutdown() {
              queueDispatcher.shutdown()
            }
          }
        client =
          client.newBuilder()
            .proxy(server.toProxyAddress())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

            }
    
            private <P> ActivationFrame nextFrame(String property, Function<P, InputLocationTracker> child) {
                @SuppressWarnings("unchecked")
                final Optional<P> parent = (Optional<P>) stk.peek().parent;
                return new ActivationFrame(property, parent.map(child));
            }
    
            @Override
            public Activation transformActivation(Activation target) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  10. cmd/object-api-multipart_test.go

    		{bucketNames[2], "minio-object", objectNames[1], "", "", 10, listMultipartResults[34], nil, true},
    	}
    
    	for i, testCase := range testCases {
    		// fmt.Println(i+1, testCase) // uncomment to peek into the test cases.
    		actualResult, actualErr := obj.ListMultipartUploads(context.Background(), testCase.bucket, testCase.prefix, testCase.keyMarker, testCase.uploadIDMarker, testCase.delimiter, testCase.maxUploads)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
Back to top