- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for sortedCopy (0.79 sec)
-
guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java
import java.util.List; import java.util.Random; import java.util.Set; import java.util.TreeSet; /** * Provides supporting data for performance notes in the documentation of {@link * Ordering#sortedCopy} and {@link Ordering#immutableSortedCopy}, as well as for automated code * suggestions. * */ public class SortedCopyBenchmark { @Param({"1", "10", "1000", "1000000"}) int size; // logarithmic triangular
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
.compare( left.getValue(), right.getValue(), Ordering.natural().nullsFirst()) .result(); } }.sortedCopy(insertionOrder); } }) .named("TreeMultimap nullsFirst") .withFeatures( MapFeature.ALLOWS_NULL_KEYS,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java
import java.util.List; import java.util.Random; import java.util.Set; import java.util.TreeSet; /** * Provides supporting data for performance notes in the documentation of {@link * Ordering#sortedCopy} and {@link Ordering#immutableSortedCopy}, as well as for automated code * suggestions. * */ public class SortedCopyBenchmark { @Param({"1", "10", "1000", "1000000"}) int size; // logarithmic triangular
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java
@Override public int compare(Entry<String, Integer> left, Entry<String, Integer> right) { return left.getKey().compareTo(right.getKey()); } }.sortedCopy(insertionOrder); } @Override public List<Entry<String, Integer>> create(Object... elements) { ImmutableSortedMap.Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java
@Override public int compare(Entry<String, Integer> left, Entry<String, Integer> right) { return left.getKey().compareTo(right.getKey()); } }.sortedCopy(insertionOrder); } @Override public List<Entry<String, Integer>> create(Object... elements) { ImmutableSortedMap.Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AllEqualOrdering.java
public int compare(@CheckForNull Object left, @CheckForNull Object right) { return 0; } @Override public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) { return Lists.newArrayList(iterable); } @Override public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) { return ImmutableList.copyOf(iterable); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:24:26 UTC 2024 - 1.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/AllEqualOrdering.java
public int compare(@CheckForNull Object left, @CheckForNull Object right) { return 0; } @Override public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) { return Lists.newArrayList(iterable); } @Override public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) { return ImmutableList.copyOf(iterable); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:24:26 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Oct 06 13:04:03 UTC 2024 - 29.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
unmodifiableList(Arrays.<@Nullable Integer>asList(5, 0, 3, null, 0, 9)); List<@Nullable Integer> sortedInts = numberOrdering.nullsLast().sortedCopy(unsortedInts); assertEquals(Arrays.<@Nullable Integer>asList(0, 0, 3, 5, 9, null), sortedInts); assertEquals(emptyList(), numberOrdering.sortedCopy(Collections.<Integer>emptyList())); } public void testImmutableSortedCopy() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
unmodifiableList(Arrays.<@Nullable Integer>asList(5, 0, 3, null, 0, 9)); List<@Nullable Integer> sortedInts = numberOrdering.nullsLast().sortedCopy(unsortedInts); assertEquals(Arrays.<@Nullable Integer>asList(0, 0, 3, 5, 9, null), sortedInts); assertEquals(emptyList(), numberOrdering.sortedCopy(Collections.<Integer>emptyList())); } public void testImmutableSortedCopy() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0)