Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for safeContains (0.13 sec)

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

          if (o instanceof Cell) {
            Cell<?, ?, ?> cell = (Cell<?, ?, ?>) o;
            Map<C, V> row = safeGet(rowMap(), cell.getRowKey());
            return row != null
                && Collections2.safeContains(
                    row.entrySet(), immutableEntry(cell.getColumnKey(), cell.getValue()));
          }
          return false;
        }
    
        @Override
        public boolean remove(@Nullable Object o) {
    Registered: Fri Sep 05 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

          if (o instanceof Cell) {
            Cell<?, ?, ?> cell = (Cell<?, ?, ?>) o;
            Map<C, V> row = safeGet(rowMap(), cell.getRowKey());
            return row != null
                && Collections2.safeContains(
                    row.entrySet(), immutableEntry(cell.getColumnKey(), cell.getValue()));
          }
          return false;
        }
    
        @Override
        public boolean remove(@Nullable Object o) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/StandardTable.java

            if (obj instanceof Entry) {
              Entry<?, ?> entry = (Entry<?, ?>) obj;
              return entry.getKey() != null
                  && entry.getValue() instanceof Map
                  && Collections2.safeContains(backingMap.entrySet(), entry);
            }
            return false;
          }
    
          @Override
          public boolean remove(@Nullable Object obj) {
            if (obj instanceof Entry) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 30.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          }
    
          // The following methods are included for performance.
    
          @Override
          public boolean contains(@Nullable Object o) {
            return Collections2.safeContains(submap.entrySet(), o);
          }
    
          @Override
          public boolean remove(@Nullable Object o) {
            if (!contains(o)) {
              return false;
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       */
      public static boolean contains(Iterable<?> iterable, @Nullable Object element) {
        if (iterable instanceof Collection) {
          Collection<?> collection = (Collection<?>) iterable;
          return Collections2.safeContains(collection, element);
        }
        return Iterators.contains(iterable.iterator(), element);
      }
    
      /**
       * Removes, from an iterable, every element that belongs to the provided collection.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Iterables.java

       */
      public static boolean contains(Iterable<?> iterable, @Nullable Object element) {
        if (iterable instanceof Collection) {
          Collection<?> collection = (Collection<?>) iterable;
          return Collections2.safeContains(collection, element);
        }
        return Iterators.contains(iterable.iterator(), element);
      }
    
      /**
       * Removes, from an iterable, every element that belongs to the provided collection.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
Back to top