Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for removeFirstMatching (0.17 seconds)

  1. guava/src/com/google/common/collect/Iterables.java

        return Iterators.removeIf(removeFrom.iterator(), predicate);
      }
    
      /** Removes and returns the first matching element, or returns {@code null} if there is none. */
      static <T extends @Nullable Object> @Nullable T removeFirstMatching(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        checkNotNull(predicate);
        Iterator<T> iterator = removeFrom.iterator();
        while (iterator.hasNext()) {
          T next = iterator.next();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

          list.remove(n);
        }
      }
    
      /** Removes and returns the first matching element, or returns {@code null} if there is none. */
      static <T extends @Nullable Object> @Nullable T removeFirstMatching(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        checkNotNull(predicate);
        Iterator<T> iterator = removeFrom.iterator();
        while (iterator.hasNext()) {
          T next = iterator.next();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Sets.java

        }
    
        @Override
        public @Nullable E pollFirst() {
          return Iterables.removeFirstMatching(unfiltered(), predicate);
        }
    
        @Override
        public @Nullable E pollLast() {
          return Iterables.removeFirstMatching(unfiltered().descendingSet(), predicate);
        }
    
        @Override
        public NavigableSet<E> descendingSet() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 81.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Sets.java

        }
    
        @Override
        public @Nullable E pollFirst() {
          return Iterables.removeFirstMatching(unfiltered(), predicate);
        }
    
        @Override
        public @Nullable E pollLast() {
          return Iterables.removeFirstMatching(unfiltered().descendingSet(), predicate);
        }
    
        @Override
        public NavigableSet<E> descendingSet() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 83K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        public @Nullable Entry<K, V> pollFirstEntry() {
          return Iterables.removeFirstMatching(unfiltered.entrySet(), entryPredicate);
        }
    
        @Override
        public @Nullable Entry<K, V> pollLastEntry() {
          return Iterables.removeFirstMatching(unfiltered.descendingMap().entrySet(), entryPredicate);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        public @Nullable Entry<K, V> pollFirstEntry() {
          return Iterables.removeFirstMatching(unfiltered.entrySet(), entryPredicate);
        }
    
        @Override
        public @Nullable Entry<K, V> pollLastEntry() {
          return Iterables.removeFirstMatching(unfiltered.descendingMap().entrySet(), entryPredicate);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
Back to Top