- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 102 for orderings (0.06 seconds)
-
guava-tests/test/com/google/common/collect/EnumBiMapTest.java
assertEquals(Country.class, bimap.valueType()); } public void testIterationOrder() { // The enum orderings are alphabetical, leading to the bimap and its inverse // having inconsistent iteration orderings. Map<Currency, Country> map = ImmutableMap.of( Currency.DOLLAR, Country.CANADA, Currency.PESO, Country.CHILE,
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 11.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Ordering.java
* </ul> * * <h3>Understanding complex orderings</h3> * * <p>Complex chained orderings like the following example can be challenging to understand. * * {@snippet : * Ordering<Foo> ordering = * Ordering.natural() * .nullsFirst() * .onResultOf(getBarFunction) * .nullsLast(); * } * * Note that each chaining method returns a new ordering instance which is backed by the previous
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 39.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/CollectorTester.java
Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) { this.collector = checkNotNull(collector); this.equivalence = checkNotNull(equivalence); } /** * Different orderings for combining the elements of an input array, which must all produce the * same result. */ @IgnoreJRERequirement // *should* be redundant with the one on CollectorTester enum CollectStrategy {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 22:01:32 GMT 2025 - 6.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 28.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 27.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
testComparator(arbitrary, list); } public void testUsingToString() { Ordering<Object> ordering = Ordering.usingToString(); testComparator(ordering, 1, 12, 124, 2); assertEquals("Ordering.usingToString()", ordering.toString()); assertSame(ordering, reserialize(ordering)); } // use an enum to get easy serializability
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 42.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
testComparator(arbitrary, list); } public void testUsingToString() { Ordering<Object> ordering = Ordering.usingToString(); testComparator(ordering, 1, 12, 124, 2); assertEquals("Ordering.usingToString()", ordering.toString()); assertSame(ordering, reserialize(ordering)); } // use an enum to get easy serializability
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 42.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
implements TestSetGenerator<UnhashableObject> {} private static Ordering<String> createExplicitComparator(String[] elements) { // Collapse equal elements, which Ordering.explicit() doesn't support, while // maintaining the ordering by first occurrence. Set<String> elementsPlus = new LinkedHashSet<>(); elementsPlus.add(BEFORE_FIRST);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 15.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
// Unsafe, see ImmutableSortedMultisetFauxverideShim. @SuppressWarnings("unchecked") Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable<?>>natural(); return copyOf(naturalOrder, elements); } /** * Returns an immutable sorted multiset containing the given elements sorted by their natural * ordering. * * <p>This method is not type-safe, as it may be called on elements that are not mutuallyCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 29.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
* @author Kevin Bourrillion * @author Ben Yu * @since 12.0 */ @GwtIncompatible @J2ktIncompatible @NullMarked public final class ArbitraryInstances { private static final Ordering<Field> BY_FIELD_NAME = new Ordering<Field>() { @Override public int compare(Field left, Field right) { return left.getName().compareTo(right.getName()); } }; /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 20.9K bytes - Click Count (0)