Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for removeFirstMatching (0.1 sec)

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

        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          return Iterables.removeFirstMatching(unfiltered(), predicate);
        }
    
        @Override
        @CheckForNull
        public E pollLast() {
          return Iterables.removeFirstMatching(unfiltered().descendingSet(), predicate);
        }
    
        @Override
        public NavigableSet<E> descendingSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (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. */
      @CheckForNull
      static <T extends @Nullable Object> T removeFirstMatching(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        checkNotNull(predicate);
        Iterator<T> iterator = removeFrom.iterator();
        while (iterator.hasNext()) {
          T next = iterator.next();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        @CheckForNull
        public Entry<K, V> pollFirstEntry() {
          return Iterables.removeFirstMatching(unfiltered.entrySet(), entryPredicate);
        }
    
        @Override
        @CheckForNull
        public Entry<K, V> pollLastEntry() {
          return Iterables.removeFirstMatching(unfiltered.descendingMap().entrySet(), entryPredicate);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        @CheckForNull
        public Entry<K, V> pollFirstEntry() {
          return Iterables.removeFirstMatching(unfiltered.entrySet(), entryPredicate);
        }
    
        @Override
        @CheckForNull
        public Entry<K, V> pollLastEntry() {
          return Iterables.removeFirstMatching(unfiltered.descendingMap().entrySet(), entryPredicate);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top