Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for nswap (0.03 sec)

  1. guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

          }
        },
        ALMOST_SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
            if (list.size() > 1) {
              int i = (list.size() - 1) / 2;
              Collections.swap(list, i, i + 1);
            }
          }
        },
        RANDOM {
          @Override
          void arrange(List<Integer> list) {}
        };
    
        abstract void arrange(List<Integer> list);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

          }
        },
        ALMOST_SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
            if (list.size() > 1) {
              int i = (list.size() - 1) / 2;
              Collections.swap(list, i, i + 1);
            }
          }
        },
        RANDOM {
          @Override
          void arrange(List<Integer> list) {}
        };
    
        abstract void arrange(List<Integer> list);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TopKSelector.java

          if (comparator.compare(uncheckedCastNullableTToT(buffer[i]), pivotValue) < 0) {
            swap(pivotNewIndex, i);
            pivotNewIndex++;
          }
        }
        buffer[right] = buffer[pivotNewIndex];
        buffer[pivotNewIndex] = pivotValue;
        return pivotNewIndex;
      }
    
      private void swap(int i, int j) {
        T tmp = buffer[i];
        buffer[i] = buffer[j];
        buffer[j] = tmp;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ObjectArrays.java

        int i = 0;
        for (Object element : elements) {
          array[i++] = element;
        }
        return array;
      }
    
      /** Swaps {@code array[i]} with {@code array[j]}. */
      static void swap(Object[] array, int i, int j) {
        Object temp = array[i];
        array[i] = array[j];
        array[j] = temp;
      }
    
      @CanIgnoreReturnValue
      static Object[] checkElementsNotNull(Object... array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ObjectArrays.java

        int i = 0;
        for (Object element : elements) {
          array[i++] = element;
        }
        return array;
      }
    
      /** Swaps {@code array[i]} with {@code array[j]}. */
      static void swap(Object[] array, int i, int j) {
        Object temp = array[i];
        array[i] = array[j];
        array[j] = temp;
      }
    
      @CanIgnoreReturnValue
      static Object[] checkElementsNotNull(Object... array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * <p>Normally this method leaves the elements at up to {@code index - 1}, inclusive, untouched.
       * Under these circumstances, it returns {@code null}.
       *
       * <p>Occasionally, in order to maintain the heap invariant, it must swap a later element of the
       * list with one before {@code index}. Under these circumstances it returns a pair of elements as
       * a {@link MoveDesc}. The first one is the element that was previously at the end of the heap and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * <p>Normally this method leaves the elements at up to {@code index - 1}, inclusive, untouched.
       * Under these circumstances, it returns {@code null}.
       *
       * <p>Occasionally, in order to maintain the heap invariant, it must swap a later element of the
       * list with one before {@code index}. Under these circumstances it returns a pair of elements as
       * a {@link MoveDesc}. The first one is the element that was previously at the end of the heap and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    * 🔧 Correct DeprecationWarning config and comment in pytest settings. PR [#4008](https://github.com/tiangolo/fastapi/pull/4008) by [@graingert](https://github.com/graingert).
    * 🔧 Swap light/dark theme button icon. PR [#3246](https://github.com/tiangolo/fastapi/pull/3246) by [@eddsalkield](https://github.com/eddsalkield).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top