Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for Sort (0.04 sec)

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

      @Param InputOrder inputOrder;
    
      enum InputOrder {
        SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
          }
        },
        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);
            }
          }
        },
    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-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.testers.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.AbstractMapTester;
    import com.google.common.collect.testing.Helpers;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

      @Param InputOrder inputOrder;
    
      enum InputOrder {
        SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
          }
        },
        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);
            }
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          sort(copy);
          tmp += copy[0];
        }
        return tmp;
      }
    
      @Benchmark
      int arraysSortOrderingNatural(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          sort(copy, Ordering.natural());
          tmp += copy[0];
        }
        return tmp;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSortedSetGenerator.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.List;
    import java.util.SortedSet;
    
    /**
     * Create integer sets for testing collections that are sorted by natural ordering.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.testers.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.AbstractMapTester;
    import com.google.common.collect.testing.Helpers;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Enums;
    import java.util.List;
    import java.util.Set;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

    import static com.google.common.collect.testing.SampleElements.Strings.BEFORE_FIRST_2;
    import static java.lang.Math.max;
    import static java.util.Arrays.asList;
    import static java.util.Collections.sort;
    import static junit.framework.Assert.assertEquals;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.ContiguousSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.List;
    import java.util.SortedSet;
    
    /**
     * Create string sets for testing collections that are sorted by natural ordering.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Enums;
    import java.util.List;
    import java.util.Set;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top