Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for probe (0.2 sec)

  1. 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)
  2. 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)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      }
    
      /**
       * This test attempts to cause a future to wait for longer than it was requested to from a timed
       * get() call. As measurements of time are prone to flakiness, it tries to assert based on ranges
       * derived from observing how much time actually passed for various operations.
       */
      @SuppressWarnings({"DeprecatedThreadMethods", "ThreadPriorityCheck"})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  4. 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)
  5. android/pom.xml

              </plugin>
            </plugins>
          </build>
        </profile>
        <profile>
          <id>run-error-prone</id>
          <activation>
            <!--
            Error Prone requires 11+: https://errorprone.info/docs/installation
            We skip 12-15 because of https://github.com/google/error-prone/issues/3540.
            -->
            <jdk>[11,12),[16,)</jdk>
          </activation>
          <build>
            <plugins>
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/util/concurrent/Striped.java

            result.set(i, getAt(currentStripe));
            previousStripe = currentStripe;
          }
        }
        /*
         * Note that the returned Iterable holds references to the returned stripes, to avoid
         * error-prone code like:
         *
         * Striped<Lock> stripedLock = Striped.lazyWeakXXX(...)'
         * Iterable<Lock> locks = stripedLock.bulkGet(keys);
         * for (Lock lock : locks) {
         *   lock.lock();
         * }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  10. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
Back to top