Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 434 for results (0.32 sec)

  1. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              // Test timed get before we've completed any delayed futures.
              try {
                List<String> result = future.get(0, MILLISECONDS);
                assertTrue("Got " + result, asList("a", null).containsAll(result));
              } catch (CancellationException e) {
                assertTrue(merger == Merger.allMerger);
                inputs.assertHasImmediateCancel(iFuture, jFuture, e);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DiscreteDomain.java

          checkNonnegative(distance, "distance");
          long result = origin + distance;
          if (result < 0) {
            checkArgument(origin < 0, "overflow");
          }
          return result;
        }
    
        @Override
        public long distance(Long start, Long end) {
          long result = end - start;
          if (end > start && result < 0) { // overflow
            return Long.MAX_VALUE;
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

       * a POJO.
       *
       * @param input The future to transform
       * @param function A Function to transform the results of the provided future to the results of
       *     the returned future.
       * @param executor Executor to run the function in.
       * @return A future that holds result of the transformation.
       * @since 9.0 (in 2.0 as {@code compose})
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/NetworkMutationTest.java

        testNetworkMutation(NetworkBuilder.undirected());
      }
    
      private static void testNetworkMutation(NetworkBuilder<? super Integer, Object> networkBuilder) {
        Random gen = new Random(42); // Fixed seed so test results are deterministic.
    
        for (int trial = 0; trial < NUM_TRIALS; ++trial) {
          MutableNetwork<Integer, Object> network =
              networkBuilder.allowsParallelEdges(true).allowsSelfLoops(true).build();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/LinkedListMultimap.java

        public V getValue() {
          return value;
        }
    
        @Override
        @ParametricNullness
        public V setValue(@ParametricNullness V newValue) {
          V result = value;
          this.value = newValue;
          return result;
        }
      }
    
      private static class KeyList<K extends @Nullable Object, V extends @Nullable Object> {
        Node<K, V> head;
        Node<K, V> tail;
        int count;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/BiMap.java

       */
      @CanIgnoreReturnValue
      @CheckForNull
      V forcePut(@ParametricNullness K key, @ParametricNullness V value);
    
      // Bulk Operations
    
      /**
       * {@inheritDoc}
       *
       * <p><b>Warning:</b> the results of calling this method may vary depending on the iteration order
       * of {@code map}.
       *
       * @throws IllegalArgumentException if an attempt to {@code put} any entry fails. Note that some
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              // Test timed get before we've completed any delayed futures.
              try {
                List<String> result = future.get(0, MILLISECONDS);
                assertTrue("Got " + result, asList("a", null).containsAll(result));
              } catch (CancellationException e) {
                assertTrue(merger == Merger.allMerger);
                inputs.assertHasImmediateCancel(iFuture, jFuture, e);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

      }
    
      /**
       * Pre-defined {@link Policy} implementations.
       *
       * @since 13.0
       */
      public enum Policies implements Policy {
        /**
         * When potential deadlock is detected, this policy results in the throwing of the {@code
         * PotentialDeadlockException} indicating the potential deadlock, which includes stack traces
         * illustrating the cycle in lock acquisition order.
         */
        THROW {
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/EmptyImmutableListMultimap.java

        super(ImmutableMap.<Object, ImmutableList<Object>>of(), 0);
      }
    
      /*
       * TODO(b/242884182): Figure out why this helps produce the same class file when we compile most
       * of common.collect a second time with the results of the first compilation on the classpath. Or
       * just back this out once we stop doing that (which we'll do after our internal GWT setup
       * changes).
       */
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 18 16:48:17 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        Map<Object, Object> result = cache.getAll(asList(lookupKeys));
        assertThat(result.keySet()).containsExactlyElementsIn(asList(lookupKeys));
        for (Entry<Object, Object> entry : result.entrySet()) {
          Object key = entry.getKey();
          Object value = entry.getValue();
          assertSame(value, result.get(key));
          assertNull(result.get(value));
          assertSame(value, cache.asMap().get(key));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
Back to top