Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 687 for what (0.26 sec)

  1. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * of the function, thus time. Thus, the RateLimiter becomes /faster/ after a period of
       * underutilization. If, on the other hand, we pick a function that goes /above/ that horizontal
       * line, then it means that the area (time) is increased, thus storedPermits are more costly than
       * fresh permits, thus the RateLimiter becomes /slower/ after a period of underutilization.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        String data = "Hi There";
    
        checkSha1("b617318655057264e28bc0b6fb378c8ef146be00", key, data);
      }
    
      public void testRfc2202_hmacSha1_case2() {
        byte[] key = "Jefe".getBytes(UTF_8);
        String data = "what do ya want for nothing?";
    
        checkSha1("effcdf6ae5eb2fa2d27416d5f184df9c259a7c79", key, data);
      }
    
      public void testRfc2202_hmacSha1_case3() {
        byte[] key = fillByteArray(20, 0xaa);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

          assertTrue(burst <= 1000);
          long afterBurst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random());
          // but work beyond that must take at least one second
          assertTrue(afterBurst >= 1000);
        }
      }
    
      /**
       * This neat test shows that no matter what weights we use in our requests, if we push X amount of
       * permits in a cool state, where X = rate * timeToCoolDown, and we have specified a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        }
      }
    
      /*
       * Whenever an implementation uses `instanceof` on a parameter instance, the test has to know that
       * (so much for "black box") and try instances that both do and don't pass the check. The "don't"
       * half of that is more awkward to arrange...
       */
      private static <T> Iterable<T> iterable(final Collection<T> collection) {
        // return collection::iterator;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 19K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * extra state from AbstractFuture), our options are limited: A call to setException() would be
         * a no-op. We could log, but if that's what we really want, we should modify
         * AbstractFuture.executeListener to do so, since that method would have the ability to continue
         * to execute other listeners.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/PreconditionsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        /*
         * Don't bother testing: Preconditions defines a bunch of methods that accept a template (or
         * even entire message) that simultaneously:
         *
         * - _shouldn't_ be null, so we don't annotate it with @Nullable
         *
         * - _can_ be null without causing a runtime failure (because we don't want the interesting
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        }
      }
    
      /*
       * Whenever an implementation uses `instanceof` on a parameter instance, the test has to know that
       * (so much for "black box") and try instances that both do and don't pass the check. The "don't"
       * half of that is more awkward to arrange...
       */
      private static <T> Iterable<T> iterable(final Collection<T> collection) {
        // return collection::iterator;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

    import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
    import java.util.List;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * Tests relating to cache eviction: what does and doesn't count toward maximumSize, what happens
     * when maximumSize is reached, etc.
     *
     * @author mike nonemacher
     */
    public class CacheEvictionTest extends TestCase {
      static final int MAX_SIZE = 100;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        String data = "Hi There";
    
        checkSha1("b617318655057264e28bc0b6fb378c8ef146be00", key, data);
      }
    
      public void testRfc2202_hmacSha1_case2() {
        byte[] key = "Jefe".getBytes(UTF_8);
        String data = "what do ya want for nothing?";
    
        checkSha1("effcdf6ae5eb2fa2d27416d5f184df9c259a7c79", key, data);
      }
    
      public void testRfc2202_hmacSha1_case3() {
        byte[] key = fillByteArray(20, 0xaa);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java

            }
    
            injectPluginDeclarationFromProject(plugin, project);
    
            // If there is no version to be found then we need to look in the repository metadata for
            // this plugin and see what's specified as the latest release.
            //
            if (plugin.getVersion() == null) {
                resolvePluginVersion(plugin, session, project);
            }
    
            return pluginManager.getMojoDescriptor(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top