Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for removeFirstMatching (0.42 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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. 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)
Back to Top