Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createEntryArray (0.05 sec)

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

        int tableSize = Hashing.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
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. 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);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 21:42:29 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top