Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for Ismail (0.35 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

          builder.initialCapacity(16);
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      @GwtIncompatible // CacheTesting
      public void testInitialCapacity_small() {
        LoadingCache<?, ?> cache = CacheBuilder.newBuilder().initialCapacity(5).build(identityLoader());
        LocalCache<?, ?> map = CacheTesting.toLocalCache(cache);
    
        assertThat(map.segments).hasLength(4);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  2. android/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 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/Escapers.java

       * ArrayBasedUnicodeEscaper} to provide the desired behavior. However this builder is suitable for
       * creating escapers that replace a relative small set of characters.
       *
       * @author David Beaumont
       * @since 15.0
       */
      public static final class Builder {
        private final Map<Character, String> replacementMap = new HashMap<>();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Shorts.java

       * @param value any {@code long} value
       * @return the same value cast to {@code short} if it is in the range of the {@code short} type,
       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    
    @SuppressWarnings("unused") // Nested enums used reflectively in setUp.
    public class EnumsBenchmark {
    
      @Param({"Small", "Medium", "Large"})
      String enumSize;
    
      @Param({"0.2", "0.8"})
      float hitRate;
    
      // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...).
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    
    @SuppressWarnings("unused") // Nested enums used reflectively in setUp.
    public class EnumsBenchmark {
    
      @Param({"Small", "Medium", "Large"})
      String enumSize;
    
      @Param({"0.2", "0.8"})
      float hitRate;
    
      // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...).
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedLongs.java

     * number.
     *
     * <p>Users of these utilities must be <i>extremely careful</i> not to mix up signed and unsigned
     * {@code long} values. When possible, it is recommended that the {@link UnsignedLong} wrapper class
     * be used, at a small efficiency penalty, to enforce the distinction in the type system.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/PrimitivesExplained#unsigned-support">unsigned
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableBiMap.java

       *     new ImmutableBiMap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .put("two", 2)
       *         .put("three", 3)
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable bimaps, the {@code ImmutableBiMap.of()} methods are even more
       * convenient.
       *
       * <p>By default, a {@code Builder} will generate bimaps that iterate over entries in the order
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        Random random = new Random(0);
        Multiset<Integer> elements = HashMultiset.create();
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create();
        int range = 10_000; // range should be small enough that equal elements occur semi-frequently
        for (int iter = 0; iter < reduceIterationsIfGwt(1000); iter++) {
          for (int i = 0; i < 100; i++) {
            Integer element = random.nextInt(range);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Longs.java

       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 8 elements
       */
      public static long fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(
            bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7]);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
Back to top