Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Tate (0.15 sec)

  1. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import com.google.common.testing.TearDown;
    import com.google.common.testing.TearDownStack;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.time.Duration;
    import java.util.Date;
    import java.util.concurrent.ArrayBlockingQueue;
    import java.util.concurrent.BlockingQueue;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

     * late. Also, all life cycle methods are executed with a lock held, so subclasses can safely modify
     * shared state without additional synchronization necessary for visibility to later executions of
     * the life cycle methods.
     *
     * <h3>Usage Example</h3>
     *
     * <p>Here is a sketch of a service which crawls a website and uses the scheduling capabilities to
     * rate limit itself.
     *
     * <pre>{@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         * are atomic, but do not provide happens-before ordering; however:
         *
         * <ul>
         *   <li>If this field's value == currentThread, we know that it's up to date, because write
         *       operations in a thread always happen-before subsequent read operations in the same
         *       thread
         *   <li>If this field's value == null because of unsafe publication, we know that it isn't the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import com.google.common.testing.NullPointerTester;
    import com.google.common.testing.TearDown;
    import com.google.common.testing.TearDownStack;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Date;
    import java.util.concurrent.ArrayBlockingQueue;
    import java.util.concurrent.BlockingQueue;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

          return "A message";
        }
      }
    
      private static final String FORMAT = "I ate %s pies.";
    
      private static void verifySimpleMessage(Exception e) {
        assertThat(e).hasMessageThat().isEqualTo("A message");
      }
    
      private static void verifyComplexMessage(Exception e) {
        assertThat(e).hasMessageThat().isEqualTo("I ate 5 pies.");
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

              Assert.assertEquals(0.50d, prob, epsilon);
            }
          }
        }
      }
    
      /**
       * Checks that a Hasher returns the same HashCode when given the same input, and also that the
       * collision rate looks sane.
       */
      static void assertInvariants(HashFunction hashFunction) {
        int objects = 100;
        Set<HashCode> hashcodes = Sets.newHashSetWithExpectedSize(objects);
        Random random = new Random(314159);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/BloomFilter.java

       *
       * <p>See http://en.wikipedia.org/wiki/Bloom_filter#Probability_of_false_positives for the
       * formula.
       *
       * @param n expected insertions (must be positive)
       * @param p false positive rate (must be 0 < p < 1)
       */
      @VisibleForTesting
      static long optimalNumOfBits(long n, double p) {
        if (p == 0) {
          p = Double.MIN_VALUE;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        Builder<String, Integer> builder =
            new Builder<String, Integer>()
                .put("one", 1)
                .put("one", 1); // throwing on this line might be better but it's too late to change
    
        try {
          builder.buildOrThrow();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testBuildKeepingLast_allowsOverwrite() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code Content-Type} header field name. */
      public static final String CONTENT_TYPE = "Content-Type";
      /** The HTTP {@code Date} header field name. */
      public static final String DATE = "Date";
      /** The HTTP {@code Pragma} header field name. */
      public static final String PRAGMA = "Pragma";
      /** The HTTP {@code Via} header field name. */
      public static final String VIA = "Via";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashTestUtils.java

              Assert.assertEquals(0.50d, prob, epsilon);
            }
          }
        }
      }
    
      /**
       * Checks that a Hasher returns the same HashCode when given the same input, and also that the
       * collision rate looks sane.
       */
      static void assertInvariants(HashFunction hashFunction) {
        int objects = 100;
        Set<HashCode> hashcodes = Sets.newHashSetWithExpectedSize(objects);
        Random random = new Random(314159);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
Back to top