Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for createEntryArray (0.1 seconds)

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

        checkPositionIndex(n, entryArray.length);
        int tableSize = closedTableSize(n, MAX_LOAD_FACTOR);
        int mask = tableSize - 1;
        @Nullable ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize);
        @Nullable ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize);
        /*
         * The cast is safe: n==entryArray.length means that we have filled the whole array with Entry
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/RegularImmutableMap.java

         */
        @SuppressWarnings("nullness")
        Entry<K, V>[] entries =
            (n == entryArray.length) ? (Entry<K, V>[]) entryArray : createEntryArray(n);
        int tableSize = closedTableSize(n, MAX_LOAD_FACTOR);
        @Nullable ImmutableMapEntry<K, V>[] table = createEntryArray(tableSize);
        int mask = tableSize - 1;
        // If duplicates are allowed, this IdentityHashMap will record the final Entry for each
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableMapEntry.java

       * {@code new ImmutableMapEntry[...]}, so it seems silly to insist on that only here.
       */
      @SuppressWarnings("unchecked") // Safe as long as the javadocs are followed
      static <K, V> ImmutableMapEntry<K, V>[] createEntryArray(int size) {
        return (ImmutableMapEntry<K, V>[]) new ImmutableMapEntry<?, ?>[size];
      }
    
      ImmutableMapEntry(K key, V value) {
        super(key, value);
        checkEntryNotNull(key, value);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 01 21:42:29 GMT 2025
    - 4.6K bytes
    - Click Count (0)
Back to Top