Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for safeContainsKey (0.07 sec)

  1. 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, @Nullable Object key) {
        checkNotNull(map);
        try {
          return map.containsKey(key);
        } catch (ClassCastException | NullPointerException e) {
          return false;
        }
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  2. 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, @Nullable Object key) {
        checkNotNull(map);
        try {
          return map.containsKey(key);
        } catch (ClassCastException | NullPointerException e) {
          return false;
        }
      }
    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