Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CompactHashMap (0.3 sec)

  1. guava/src/com/google/common/collect/CompactHashMap.java

      /** Constructs a new empty instance of {@code CompactHashMap}. */
      CompactHashMap() {
        init(CompactHashing.DEFAULT_SIZE);
      }
    
      /**
       * Constructs a new instance of {@code CompactHashMap} with the specified capacity.
       *
       * @param expectedSize the initial capacity of this {@code CompactHashMap}.
       */
      CompactHashMap(int expectedSize) {
        init(expectedSize);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashMap.java

      /** Constructs a new empty instance of {@code CompactHashMap}. */
      CompactHashMap() {
        init(CompactHashing.DEFAULT_SIZE);
      }
    
      /**
       * Constructs a new instance of {@code CompactHashMap} with the specified capacity.
       *
       * @param expectedSize the initial capacity of this {@code CompactHashMap}.
       */
      CompactHashMap(int expectedSize) {
        init(expectedSize);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/CompactHashMapTest.java

        CompactHashMap<Integer, String> map = CompactHashMap.create();
        map.put(1, "1");
        Entry<Integer, String> entry = getOnlyElement(map.entrySet());
        map.remove(1);
        entry.setValue("one");
        assertThat(map).containsEntry(1, "one");
      }
    
      public void testAllocArraysDefault() {
        CompactHashMap<Integer, String> map = CompactHashMap.create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CompactHashMapFloodingTest.java

    @GwtIncompatible
    @NullUnmarked
    public class CompactHashMapFloodingTest extends AbstractHashFloodingTest<Map<Object, Object>> {
      public CompactHashMapFloodingTest() {
        super(
            ImmutableList.of(Construction.mapFromKeys(CompactHashMap::create)),
            n -> n * log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Platform.java

      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return CompactHashMap.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactHashSet.java

       * implementation. Experimentally determined.
       */
      private static final int MAX_HASH_BUCKET_LENGTH = 9;
    
      // See CompactHashMap for a detailed description of how the following fields work. That
      // description talks about `keys`, `values`, and `entries`; here the `keys` and `values` arrays
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

        this.successor = null;
        return result;
      }
    
      /*
       * For discussion of the safety of the following methods for operating on predecessors and
       * successors, see the comments near the end of CompactHashMap, noting that the methods here call
       * requirePredecessors() and requireSuccessors(), which are defined at the end of this file.
       */
    
      private int getPredecessor(int entry) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top