Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for queryId (0.2 sec)

  1. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

      public FakeTicker advance(Duration duration) {
        return advance(duration.toNanos());
      }
    
      /**
       * Sets the increment applied to the ticker whenever it is queried.
       *
       * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when
       * queried.
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

      public ImmutableMapFloodingTest() {
        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    
      /** All the ways to create an ImmutableMap. */
      enum ConstructionPathway implements Construction<Map<Object, Object>> {
        COPY_OF_MAP {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/Cache.java

       * unprivileged user may return a resource accessible only to a privileged user making a similar
       * call. To prevent this problem, create a key object that includes all values that affect the
       * result of the query. Or use {@code LoadingCache.get(K)}, which lacks the ability to refer to
       * state other than that in the key.
       *
       * <p><b>Warning:</b> as with {@link CacheLoader#load}, {@code loader} <b>must not</b> return
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 7.9K bytes
    - Viewed (1)
  4. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

            }
          };
        }
    
        static final QueryOp<Map<Object, Object>> MAP_GET =
            QueryOp.create("Map.get", Map::get, Math::log);
    
        @SuppressWarnings("ReturnValueIgnored")
        static final QueryOp<Set<Object>> SET_CONTAINS =
            QueryOp.create("Set.contains", Set::contains, Math::log);
    
        abstract void apply(T collection, Object query);
    
        abstract double expectedAsymptotic(int n);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/CompactHashMapFloodingTest.java

      public CompactHashMapFloodingTest() {
        super(
            ImmutableList.of(Construction.mapFromKeys(CompactHashMap::create)),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

              assertEquals(
                  ImmutableList.copyOf(asMap.entrySet()).reverse(),
                  ImmutableList.copyOf(descendingMap.entrySet()));
    
              for (Range<Integer> query : RANGES) {
                assertEquals(expectedAsMap.get(query), asMap.get(query));
              }
            }
          }
        }
      }
    
    
      public void testSubRangeMap() {
        for (Range<Integer> range1 : RANGES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractMultiset.java

     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class AbstractMultiset<E extends @Nullable Object> extends AbstractCollection<E>
        implements Multiset<E> {
      // Query Operations
    
      @Override
      public boolean isEmpty() {
        return entrySet().isEmpty();
      }
    
      @Override
      public boolean contains(@CheckForNull Object element) {
        return count(element) > 0;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     * Futures.addCallback}.) Still, direct {@code addListener} calls are occasionally useful:
     *
     * <pre>{@code
     * final String name = ...;
     * inFlight.add(name);
     * ListenableFuture<Result> future = service.query(name);
     * future.addListener(new Runnable() {
     *   public void run() {
     *     processedCount.incrementAndGet();
     *     inFlight.remove(name);
     *     lastProcessed.set(name);
     *     logger.info("Done with {0}", name);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/Cache.java

       * unprivileged user may return a resource accessible only to a privileged user making a similar
       * call. To prevent this problem, create a key object that includes all values that affect the
       * result of the query. Or use {@code LoadingCache.get(K)}, which lacks the ability to refer to
       * state other than that in the key.
       *
       * <p><b>Warning:</b> as with {@link CacheLoader#load}, {@code loader} <b>must not</b> return
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                .collect(ImmutableList.toImmutableList()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create("BiMap.get", BiMap::get, Math::log),
                QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log)));
      }
    
      /** All the ways to create an ImmutableBiMap. */
      enum ConstructionPathway {
        COPY_OF_MAP {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
Back to top