Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for removeMap (0.06 sec)

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

       * visit elements during a traversal once and only once.
       */
      @VisibleForTesting
      @CanIgnoreReturnValue
      @CheckForNull
      MoveDesc<E> removeAt(int index) {
        checkPositionIndex(index, size);
        modCount++;
        size--;
        if (size == index) {
          queue[size] = null;
          return null;
        }
        E actualLastElement = elementData(size);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * visit elements during a traversal once and only once.
       */
      @VisibleForTesting
      @CanIgnoreReturnValue
      @CheckForNull
      MoveDesc<E> removeAt(int index) {
        checkPositionIndex(index, size);
        modCount++;
        size--;
        if (size == index) {
          queue[size] = null;
          return null;
        }
        E actualLastElement = elementData(size);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          if (value == 8) {
            iter.remove();
          }
        }
        assertIntact(q);
        assertThat(result).containsExactly(1, 15, 13, 8, 14);
      }
    
      /**
       * This tests a special case of the removeAt() call. Moving an element sideways on the heap could
       * break the invariants. Sometimes we need to bubble an element up instead of trickling down. See
       * implementation.
       */
      public void testInvalidatingRemove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          if (value == 8) {
            iter.remove();
          }
        }
        assertIntact(q);
        assertThat(result).containsExactly(1, 15, 13, 8, 14);
      }
    
      /**
       * This tests a special case of the removeAt() call. Moving an element sideways on the heap could
       * break the invariants. Sometimes we need to bubble an element up instead of trickling down. See
       * implementation.
       */
      public void testInvalidatingRemove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeMultiset.java

          }
        }
    
        // Removes the maximum node from this subtree to be reused elsewhere
        @CheckForNull
        private AvlNode<E> removeMax(AvlNode<E> node) {
          if (right == null) {
            return left;
          } else {
            right = right.removeMax(node);
            distinctElements--;
            totalCount -= node.elemCount;
            return rebalance();
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TreeMultiset.java

          }
        }
    
        // Removes the maximum node from this subtree to be reused elsewhere
        @CheckForNull
        private AvlNode<E> removeMax(AvlNode<E> node) {
          if (right == null) {
            return left;
          } else {
            right = right.removeMax(node);
            distinctElements--;
            totalCount -= node.elemCount;
            return rebalance();
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top