Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CompactHashing (0.06 sec)

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

    import org.jspecify.annotations.Nullable;
    
    /**
     * Helper classes and static methods for implementing compact hash-based collections.
     *
     * @author Jon Noack
     */
    @GwtIncompatible
    final class CompactHashing {
      private CompactHashing() {}
    
      /** Indicates blank table entries. */
      static final byte UNSET = 0;
    
      /** Number of bits used to store the numbers of hash table bits (max 30). */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactHashing.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Helper classes and static methods for implementing compact hash-based collections.
     *
     * @author Jon Noack
     */
    @GwtIncompatible
    final class CompactHashing {
      private CompactHashing() {}
    
      /** Indicates blank table entries. */
      static final byte UNSET = 0;
    
      /** Number of bits used to store the numbers of hash table bits (max 30). */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.keys).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.values).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.links).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java

        assertThat(set.elements).isNull();
    
        set.add(1);
        assertThat(set.needsAllocArrays()).isFalse();
        assertThat(set.elements).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
          CompactHashSet<Integer> set = CompactHashSet.createWithExpectedSize(i);
          assertThat(set.needsAllocArrays()).isTrue();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/CompactHashMapTest.java

        assertThat(map.needsAllocArrays()).isFalse();
        assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.keys).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.values).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.keys).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.values).hasLength(CompactHashing.DEFAULT_SIZE);
        assertThat(map.links).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      /** Pointer to the last node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int lastEntry;
    
      private final boolean accessOrder;
    
      CompactLinkedHashMap() {
        this(CompactHashing.DEFAULT_SIZE);
      }
    
      CompactLinkedHashMap(int expectedSize) {
        this(expectedSize, false);
      }
    
      CompactLinkedHashMap(int expectedSize, boolean accessOrder) {
        super(expectedSize);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top