Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for probe (0.16 sec)

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

       *
       * <ul>
       *   <li>{@linkplain LoadingCache#get(Object) awaiting the result of a pending load} rather than
       *       starting a redundant one
       *   <li>eliminating the error-prone caching boilerplate
       *   <li>tracking load {@linkplain #stats statistics}
       * </ul>
       *
       * <p>Among the further improvements that {@code LoadingCache} can provide but this method cannot:
       *
       * <ul>
    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)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          // even though K doesn't explicitly implement Comparable.
          comparator = (Comparator<? super K>) NATURAL_ORDER;
        }
        if (map instanceof ImmutableSortedMap) {
          // TODO(kevinb): Prove that this cast is safe, even though
          // Collections.unmodifiableSortedMap requires the same key type.
          @SuppressWarnings("unchecked")
          ImmutableSortedMap<K, V> kvMap = (ImmutableSortedMap<K, V>) map;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Monitor.java

    /**
     * A synchronization abstraction supporting waiting on arbitrary boolean conditions.
     *
     * <p>This class is intended as a replacement for {@link ReentrantLock}. Code using {@code Monitor}
     * is less error-prone and more readable than code using {@code ReentrantLock}, without significant
     * performance loss. {@code Monitor} even has the potential for performance gain by optimizing the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/LongMath.java

            return true;
          }
        }
        throw new AssertionError();
      }
    
      /*
       * If n <= millerRabinBases[i][0], then testing n against bases millerRabinBases[i][1..] suffices
       * to prove its primality. Values from miller-rabin.appspot.com.
       *
       * NOTE: We could get slightly better bases that would be treated as unsigned, but benchmarks
       * showed negligible performance improvements.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Preconditions.java

        }
      }
    
      /*
       * Preconditions.checkNotNull is *intended* for performing eager null checks on parameters that a
       * nullness checker can already "prove" are non-null. That means that the first parameter to
       * checkNotNull *should* be annotated to require it to be non-null.
       *
       * However, for a variety of reasons, Google developers have written a ton of code over the past
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          this.random = random;
        }
    
        public int nextCodePoint() {
          int needle = random.nextInt(sum);
          int l = 0;
          int r = prob.length - 1;
          int c = prob.length / 2;
          int lv = prob[l];
          int rv = prob[r];
          int cv = prob[c];
    
          while (true) {
            if (needle == cv) {
              return chars[c - 1];
            } else if ((lv <= needle) && (needle < cv)) {
    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)
  7. guava-tests/test/com/google/common/collect/StreamsTest.java

            (a, b) -> {
              count.incrementAndGet();
              assertThat(a.equals(String.valueOf(b))).isTrue();
            });
        assertThat(count.get()).isEqualTo(100000);
        // of course, this test doesn't prove that anything actually happened in parallel...
      }
    
      // TODO(kevinb): switch to importing Truth's assertThat(DoubleStream) if we get that added
      private static IterableSubject assertThatDoubleStream(DoubleStream stream) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

            verifyScenario(alteration.mutate(scenario), level + 1);
          }
        }
      }
    
      /**
       * An aggregation of an ordering with a list (of size > 1) that should prove to be in strictly
       * increasing order according to that ordering.
       */
      private static class Scenario<T extends @Nullable Object> {
        final Ordering<T> ordering;
        final List<T> strictlyOrderedList;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/OrderingTest.java

            verifyScenario(alteration.mutate(scenario), level + 1);
          }
        }
      }
    
      /**
       * An aggregation of an ordering with a list (of size > 1) that should prove to be in strictly
       * increasing order according to that ordering.
       */
      private static class Scenario<T extends @Nullable Object> {
        final Ordering<T> ordering;
        final List<T> strictlyOrderedList;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("bar", Iterables.getLast(iterable, "qux"));
      }
    
      /**
       * {@link ArrayList} extension that forbids the use of {@link Collection#iterator} for tests that
       * need to prove that it isn't called.
       */
      private static class DiesOnIteratorArrayList extends ArrayList<String> {
        /** @throws UnsupportedOperationException all the time */
        @Override
        public Iterator<String> iterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top