Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for safeContainsKey (0.47 sec)

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

        implements Table<R, C, V> {
    
      @Override
      public boolean containsRow(@CheckForNull Object rowKey) {
        return Maps.safeContainsKey(rowMap(), rowKey);
      }
    
      @Override
      public boolean containsColumn(@CheckForNull Object columnKey) {
        return Maps.safeContainsKey(columnMap(), columnKey);
      }
    
      @Override
      public Set<R> rowKeySet() {
        return rowMap().keySet();
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jul 15 15:41:16 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractTable.java

        implements Table<R, C, V> {
    
      @Override
      public boolean containsRow(@CheckForNull Object rowKey) {
        return Maps.safeContainsKey(rowMap(), rowKey);
      }
    
      @Override
      public boolean containsColumn(@CheckForNull Object columnKey) {
        return Maps.safeContainsKey(columnMap(), columnKey);
      }
    
      @Override
      public Set<R> rowKeySet() {
        return rowMap().keySet();
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jul 15 15:41:16 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

      boolean isPartialView() {
        return false;
      }
    
      public final boolean isEmpty() {
        return delegate.isEmpty();
      }
    
      public final boolean containsKey(@Nullable Object key) {
        return Maps.safeContainsKey(delegate, key);
      }
    
      public final boolean containsValue(@Nullable Object value) {
        return delegate.containsValue(value);
      }
    
      public @Nullable V get(@Nullable Object key) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/StandardTable.java

          return false;
        }
        for (Map<C, V> map : backingMap.values()) {
          if (safeContainsKey(map, columnKey)) {
            return true;
          }
        }
        return false;
      }
    
      @Override
      public boolean containsRow(@CheckForNull Object rowKey) {
        return rowKey != null && safeContainsKey(backingMap, rowKey);
      }
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 30.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/StandardTable.java

          return false;
        }
        for (Map<C, V> map : backingMap.values()) {
          if (safeContainsKey(map, columnKey)) {
            return true;
          }
        }
        return false;
      }
    
      @Override
      public boolean containsRow(@CheckForNull Object rowKey) {
        return rowKey != null && safeContainsKey(backingMap, rowKey);
      }
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 29.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          return new AsMapEntries();
        }
    
        // The following methods are included for performance.
    
        @Override
        public boolean containsKey(@CheckForNull Object key) {
          return Maps.safeContainsKey(submap, key);
        }
    
        @Override
        @CheckForNull
        public Collection<V> get(@CheckForNull Object key) {
          Collection<V> collection = Maps.safeGet(submap, key);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          return new AsMapEntries();
        }
    
        // The following methods are included for performance.
    
        @Override
        public boolean containsKey(@CheckForNull Object key) {
          return Maps.safeContainsKey(submap, key);
        }
    
        @Override
        @CheckForNull
        public Collection<V> get(@CheckForNull Object key) {
          Collection<V> collection = Maps.safeGet(submap, key);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 48K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

          return null;
        }
      }
    
      /**
       * Delegates to {@link Map#containsKey}. Returns {@code false} on {@code ClassCastException} and
       * {@code NullPointerException}.
       */
      static boolean safeContainsKey(Map<?, ?> map, @CheckForNull Object key) {
        checkNotNull(map);
        try {
          return map.containsKey(key);
        } catch (ClassCastException | NullPointerException e) {
          return false;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

          return null;
        }
      }
    
      /**
       * Delegates to {@link Map#containsKey}. Returns {@code false} on {@code ClassCastException} and
       * {@code NullPointerException}.
       */
      static boolean safeContainsKey(Map<?, ?> map, @CheckForNull Object key) {
        checkNotNull(map);
        try {
          return map.containsKey(key);
        } catch (ClassCastException | NullPointerException e) {
          return false;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
Back to top