Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 78 for Ismail (0.27 sec)

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

       * using a {@code LinkedHashSet} instead, at the cost of increased memory footprint, to get
       * deterministic iteration behavior.
       *
       * <p>This method is just a small convenience, either for {@code newHashSet(}{@link Arrays#asList
       * asList}{@code (...))}, or for creating an empty set then calling {@link Collections#addAll}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          Object[] newQueue = new Object[newCapacity];
          System.arraycopy(queue, 0, newQueue, 0, queue.length);
          queue = newQueue;
        }
      }
    
      /** Returns ~2x the old capacity if small; ~1.5x otherwise. */
      private int calculateNewCapacity() {
        int oldCapacity = queue.length;
        int newCapacity =
            (oldCapacity < 64) ? (oldCapacity + 1) * 2 : IntMath.checkedMultiply(oldCapacity / 2, 3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * been shutdown).
       *
       * <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>The implementation deviates from the {@code ExecutorService} specification with regards to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/CharMatcher.java

       *
       * <p>This implementation tries to be smart in a number of ways. It recognizes cases where the
       * negation is cheaper to precompute than the matcher itself; it tries to build small hash tables
       * for matchers that only match a few characters, and so on. In the worst-case scenario, it
       * constructs an eight-kilobyte bit array and queries that. In many situations this produces a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

      @Param({"0", "10", "50", "100"})
      int percent;
    
      // Whether to use a precomputed CharMatcher
      @Param("true")
      boolean precomputed;
    
      enum Size {
        DEFAULT,
        SMALL;
      }
    
      @Param Size size;
    
      // Whether to ensure there is a matching character in the first position
      // to force the trimming code to run.
      @Param("false")
      boolean forceSlow;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        int threshold;
    
        /** The per-segment table. */
        @CheckForNull volatile AtomicReferenceArray<E> table;
    
        /**
         * A counter of the number of reads since the last write, used to drain queues on a small
         * fraction of read operations.
         */
        final AtomicInteger readCount = new AtomicInteger();
    
        Segment(MapMakerInternalMap<K, V, E, S> map, int initialCapacity) {
          this.map = map;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top