Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 382 for bere (0.14 sec)

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

      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> Collector<T, ?, T> onlyElement() {
        return (Collector) ONLY_ELEMENT;
      }
    
      /**
       * This atrocity is here to let us report several of the elements in the stream if there were more
       * than one, not just two.
       */
      private static final class ToOptionalState {
        static final int MAX_EXTRAS = 4;
    
        @CheckForNull Object element;
        List<Object> extras;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 08 18:58:42 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

       * tasks would be called recursively. Here, we detect that the delegate executor is executing
       * inline, and maintain a queue to dispatch tasks iteratively. There is one instance of this class
       * per call to submit() or submitAsync(), and each instance supports only one call to execute().
       *
       * <p>This class would certainly be simpler and easier to reason about if it were built with
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      private static final long K1 = 0x0f0e0d0c0b0a0908L;
      private static final HashFunction SIP_WITH_KEY = Hashing.sipHash24(K0, K1);
      private static final HashFunction SIP_WITHOUT_KEY = Hashing.sipHash24();
    
      // These constants were originally ported from https://www.131002.net/siphash/siphash24.c. See:
      // https://github.com/nahi/siphash-java-inline/blob/master/src/test/java/org/jruby/util/SipHashInlineTest.java
      private static final long[] EXPECTED =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

       * behavior of futures so that you can contrast the next test with it.
       */
      public void testRegularFutureInterrupted() throws ExecutionException {
    
        /*
         * Here's the order of events that we want.
         *
         * 1. The client thread begins to block on a get() call to a future.
         * 2. The client thread is interrupted sometime before the result would be
         *   available.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/HostAndPort.java

     *     .withDefaultPort(80)
     *     .requireBracketsForIPv6();
     * hp.getHost();   // returns "2001:db8::1"
     * hp.getPort();   // returns 80
     * hp.toString();  // returns "[2001:db8::1]:80"
     * </pre>
     *
     * <p>Here are some examples of recognized formats:
     *
     * <ul>
     *   <li>example.com
     *   <li>example.com:80
     *   <li>192.0.2.1
     *   <li>192.0.2.1:80
     *   <li>[2001:db8::1] - {@link #getHost()} omits brackets
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(TimeUnit.NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
          // here is where you would do something
          total += (System.nanoTime() - start);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(TimeUnit.NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
          // here is where you would do something
          total += (System.nanoTime() - start);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/RemovalNotification.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A notification of the removal of a single entry. The key and/or value may be null if they were
     * already garbage collected.
     *
     * <p>Like other {@code Entry} instances associated with {@code CacheBuilder}, this class holds
     * strong references to the key and value, regardless of the type of references the cache may be
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

        assertEquals("../..", simplifyPath("./.././../"));
      }
    
      /*
       * We co-opt some URI resolution tests for our purposes.
       * Some of the tests have queries and anchors that are a little silly here.
       */
    
      /** http://gbiv.com/protocols/uri/rfc/rfc2396.html#rfc.section.C.1 */
      public void testRfc2396Normal() {
        assertEquals("/a/b/c/g", simplifyPath("/a/b/c/g"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 19 14:00:24 GMT 2016
    - 11K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

        assertEquals("../..", simplifyPath("./.././../"));
      }
    
      /*
       * We co-opt some URI resolution tests for our purposes.
       * Some of the tests have queries and anchors that are a little silly here.
       */
    
      /** http://gbiv.com/protocols/uri/rfc/rfc2396.html#rfc.section.C.1 */
      public void testRfc2396Normal() {
        assertEquals("/a/b/c/g", simplifyPath("/a/b/c/g"));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 11K bytes
    - Viewed (0)
Back to top