Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for safeRemove (0.04 sec)

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

      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V remove(@Nullable Object rowKey, @Nullable Object columnKey) {
        Map<C, V> row = safeGet(rowMap(), rowKey);
        return (row == null) ? null : Maps.safeRemove(row, columnKey);
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V put(
          @ParametricNullness R rowKey, @ParametricNullness C columnKey, @ParametricNullness V value) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractTable.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V remove(@Nullable Object rowKey, @Nullable Object columnKey) {
        Map<C, V> row = safeGet(rowMap(), rowKey);
        return (row == null) ? null : Maps.safeRemove(row, columnKey);
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V put(
          @ParametricNullness R rowKey, @ParametricNullness C columnKey, @ParametricNullness V value) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

            return standardContainsAll(collection);
          }
    
          @Override
          public boolean remove(@Nullable Object object) {
            return object != null && Collections2.safeRemove(delegate, object);
          }
    
          @Override
          public boolean removeAll(Collection<?> c) {
            return standardRemoveAll(c);
          }
        };
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Collections2.java

        }
      }
    
      /**
       * Delegates to {@link Collection#remove}. Returns {@code false} if the {@code remove} method
       * throws a {@code ClassCastException} or {@code NullPointerException}.
       */
      static boolean safeRemove(Collection<?> collection, @Nullable Object object) {
        checkNotNull(collection);
        try {
          return collection.remove(object);
        } catch (ClassCastException | NullPointerException e) {
          return false;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
      }
    
      /** Removes all values for the provided key. */
      private void removeValuesForKey(@Nullable Object key) {
        Collection<V> collection = Maps.safeRemove(map, key);
    
        if (collection != null) {
          int count = collection.size();
          collection.clear();
          totalSize -= count;
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

        }
      }
    
      /**
       * Delegates to {@link Map#remove}. Returns {@code null} on {@code ClassCastException} and {@code
       * NullPointerException}.
       */
      static <V extends @Nullable Object> @Nullable V safeRemove(Map<?, V> map, @Nullable Object key) {
        checkNotNull(map);
        try {
          return map.remove(key);
        } catch (ClassCastException | NullPointerException e) {
          return null;
        }
      }
    
    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/Maps.java

        }
      }
    
      /**
       * Delegates to {@link Map#remove}. Returns {@code null} on {@code ClassCastException} and {@code
       * NullPointerException}.
       */
      static <V extends @Nullable Object> @Nullable V safeRemove(Map<?, V> map, @Nullable Object key) {
        checkNotNull(map);
        try {
          return map.remove(key);
        } catch (ClassCastException | NullPointerException e) {
          return null;
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 157.6K bytes
    - Viewed (0)
Back to top