Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 237 for Dapper (0.16 sec)

  1. android/guava/src/com/google/common/graph/Traverser.java

          }
        };
      }
    
      /**
       * Returns an unmodifiable {@code Iterable} over the nodes reachable from {@code startNode}, in
       * the order of a depth-first pre-order traversal. "Pre-order" implies that nodes appear in the
       * {@code Iterable} in the order in which they are first visited.
       *
       * <p><b>Example:</b> The following graph with {@code startNode} {@code a} would return nodes in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 30 20:12:45 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

            // Some of this is fixed in jdk11 (see https://bugs.openjdk.java.net/browse/JDK-8198692) but
            // not all.  See the test cases for examples on how this can happen.
            try {
              ((Thread) currentRunner).interrupt();
            } finally {
              Runnable prev = getAndSet(DONE);
              if (prev == PARKED) {
                LockSupport.unpark((Thread) currentRunner);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharSourceTest.java

        try {
          in.copyTo(out);
          fail();
        } catch (IOException expected) {
          return CloserTest.getSuppressed(expected).length;
        }
        throw new AssertionError(); // can't happen
      }
    
      private static CharSource newNormalCharSource() {
        return CharSource.wrap("ABC");
      }
    
      private static CharSink newNormalCharSink() {
        return new CharSink() {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

              interrupted = true;
            }
          }
        } finally {
          if (interrupted) {
            Thread.currentThread().interrupt();
          }
        }
      }
    
      // TODO(user): Support Sleeper somehow (wrapper or interface method)?
      /** Invokes {@code unit.}{@link TimeUnit#sleep(long) sleep(sleepFor)} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/Striped64.java

       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
       * than CPUs, supposing that each thread were bound to a CPU,
       * there would exist a perfect hash function mapping threads to
       * slots that eliminates collisions. When we reach capacity, we
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/SuppliersTest.java

        for (int i = 0; i < 2; i++) {
          try {
            memoizedSupplier.get();
            fail("failed to throw NullPointerException");
          } catch (NullPointerException e) {
            // this is what should happen
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testMemoizeNonSerializable() throws Exception {
        CountingSupplier countingSupplier = new CountingSupplier();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

           *   or it had already failed. (It couldn't have completed *successfully* or even had
           *   setFuture called on it: Neither of those can happen until we've finished processing all
           *   the completed inputs. And we're still processing at least one input, the one that
           *   triggered handleException.)
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        for (int i = 0; i < 2; i++) {
          try {
            memoizedSupplier.get();
            fail("failed to throw NullPointerException");
          } catch (NullPointerException e) {
            // this is what should happen
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testMemoizeNonSerializable() throws Exception {
        CountingSupplier countingSupplier = new CountingSupplier();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        try {
          in.copyTo(out);
          fail();
        } catch (IOException expected) {
          return CloserTest.getSuppressed(expected).length;
        }
        throw new AssertionError(); // can't happen
      }
    
      private static ByteSource newNormalByteSource() {
        return ByteSource.wrap(new byte[10]);
      }
    
      private static ByteSink newNormalByteSink() {
        return new ByteSink() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        }
    
        /**
         * Sets the number of occurrences of {@code element} to {@code newCount}, but only if the count
         * is currently {@code oldCount}. If {@code element} does not appear in the multiset exactly
         * {@code oldCount} times, no changes will be made.
         *
         * @return {@code true} if the change was successful. This usually indicates that the multiset
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
Back to top