Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for small (0.17 sec)

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

        }
      }
    
      /** Timeout values to combine with each {@link Scenario}. */
      private enum Timeout {
        MIN(Long.MIN_VALUE, "-oo"),
        MINUS_SMALL(-SMALL_TIMEOUT_MILLIS, "-" + SMALL_TIMEOUT_MILLIS + "ms"),
        ZERO(0L, "0ms"),
        SMALL(SMALL_TIMEOUT_MILLIS, SMALL_TIMEOUT_MILLIS + "ms"),
        LARGE(UNEXPECTED_HANG_DELAY_MILLIS * 2, (2 * UNEXPECTED_HANG_DELAY_MILLIS) + "ms"),
        MAX(Long.MAX_VALUE, "+oo");
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(-1, read);
    
        lin.reset();
        byte[] small = new byte[5];
        read = lin.read(small);
        assertEquals(2, read);
        assertEquals(big[0], small[0]);
        assertEquals(big[1], small[1]);
    
        lin.reset();
        read = lin.read(small, 2, 3);
        assertEquals(2, read);
        assertEquals(big[0], small[2]);
        assertEquals(big[1], small[3]);
      }
    
      public void testLimit_mark() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

        assertFalse(
            "setCount() with a too-small oldCount should return false",
            getMultiset().setCount(e0(), 0, 2));
        expectUnchanged();
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooSmallNonzero() {
        initThreeCopies();
        assertFalse(
            "setCount() with a too-small oldCount should return false",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

        assertFalse(
            "setCount() with a too-small oldCount should return false",
            getMultiset().setCount(e0(), 0, 2));
        expectUnchanged();
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooSmallNonzero() {
        initThreeCopies();
        assertFalse(
            "setCount() with a too-small oldCount should return false",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

     * limitations under the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.CacheBuilder.EMPTY_STATS;
    import static com.google.common.cache.LocalCacheTest.SMALL_MAX_SIZE;
    import static com.google.common.cache.TestingCacheLoaders.identityLoader;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.cache.LocalCache.LocalLoadingCache;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

      int numStripes;
    
      @Param Impl impl;
    
      enum Impl {
        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
            return new Striped.SmallLazyStriped<>(stripes, LOCK_SUPPLIER);
          }
        },
        LAZY_LARGE {
          @Override
          Striped<Lock> get(int stripes) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

      int numStripes;
    
      @Param Impl impl;
    
      enum Impl {
        EAGER {
          @Override
          Striped<Lock> get(int stripes) {
            return Striped.lock(stripes);
          }
        },
        LAZY_SMALL {
          @Override
          Striped<Lock> get(int stripes) {
            return new Striped.SmallLazyStriped<>(stripes, LOCK_SUPPLIER);
          }
        },
        LAZY_LARGE {
          @Override
          Striped<Lock> get(int stripes) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

            assertEscaping(xmlEscaper, "\uFFFD", ch);
          }
        }
    
        // Test _all_ allowed characters (including surrogate values).
        for (char ch = 0x20; ch <= 0xFFFD; ch++) {
          // There are a small number of cases to consider, so just do it manually.
          if (ch == '&') {
            assertEscaping(xmlEscaper, "&amp;", ch);
          } else if (ch == '<') {
            assertEscaping(xmlEscaper, "&lt;", ch);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 4.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * MoreExecutors#newDirectExecutorService} and subject to the same constraints.
       *
       * <p>Although all tasks are immediately executed in the thread that submitted the task, this
       * {@code ExecutorService} imposes a small locking overhead on each task submission in order to
       * implement shutdown and termination behavior.
       *
       * <p>Because of the nature of single-thread execution, the methods {@code scheduleAtFixedRate}
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashing.java

      /** Default size of a compact hash-based collection. */
      static final int DEFAULT_SIZE = 3;
    
      /**
       * Minimum size of the hash table of a compact hash-based collection. Because small hash tables
       * use a byte[], any smaller size uses the same amount of memory due to object padding.
       */
      private static final int MIN_HASH_TABLE_SIZE = 4;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
Back to top