Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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