Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for removeMin (0.06 sec)

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

            newTop.right = right.removeMin(newTop);
            newTop.left = left;
            newTop.distinctElements = distinctElements - 1;
            newTop.totalCount = totalCount - oldElemCount;
            return newTop.rebalance();
          }
        }
    
        // Removes the minimum node from this subtree to be reused elsewhere
        private @Nullable AvlNode<E> removeMin(AvlNode<E> node) {
          if (left == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

        assertFalse("removeIf(x -> false) should return false", collection.removeIf(x -> false));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveIf_sometimesTrue() {
        assertTrue(
            "removeIf(isEqual(present)) should return true",
            collection.removeIf(Predicate.isEqual(samples.e0())));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

        assertFalse("removeIf(x -> false) should return false", collection.removeIf(x -> false));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveIf_sometimesTrue() {
        assertTrue(
            "removeIf(isEqual(present)) should return true",
            collection.removeIf(Predicate.isEqual(samples.e0())));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertTrue(
            removeIf(
                list,
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
                    return s.equals("b") || s.equals("d") || s.equals("f");
                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(
            removeIf(
                list,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertTrue(
            removeIf(
                list,
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
                    return s.equals("b") || s.equals("d") || s.equals("f");
                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(
            removeIf(
                list,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

        return false;
      }
    
      @Override
      public boolean removeAll(Collection<?> c) {
        return Iterables.removeIf(
            multimap.unfiltered().entries(),
            and(multimap.entryPredicate(), valuePredicateOnEntries(in(c))));
      }
    
      @Override
      public boolean retainAll(Collection<?> c) {
        return Iterables.removeIf(
            multimap.unfiltered().entries(),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

      }
    
      @Override
      public final boolean removeAll(Collection<?> oldElements) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public final boolean removeIf(Predicate<? super E> predicate) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public final boolean retainAll(Collection<?> elementsToKeep) {
        throw new UnsupportedOperationException();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Iterables.java

       * @since 2.0
       */
      @CanIgnoreReturnValue
      public static <T extends @Nullable Object> boolean removeIf(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        if (removeFrom instanceof Collection) {
          return ((Collection<T>) removeFrom).removeIf(predicate);
        }
        return Iterators.removeIf(removeFrom.iterator(), predicate);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
  10. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top