Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for heapForIndex (0.06 sec)

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

        checkNotNull(element);
        modCount++;
        int insertIndex = size++;
    
        growIfNeeded();
    
        // Adds the element to the end of the heap and bubbles it up to the correct
        // position.
        heapForIndex(insertIndex).bubbleUp(insertIndex, element);
        return size <= maximumSize || pollLast() != element;
      }
    
      @CanIgnoreReturnValue
      @Override
      @CheckForNull
      public E poll() {
    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. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        checkNotNull(element);
        modCount++;
        int insertIndex = size++;
    
        growIfNeeded();
    
        // Adds the element to the end of the heap and bubbles it up to the correct
        // position.
        heapForIndex(insertIndex).bubbleUp(insertIndex, element);
        return size <= maximumSize || pollLast() != element;
      }
    
      @CanIgnoreReturnValue
      @Override
      @CheckForNull
      public E poll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top