Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 83 for containsValue (0.49 sec)

  1. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

            postReadCleanup();
          }
        }
    
        /**
         * This method is a convenience for testing. Code should call {@link
         * MapMakerInternalMap#containsValue} directly.
         */
        @VisibleForTesting
        boolean containsValue(Object value) {
          try {
            if (count != 0) { // read-volatile
              AtomicReferenceArray<E> table = this.table;
              int length = table.length();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 89.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) {
            Entry<Object, Object> entry = warmed.get(i - WARMUP_MIN);
            assertThat(cache.asMap().containsKey(entry.getKey())).isTrue();
            assertThat(cache.asMap().containsValue(entry.getValue())).isTrue();
            // this getUnchecked() call shouldn't be a cache miss; verified below
            assertThat(cache.getUnchecked(entry.getKey())).isEqualTo(entry.getValue());
          }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

        }
    
        @Override
        public boolean containsKey(@Nullable Object key) {
          return map.containsKey(key);
        }
    
        @Override
        public boolean containsValue(@Nullable Object value) {
          return map.containsValue(value);
        }
    
        @Override
        public boolean containsEntry(@Nullable Object key, @Nullable Object value) {
          return map.entrySet().contains(Maps.immutableEntry(key, value));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashMap.java

      }
    
      @Override
      public boolean isEmpty() {
        return size() == 0;
      }
    
      @Override
      public boolean containsValue(@Nullable Object value) {
        Map<K, V> delegate = delegateOrNull();
        if (delegate != null) {
          return delegate.containsValue(value);
        }
        for (int i = 0; i < size; i++) {
          if (Objects.equals(value, value(i))) {
            return true;
          }
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

       *
       * <p>The function is applied lazily, invoked when needed. This is necessary for the returned map
       * to be a view, but it means that the function will be applied many times for bulk operations
       * like {@link Map#containsValue} and {@code Map.toString()}. For this to perform well, {@code
       * function} should be fast. To avoid lazy evaluation when the returned map doesn't need to be a
       * view, copy the returned map into a new map of your choosing.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 157.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

       *
       * <p>The function is applied lazily, invoked when needed. This is necessary for the returned map
       * to be a view, but it means that the function will be applied many times for bulk operations
       * like {@link Map#containsValue} and {@code Map.toString()}. For this to perform well, {@code
       * function} should be fast. To avoid lazy evaluation when the returned map doesn't need to be a
       * view, copy the returned map into a new map of your choosing.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Table.java

      /**
       * Returns {@code true} if the table contains a mapping with the specified value.
       *
       * @param value value to search for
       */
      boolean containsValue(@CompatibleWith("V") @Nullable Object value);
    
      /**
       * Returns the value corresponding to the given row and column keys, or {@code null} if no such
       * mapping exists.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableTable.java

      @Override
      public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
        return get(rowKey, columnKey) != null;
      }
    
      @Override
      public boolean containsValue(@Nullable Object value) {
        return values().contains(value);
      }
    
      /**
       * Guaranteed to throw an exception and leave the table unmodified.
       *
       * @throws UnsupportedOperationException always
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Table.java

      /**
       * Returns {@code true} if the table contains a mapping with the specified value.
       *
       * @param value value to search for
       */
      boolean containsValue(@CompatibleWith("V") @Nullable Object value);
    
      /**
       * Returns the value corresponding to the given row and column keys, or {@code null} if no such
       * mapping exists.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

          } finally {
            postReadCleanup();
          }
        }
    
        /**
         * This method is a convenience for testing. Code should call {@link LocalCache#containsValue}
         * directly.
         */
        @VisibleForTesting
        boolean containsValue(Object value) {
          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
Back to top