Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 570 for Vong (0.16 sec)

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

    public class FakeTicker extends Ticker {
    
      private final AtomicLong nanos = new AtomicLong();
      private volatile long autoIncrementStepNanos;
    
      /** Advances the ticker value by {@code time} in {@code timeUnit}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long time, TimeUnit timeUnit) {
        return advance(timeUnit.toNanos(time));
      }
    
    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. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * @throws IllegalArgumentException if {@code interfaceType} is a regular class, enum, or
       *     annotation type, rather than an interface
       */
      <T> T newProxy(T target, Class<T> interfaceType, long timeoutDuration, TimeUnit timeoutUnit);
    
      /**
       * Invokes a specified Callable, timing out after the specified time limit. If the target method
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      private final RemovalListener<? super K, ? super V> removalListener;
      private final StatsCounter statsCounter;
      private final Ticker ticker;
      private final long expireAfterWrite;
      private final long expireAfterAccess;
    
      LocalCache(CacheBuilder<? super K, ? super V> builder, CacheLoader<? super K, V> loader) {
        this.loader = loader;
        this.removalListener = builder.removalListener;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

        final int characteristics() {
          return spliterator.characteristics();
        }
    
        final long estimateSize() {
          return spliterator.estimateSize();
        }
    
        final Comparator<? super E> getComparator() {
          return spliterator.getComparator();
        }
    
        final long getExactSizeIfKnown() {
          return spliterator.getExactSizeIfKnown();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      static class FakeStopwatch extends SleepingStopwatch {
        long instant = 0L;
        final List<String> events = Lists.newArrayList();
    
        @Override
        public long readMicros() {
          return NANOSECONDS.toMicros(instant);
        }
    
        void sleepMillis(int millis) {
          sleepMicros("U", MILLISECONDS.toMicros(millis));
        }
    
        void sleepMicros(String caption, long micros) {
          instant += MICROSECONDS.toNanos(micros);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Preconditions.java

       *
       * @since 20.0 (varargs overload since 2.0)
       */
      public static void checkArgument(
          boolean expression, String errorMessageTemplate, long p1, long p2) {
        if (!expression) {
          throw new IllegalArgumentException(lenientFormat(errorMessageTemplate, p1, p2));
        }
      }
    
      /**
    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)
  7. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

       * value.
       */
      private static void assertApproximateElementCountGuess(BloomFilter<?> bf, int sizeGuess) {
        assertThat(bf.approximateElementCount()).isAtLeast((long) (sizeGuess * 0.99));
        assertThat(bf.approximateElementCount()).isAtMost((long) (sizeGuess * 1.01));
      }
    
      public void testCreateAndCheckMitz32BloomFilterWithKnownFalsePositives() {
        int numInsertions = 1000000;
        BloomFilter<String> bf =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ComparisonChain.java

       */
      public abstract ComparisonChain compare(int left, int right);
    
      /**
       * Compares two {@code long} values as specified by {@link Longs#compare}, <i>if</i> the result of
       * this comparison chain has not already been determined.
       */
      public abstract ComparisonChain compare(long left, long right);
    
      /**
       * Compares two {@code float} values as specified by {@link Float#compare}, <i>if</i> the result
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

            .setDefault(Monitor.Guard.class, new TestGuard(true))
            .testAllPublicInstanceMethods(monitor);
      }
    
      // TODO: Test enter(long, TimeUnit).
      // TODO: Test enterWhen(Guard, long, TimeUnit).
      // TODO: Test enterIf(Guard, long, TimeUnit).
      // TODO: Test waitFor(Guard, long, TimeUnit).
      // TODO: Test getQueueLength().
      // TODO: Test hasQueuedThreads().
      // TODO: Test getWaitQueueLength(Guard).
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/Quantiles.java

          // Since index and (dataset.length - 1) are non-negative ints, their product can be expressed
          // as a long, without risk of overflow:
          long numerator = (long) index * (dataset.length - 1);
          // Since scale is a positive int, index is in [0, scale], and (dataset.length - 1) is a
          // non-negative int, we can do long-arithmetic on index * (dataset.length - 1) / scale to get
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
Back to top