Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newEntries (0.08 sec)

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

              duplicates.put(entry, false);
            } else {
              continue; // delete this entry; we already copied an earlier one for the same key
            }
          }
          newEntries[out++] = entry;
        }
        return newEntries;
      }
    
      /** Makes an entry usable internally by a new ImmutableMap without rereading its contents. */
      static <K, V> ImmutableMapEntry<K, V> makeImmutable(Entry<K, V> entry, K key, V value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        this.values = new int[expectedSize];
    
        this.entries = newEntries(expectedSize);
        this.threshold = Math.max(1, (int) (buckets * loadFactor));
      }
    
      private static int[] newTable(int size) {
        int[] array = new int[size];
        Arrays.fill(array, UNSET);
        return array;
      }
    
      private static long[] newEntries(int size) {
        long[] array = new long[size];
        Arrays.fill(array, UNSET);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMap.java

            return null;
          }
          @SuppressWarnings({"rawtypes", "unchecked"})
          Entry<K, V>[] newEntries = new Entry[size - dups.cardinality()];
          for (int inI = 0, outI = 0; inI < size; inI++) {
            if (!dups.get(inI)) {
              newEntries[outI++] = entries[inI];
            }
          }
          return newEntries;
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

              hits++;
            }
          }
        }
    
        try {
          if (!keysToLoad.isEmpty()) {
            try {
              Map<K, V> newEntries = loadAll(unmodifiableSet(keysToLoad), defaultLoader);
              for (K key : keysToLoad) {
                V value = newEntries.get(key);
                if (value == null) {
                  throw new InvalidCacheLoadException("loadAll failed to return a value for " + key);
                }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top