Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 84 for immutableEntry (0.19 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        addAll(set, elements);
        return set;
      }
    
      public static <E extends @Nullable Object> Set<E> copyToSet(E[] elements) {
        return copyToSet(asList(elements));
      }
    
      // Would use Maps.immutableEntry
      public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> mapEntry(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

    import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener;
    import static com.google.common.cache.TestingWeighers.constantWeigher;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.MoreExecutors.listeningDecorator;
    import static java.lang.Math.max;
    import static java.lang.Thread.State.WAITING;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

    import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener;
    import static com.google.common.cache.TestingWeighers.constantWeigher;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.MoreExecutors.listeningDecorator;
    import static java.lang.Math.max;
    import static java.lang.Thread.State.WAITING;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

                  }
                  Map.Entry<E, AtomicInteger> mapEntry = mapEntries.next();
                  int count = mapEntry.getValue().get();
                  if (count != 0) {
                    return Multisets.immutableEntry(mapEntry.getKey(), count);
                  }
                }
              }
            };
    
        return new ForwardingIterator<Entry<E>>() {
          @CheckForNull private Entry<E> last;
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashBiMap.java

        HashBiMap<K, V> bimap = create(map.size());
        bimap.putAll(map);
        return bimap;
      }
    
      static final class BiEntry<K extends @Nullable Object, V extends @Nullable Object>
          extends ImmutableEntry<K, V> {
        final int keyHash;
        final int valueHash;
    
        // All BiEntry instances are strongly reachable from owning HashBiMap through
        // "HashBiMap.hashTableKToV" and "BiEntry.nextInKToVBucket" references.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/LinkedHashMultimap.java

       * whole.
       */
      @VisibleForTesting
      static final class ValueEntry<K extends @Nullable Object, V extends @Nullable Object>
          extends ImmutableEntry<K, V> implements ValueSetLink<K, V> {
        final int smearedValueHash;
    
        @CheckForNull ValueEntry<K, V> nextInValueBucket;
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        addAll(set, elements);
        return set;
      }
    
      public static <E extends @Nullable Object> Set<E> copyToSet(E[] elements) {
        return copyToSet(asList(elements));
      }
    
      // Would use Maps.immutableEntry
      public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> mapEntry(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

       */
      @GwtCompatible(serializable = true)
      public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> immutableEntry(
          @ParametricNullness K key, @ParametricNullness V value) {
        return new ImmutableEntry<>(key, value);
      }
    
      /**
       * Returns an unmodifiable view of the specified set of entries. The {@link Entry#setValue}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

              Service service = entry.getKey();
              Stopwatch stopwatch = entry.getValue();
              if (!stopwatch.isRunning() && !(service instanceof NoOpService)) {
                loadTimes.add(Maps.immutableEntry(service, stopwatch.elapsed(MILLISECONDS)));
              }
            }
          } finally {
            monitor.leave();
          }
          Collections.sort(
              loadTimes,
              Ordering.natural()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/ServiceManager.java

              Service service = entry.getKey();
              Stopwatch stopwatch = entry.getValue();
              if (!stopwatch.isRunning() && !(service instanceof NoOpService)) {
                loadTimes.add(Maps.immutableEntry(service, stopwatch.elapsed(MILLISECONDS)));
              }
            }
          } finally {
            monitor.leave();
          }
          Collections.sort(
              loadTimes,
              Ordering.natural()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top