Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for parameters (0.27 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

        /**
         * Copies an entry, assigning it a new {@code next} entry.
         *
         * @param original the entry to copy. But avoid calling {@code getKey} on it: Instead, use the
         *     {@code key} parameter. That way, we prevent the key from being garbage collected in the
         *     case of weak keys. If we create a new entry with a key that is null at construction time,
    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)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      // catching() uses a plain Function, so there's no testCatching_nullInsteadOfFuture().
    
      // Some tests of the exceptionType parameter:
    
      public void testCatching_Throwable() throws Exception {
        Function<Throwable, Integer> fallback = functionReturningOne();
        ListenableFuture<Integer> originalFuture = immediateFailedFuture(new IOException());
    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. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * {@code Closeable} with a method reference like {@code cursor::close}.
         *
         * <p>Note that this method is still binary-compatible between flavors because the erasure of
         * its parameter type is {@code Object}, not {@code AutoCloseable} or {@code Closeable}.
         *
         * @param closeable the object to be closed (see notes above)
         * @param closingExecutor the object will be closed on this executor
    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)
  4. cmd/metrics-v2.go

    		})
    		return
    	})
    	return mg
    }
    
    // getHistogramMetrics fetches histogram metrics and returns it in a []Metric
    // Note: Typically used in MetricGroup.RegisterRead
    //
    // The last parameter is added for compatibility - if true it lowercases the
    // `api` label values.
    func getHistogramMetrics(hist *prometheus.HistogramVec, desc MetricDescription, toLowerAPILabels bool) []MetricV2 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          this.matcher = SmallCharMatcher.from(tmp, "");
        }
        this.string = checkString(length, percent, config.matchingChars, new Random(), forceSlow, web);
      }
    
      // Caliper recognizes int-parameter methods beginning with "time"
    
      @Benchmark
      int trimAndCollapseFromString(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += matcher.trimAndCollapseFrom(string, '!').length();
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      // catching() uses a plain Function, so there's no testCatching_nullInsteadOfFuture().
    
      // Some tests of the exceptionType parameter:
    
      public void testCatching_Throwable() throws Exception {
        Function<Throwable, Integer> fallback = functionReturningOne();
        ListenableFuture<Integer> originalFuture = immediateFailedFuture(new IOException());
    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)
  7. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          this.matcher = SmallCharMatcher.from(tmp, "");
        }
        this.string = checkString(length, percent, config.matchingChars, new Random(), forceSlow, web);
      }
    
      // Caliper recognizes int-parameter methods beginning with "time"
    
      @Benchmark
      int trimAndCollapseFromString(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += matcher.trimAndCollapseFrom(string, '!').length();
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

       */
      public static <C extends @Nullable Object, K extends C, V extends @Nullable Object>
          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;
    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)
Back to top