Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 139 for master (0.25 sec)

  1. android/guava/src/com/google/common/collect/Multisets.java

       * <p>Many of the filtered multiset's methods, such as {@code size()}, iterate across every
       * element in the underlying multiset and determine which elements satisfy the filter. When a live
       * view is <i>not</i> needed, it may be faster to copy the returned multiset and use the copy.
       *
       * <p><b>Warning:</b> {@code predicate} must be <i>consistent with equals</i>, as documented at
       * {@link Predicate#apply}. Do not provide a predicate such as {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      protected final <T> void setDefault(Class<T> type, T value) {
        tester.setDefault(type, value);
      }
    
      /**
       * Sets two distinct values for {@code type}. These values can be used for both null pointer
       * testing and equals testing.
       *
       * @since 17.0
       */
      protected final <T> void setDistinctValues(Class<T> type, T value1, T value2) {
        tester.setDistinctValues(type, value1, value2);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        return CollectCollectors.toImmutableSortedMap(
            comparator, keyFunction, valueFunction, mergeFunction);
      }
    
      /*
       * TODO(kevinb): Confirm that ImmutableSortedMap is faster to construct and
       * uses less memory than TreeMap; then say so in the class Javadoc.
       */
      private static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  4. .github/pull_request_template.md

    <!--
    Please read the contribution guidelines at
    https://github.com/google/guava/wiki/HowToContribute#code-contributions
    and
    https://github.com/google/guava/blob/master/CONTRIBUTING.md
    before sending a pull request.
    
    We generally welcome PRs for fixing trivial bugs or typos, but please refrain
    from sending a PR with significant changes unless explicitly requested.
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 27 19:53:41 GMT 2023
    - 371 bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      private static final HashFunction SIP_WITHOUT_KEY = Hashing.sipHash24();
    
      // These constants were originally ported from https://www.131002.net/siphash/siphash24.c. See:
      // https://github.com/nahi/siphash-java-inline/blob/master/src/test/java/org/jruby/util/SipHashInlineTest.java
      private static final long[] EXPECTED =
          new long[] {
            0x726fdb47dd0e0e31L,
            0x74f839c593dc67fdL,
            0x0d6c8009d9a94f5aL,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * of the function in [7.0, 10.0] is equivalent to the sum of the integrals of [7.0, 8.0], [8.0,
       * 9.0], [9.0, 10.0] (and so on), no matter what the function is. This guarantees that we handle
       * correctly requests of varying weight (permits), /no matter/ what the actual function is - so we
       * can tweak the latter freely. (The only requirement, obviously, is that we can compute its
       * integrals).
       *
    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)
  7. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        // https://github.com/aappleby/smhasher/blob/master/src/main.cpp
        HashTestUtils.verifyHashFunction(hf, 32, 0xB0F57EE3);
      }
    
      public void testParanoid() {
        HashFn hf =
            new HashFn() {
              @Override
              public byte[] hash(byte[] input, int seed) {
                Hasher hasher = murmur3_32(seed).newHasher();
                Funnels.byteArrayFunnel().funnel(input, hasher);
                return hasher.hash().asBytes();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  8. guava-gwt/test/com/google/common/GwtTestSuite.java

    import com.google.gwt.junit.tools.GWTTestSuite;
    
    import junit.framework.Test;
    import junit.framework.TestCase;
    
    import java.io.IOException;
    
    /**
     * Runs all _gwt tests. Grouping them into a suite is much faster than running each as a one-test
     * "suite," as the per-suite setup is expensive.
     */
    public class GwtTestSuite extends TestCase {
      public static Test suite() throws IOException {
        GWTTestSuite suite = new GWTTestSuite();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 23 13:24:59 GMT 2016
    - 1.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/AppendableWriter.java

       * Abstract methods from Writer
       */
    
      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        checkNotClosed();
        // It turns out that creating a new String is usually as fast, or faster
        // than wrapping cbuf in a light-weight CharSequence.
        target.append(new String(cbuf, off, len));
      }
    
      /*
       * Override a few functions for performance reasons to avoid creating unnecessary strings.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

    import java.util.concurrent.Future;
    import junit.framework.TestCase;
    
    /**
     * Basher test for {@link AtomicLongMap}.
     *
     * @author mike nonemacher
     */
    @J2ktIncompatible // threads
    @GwtIncompatible // threads
    public class AtomicLongMapBasherTest extends TestCase {
      private final Random random = new Random(301);
    
      public void testModify_basher() throws Exception {
        int nTasks = 3000;
        int nThreads = 100;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top