Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Patrick (0.26 sec)

  1. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

    import java.util.Arrays;
    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Crc32c}. Known test values are from RFC 3720, Section B.4.
     *
     * @author Patrick Costello
     * @author Kurt Alfred Kluever
     */
    public class Crc32cHashFunctionTest extends TestCase {
      public void testEmpty() {
        assertCrc(0, new byte[0]);
      }
    
      public void testZeros() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

    import java.util.Arrays;
    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Crc32c}. Known test values are from RFC 3720, Section B.4.
     *
     * @author Patrick Costello
     * @author Kurt Alfred Kluever
     */
    public class Crc32cHashFunctionTest extends TestCase {
      public void testEmpty() {
        assertCrc(0, new byte[0]);
      }
    
      public void testZeros() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

    import java.util.concurrent.locks.ReentrantLock;
    import java.util.concurrent.locks.ReentrantReadWriteLock;
    import junit.framework.TestCase;
    
    /**
     * Unittests for {@link CycleDetectingLockFactory}.
     *
     * @author Darick Tong
     */
    public class CycleDetectingLockFactoryTest extends TestCase {
    
      private ReentrantLock lockA;
      private ReentrantLock lockB;
      private ReentrantLock lockC;
      private ReentrantReadWriteLock.ReadLock readLockA;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/hash/Crc32cHashFunction.java

         * by Kadatch and Jenkins, 2010.
         */
    
        Crc32cHasher() {
          super(16);
        }
    
        private boolean finished = false;
    
        /*
         * This trick allows us to avoid having separate states for "first four ints" and "all other
         * four int chunks."  The state we want after the first four bytes is
         *
         * crc0 = ~int0
         * crc1 = int1
         * crc2 = int2
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 21.3K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java

    import com.google.caliper.Param;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    
    /**
     * Benchmarks for {@link CycleDetectingLockFactory}.
     *
     * @author Darick Tong
     */
    public class CycleDetectingLockFactoryBenchmark {
    
      @Param({"2", "3", "4", "5", "10"})
      int lockNestingDepth;
    
      CycleDetectingLockFactory factory;
      private Lock[] plainLocks;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *       </ul>
     * </ul>
     *
     * <p>As such, the CycleDetectingLockFactory may not be suitable for performance-critical
     * applications which involve tightly-looped or deeply-nested locking algorithms.
     *
     * @author Darick Tong
     * @since 13.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public class CycleDetectingLockFactory {
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Preconditions.java

       *
       * But the methods in this class want to throw different exceptions, depending on the args, so it
       * appears that this pattern is not directly applicable. But we can use the ridiculous, devious
       * trick of throwing an exception in the middle of the construction of another exception. Hotspot
       * is fine with that.
       */
    
      /**
    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)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java

    import com.google.caliper.Param;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    
    /**
     * Benchmarks for {@link CycleDetectingLockFactory}.
     *
     * @author Darick Tong
     */
    public class CycleDetectingLockFactoryBenchmark {
    
      @Param({"2", "3", "4", "5", "10"})
      int lockNestingDepth;
    
      CycleDetectingLockFactory factory;
      private Lock[] plainLocks;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

    import java.util.concurrent.locks.ReentrantLock;
    import java.util.concurrent.locks.ReentrantReadWriteLock;
    import junit.framework.TestCase;
    
    /**
     * Unittests for {@link CycleDetectingLockFactory}.
     *
     * @author Darick Tong
     */
    public class CycleDetectingLockFactoryTest extends TestCase {
    
      private ReentrantLock lockA;
      private ReentrantLock lockB;
      private ReentrantLock lockC;
      private ReentrantReadWriteLock.ReadLock readLockA;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * then the effect of the function is non-existent: we serve storedPermits at exactly the same
       * cost as fresh ones (1/QPS is the cost for each). We use this trick later.
       *
       * If we pick a function that goes /below/ that horizontal line, it means that we reduce the area
       * of the function, thus time. Thus, the RateLimiter becomes /faster/ after a period of
    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)
Back to top