Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for compile (0.28 sec)

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

                return "hi";
              }
            };
    
        // We'd like for all the following to compile.
        ListenableFuture<String> unused;
    
        // Compiles:
        unused = whenAllComplete(futureA, futureB).call(combiner, directExecutor());
    
        // Does not compile:
        // unused = whenAllComplete(futures).call(combiner);
    
        // Workaround for the above:
    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-tests/test/com/google/common/util/concurrent/FuturesTest.java

                return "hi";
              }
            };
    
        // We'd like for all the following to compile.
        ListenableFuture<String> unused;
    
        // Compiles:
        unused = whenAllComplete(futureA, futureB).call(combiner, directExecutor());
    
        // Does not compile:
        // unused = whenAllComplete(futures).call(combiner);
    
        // Workaround for the above:
    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)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertEquals(liveCount, countLiveEntries(map, 0));
        ImmutableMap<Object, Object> originalMap = ImmutableMap.copyOf(map);
        assertEquals(liveCount, originalMap.size());
        // can't compare map contents until cleanup occurs
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
            segment.expand();
          }
          assertEquals(i, segment.table.length());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertEquals(liveCount, countLiveEntries(map, 0));
        ImmutableMap<Object, Object> originalMap = ImmutableMap.copyOf(map);
        assertEquals(liveCount, originalMap.size());
        // can't compare map contents until cleanup occurs
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
            segment.expand();
          }
          assertEquals(i, segment.table.length());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

      }
    
      @Override
      @CheckForNull
      public V compute(
          K key, BiFunction<? super K, ? super @Nullable V, ? extends @Nullable V> function) {
        checkNotNull(key);
        checkNotNull(function);
        int hash = hash(key);
        return segmentFor(hash).compute(key, hash, function);
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     *
     * Each derivation can capture the next value or any intermediate objects for later closing.
     *
     * <p>A step can be the input to at most one derived step. Once you transform its value, catch its
     * exception, or combine it with others, you cannot do anything else with it, including declare it
     * to be the last step of the pipeline.
     *
     * <h4>Transforming</h4>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Maps.java

          TreeMap<K, V> newTreeMap(@CheckForNull Comparator<C> comparator) {
        // Ideally, the extra type parameter "C" shouldn't be necessary. It is a
        // work-around of a compiler type inference quirk that prevents the
        // following code from being compiled:
        // Comparator<Class<?>> comparator = null;
        // Map<Class<? extends Throwable>, String> map = newTreeMap(comparator);
        return new TreeMap<>(comparator);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

        abstract <K, V> ValueReference<K, V> referenceValue(
            Segment<K, V> segment, ReferenceEntry<K, V> entry, V value, int weight);
    
        /**
         * Returns the default equivalence strategy used to compare and hash keys or values referenced
         * at this strength. This strategy will be used unless the user explicitly specifies an
         * alternate strategy.
         */
        abstract Equivalence<Object> defaultEquivalence();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top