- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 180 for naturally (0.15 sec)
-
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
* of their natural ordering. */ public static <E extends Comparable<?>> Builder<E> reverseOrder() { return new Builder<>(Collections.reverseOrder()); } /** * Returns a builder that creates immutable sorted sets whose elements are ordered by their * natural ordering. The sorted sets use {@link Ordering#natural()} as the comparator. This method
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java
} } public enum ComparatorType { CHEAP { @Override public Comparator<Integer> get() { return Ordering.natural(); } }, EXPENSIVE { @Override public Comparator<Integer> get() { return Ordering.natural().onResultOf(new ExpensiveComputation()); } }; public abstract Comparator<Integer> get(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java
.allowsSelfLoops(true) .nodeOrder(ElementOrder.<String>natural()) .<String, Integer>immutable() .build(); assertThat(emptyNetwork.isDirected()).isTrue(); assertThat(emptyNetwork.allowsSelfLoops()).isTrue(); assertThat(emptyNetwork.nodeOrder()).isEqualTo(ElementOrder.<String>natural()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun May 05 18:02:35 UTC 2019 - 5.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
.allowsSelfLoops(true) .nodeOrder(ElementOrder.<String>natural()) .<String, Integer>immutable() .build(); assertThat(emptyGraph.isDirected()).isTrue(); assertThat(emptyGraph.allowsSelfLoops()).isTrue(); assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jan 09 20:24:43 UTC 2020 - 6.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java
} public void testFromRangeAll() { assertEquals(GeneralRange.all(Ordering.natural()), GeneralRange.from(Range.all())); } public void testFromRangeOneEnd() { for (BoundType endpointType : BoundType.values()) { assertEquals( GeneralRange.upTo(Ordering.natural(), 3, endpointType), GeneralRange.from(Range.upTo(3, endpointType))); assertEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* Creates a new min-max priority queue with default settings: natural order, no maximum size, no * initial contents, and an initial expected size of 11. */ public static <E extends Comparable<E>> MinMaxPriorityQueue<E> create() { return new Builder<Comparable<E>>(Ordering.natural()).create(); } /** * Creates a new min-max priority queue using natural order, no maximum size, and initially
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 34.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
return checkedCreate(nullCheckedTreeSet(elements)).descendingSet(); } /** Sorts the elements in reverse natural order. */ @Override public List<Integer> order(List<Integer> insertionOrder) { sort(insertionOrder, Ordering.<Integer>natural().reverse()); return insertionOrder; } } private abstract static class AbstractContiguousSetGenerator
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ReverseNaturalOrdering.java
import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.annotations.GwtCompatible; import java.io.Serializable; import java.util.Iterator; /** An ordering that uses the reverse of the natural order of the values. */ @GwtCompatible(serializable = true) @SuppressWarnings({"unchecked", "rawtypes"}) // TODO(kevinb): the right way to explain this?? @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
@Override public SortedSet<String> create(String[] elements) { return new TreeSet<>(MinimalCollection.of(elements)); } }) .named("TreeSet, natural") .withFeatures( SetFeature.GENERAL_PURPOSE, CollectionFeature.SERIALIZABLE, CollectionFeature.KNOWN_ORDER, CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java
assertThat(copy.keySet()).containsExactly("google", "tree").inOrder(); assertThat(copy.get("google")).containsExactly(2, 6).inOrder(); assertEquals(Ordering.natural(), copy.keyComparator()); assertEquals(Ordering.natural(), copy.valueComparator()); assertEquals(Ordering.natural(), copy.get("google").comparator()); } public void testToString() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 3);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.4K bytes - Viewed (0)