- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 209 for orderedBy (0.06 seconds)
-
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
* instead. * * @throws NullPointerException if {@code comparator} is null */ public static <E> Builder<E> orderedBy(Comparator<E> comparator) { return new Builder<>(comparator); } /** * Returns a builder that creates immutable sorted multisets whose elements are ordered by the * reverse of their natural ordering. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 29.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
* instead. * * @throws NullPointerException if {@code comparator} is null */ public static <E> Builder<E> orderedBy(Comparator<E> comparator) { return new Builder<>(comparator); } /** * Returns a builder that creates immutable sorted multisets whose elements are ordered by the * reverse of their natural ordering. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 35.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
SortedSet<String> set = ImmutableSortedSet.orderedBy(STRING_LENGTH) .add("in", "the", "quick", "jumped", "over", "a") .build(); assertThat(set).containsExactly("a", "in", "the", "over", "quick", "jumped").inOrder(); } public void testExplicit_ordering_dupes() { SortedSet<String> set = ImmutableSortedSet.orderedBy(STRING_LENGTH)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 46.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* creation time, the queue is unbounded. * * <p>Usage example: * * {@snippet : * MinMaxPriorityQueue<User> users = MinMaxPriorityQueue.orderedBy(userComparator) * .maximumSize(1000) * .create(); * } * * <p>As a {@link Queue} it functions exactly as a {@link PriorityQueue}: its head element -- theCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* creation time, the queue is unbounded. * * <p>Usage example: * * {@snippet : * MinMaxPriorityQueue<User> users = MinMaxPriorityQueue.orderedBy(userComparator) * .maximumSize(1000) * .create(); * } * * <p>As a {@link Queue} it functions exactly as a {@link PriorityQueue}: its head element -- theCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedSet.java
* instead. * * @throws NullPointerException if {@code comparator} is null */ public static <E> Builder<E> orderedBy(Comparator<E> comparator) { return new Builder<>(comparator); } /** * Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse * of their natural ordering. */ public static <E extends Comparable<?>> Builder<E> reverseOrder() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 39.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
* instead. * * @throws NullPointerException if {@code comparator} is null */ public static <E> Builder<E> orderedBy(Comparator<E> comparator) { return new Builder<>(comparator); } /** * Returns a builder that creates immutable sorted sets whose elements are ordered by the reverse * of their natural ordering. */ public static <E extends Comparable<?>> Builder<E> reverseOrder() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 36.8K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
if (tmp == null) { return emptySet(comparator()); } fromElement = tmp; } return tailSet(fromElement); } public static <E> Builder<E> orderedBy(Comparator<E> comparator) { return new Builder<E>(comparator); } public static <E extends Comparable<?>> Builder<E> reverseOrder() { return new Builder<E>(Ordering.natural().reverse()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 15.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
.and(Equivalence.equals().onResultOf(map -> map.entrySet().asList())) .and(Equivalence.equals()); ImmutableSortedMap<String, Integer> expected = ImmutableSortedMap.<String, Integer>orderedBy(String.CASE_INSENSITIVE_ORDER) .put("one", 1) .put("three", 3) .put("two", 2) .buildOrThrow(); CollectorTester.of(collector, equivalence)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
} map.put(key, value); } public static <K extends Comparable<?>, V> Builder<K, V> naturalOrder() { return new Builder<K, V>(Ordering.natural()); } public static <K, V> Builder<K, V> orderedBy(Comparator<K> comparator) { return new Builder<K, V>(comparator); } public static <K extends Comparable<?>, V> Builder<K, V> reverseOrder() { return new Builder<K, V>(Ordering.natural().reverse()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 16.6K bytes - Click Count (0)