Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 78 for containsValue (0.08 seconds)

  1. 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;
          }
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  2. 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.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 157.6K bytes
    - Click Count (0)
  3. 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.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 163.5K bytes
    - Click Count (0)
  4. 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
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  5. 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.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  6. 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();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 11 19:35:11 GMT 2025
    - 148.9K bytes
    - Click Count (0)
  7. 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
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  8. 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());
          }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  9. android/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;
          }
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 35.7K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/LinkedListMultimap.java

        return head == null;
      }
    
      @Override
      public boolean containsKey(@Nullable Object key) {
        return keyToKeyList.containsKey(key);
      }
    
      @Override
      public boolean containsValue(@Nullable Object value) {
        return values().contains(value);
      }
    
      // Modification Operations
    
      /**
       * Stores a key-value pair in the multimap.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 27K bytes
    - Click Count (0)
Back to Top