Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for newEntries (0.11 seconds)

  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) {
    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)
  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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 14.5K bytes
    - Click Count (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;
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 44.7K bytes
    - Click Count (0)
  4. android/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);
                }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  5. 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);
                }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
Back to Top