Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for removeMin (0.09 sec)

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

            T transform(@ParametricNullness F from) {
              return function.apply(from);
            }
          };
        }
    
        @Override
        public boolean removeIf(Predicate<? super T> filter) {
          checkNotNull(filter);
          return fromList.removeIf(element -> filter.test(function.apply(element)));
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                      return map.entrySet().remove(o);
                    }
    
                    @Override
                    public boolean removeIf(Predicate<? super Entry<String, String>> filter) {
                      return map.entrySet().removeIf(filter);
                    }
    
                    @Override
                    public boolean containsAll(Collection<?> c) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterables.java

       */
      @CanIgnoreReturnValue
      public static <T extends @Nullable Object> boolean removeIf(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        if (removeFrom instanceof RandomAccess && removeFrom instanceof List) {
          return removeIfFromRandomAccessList((List<T>) removeFrom, checkNotNull(predicate));
        }
        return Iterators.removeIf(removeFrom.iterator(), predicate);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        } catch (UnsupportedOperationException expected) {
        }
        assertCollectionsAreEquivalent(multiset, copy);
    
        try {
          multiset.removeIf(x -> false);
          fail("removeIf(Predicate) succeeded on unmodifiable collection");
        } catch (UnsupportedOperationException expected) {
        }
        assertCollectionsAreEquivalent(multiset, copy);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       *
       * <p>This method is not atomic: the map may be visible in intermediate states, where some of the
       * zero values have been removed and others have not.
       */
      public void removeAllZeros() {
        map.values().removeIf(x -> x == 0);
      }
    
      /**
       * Returns the sum of all values in this map.
       *
       * <p>This method is not atomic: the sum may or may not include other concurrent operations.
       */
      public long sum() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Predicates.equalTo;
    import static com.google.common.collect.Iterables.removeIf;
    import static com.google.common.collect.Lists.newArrayList;
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Collections2.java

          for (E element : collection) {
            checkArgument(predicate.apply(element));
          }
          return unfiltered.addAll(collection);
        }
    
        @Override
        public void clear() {
          Iterables.removeIf(unfiltered, predicate);
        }
    
        @Override
        public boolean contains(@CheckForNull Object element) {
          if (safeContains(unfiltered, element)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final boolean removeIf(Predicate<? super E> filter) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the collection unmodified.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(newArrayList("a", "c", "e"), list);
      }
    
      public void testRemoveIf() {
        List<String> list = newArrayList("a", "b", "c", "d", "e");
        assertTrue(
            Iterators.removeIf(
                list.iterator(),
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
                    return s.equals("b") || s.equals("d") || s.equals("f");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Multisets.java

        }
    
        @Override
        public boolean removeAll(Collection<?> elementsToRemove) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean removeIf(java.util.function.Predicate<? super E> filter) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean retainAll(Collection<?> elementsToRetain) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
Back to top