- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 308 for orderings (0.05 seconds)
-
guava-tests/test/com/google/common/collect/TreeBasedTableTest.java
assertSame(Ordering.natural(), sortedTable.columnComparator()); assertSame( Ordering.natural(), ((SortedMap<Integer, Character>) sortedTable.rowMap().values().iterator().next()) .comparator()); sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString()); sortedTable.put("", 42, 'x');
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 15.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AllEqualOrdering.java
} @SuppressWarnings("unchecked") @Override public <S extends @Nullable Object> Ordering<S> reverse() { return (Ordering<S>) this; } private Object readResolve() { return INSTANCE; } @Override public String toString() { return "Ordering.allEqual()"; } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 1.9K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* {@link PriorityQueue} and supplies blocking retrieval operations. While this queue is logically * unbounded, attempted additions may fail due to resource exhaustion (causing {@code * OutOfMemoryError}). This class does not permit {@code null} elements. A priority queue relying on * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objectsCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 18.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
*/ private static final Comparator<?> NATURAL_ORDER = Ordering.natural(); private static final ImmutableSortedMap<Comparable<?>, Object> NATURAL_EMPTY_MAP = new ImmutableSortedMap<>(ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.of()); static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) { if (Ordering.natural().equals(comparator)) { return of(); } else {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 52.9K bytes - Click Count (0) -
android/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: Tue May 13 17:27:14 GMT 2025 - 35.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ReverseNaturalOrdering.java
import com.google.common.annotations.J2ktIncompatible; import java.io.Serializable; import java.util.Iterator; /** An ordering that uses the reverse of the natural order of the values. */ @GwtCompatible final class ReverseNaturalOrdering extends Ordering<Comparable<?>> implements Serializable { static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering(); @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java
import com.google.common.annotations.J2ktIncompatible; import java.io.Serializable; import java.util.Iterator; /** An ordering that uses the reverse of the natural order of the values. */ @GwtCompatible final class ReverseNaturalOrdering extends Ordering<Comparable<?>> implements Serializable { static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering(); @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 3K bytes - Click Count (0) -
guava/src/com/google/common/collect/UsingToStringOrdering.java
import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import java.io.Serializable; /** An ordering that uses the natural order of the string representation of the values. */ @GwtCompatible final class UsingToStringOrdering extends Ordering<Object> implements Serializable { static final UsingToStringOrdering INSTANCE = new UsingToStringOrdering(); @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 1.5K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
} // TODO: b/296487962 - Consider defining a total order over constructors. private static final Ordering<List<Class<?>>> ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST = Ordering.natural() .onResultOf((List<Class<?>> params) -> params.contains(String.class)) .compound( Ordering.natural() .onResultOf((List<Class<?>> params) -> params.contains(Throwable.class)))
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 11.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java
* of their elements." * * </blockquote> */ RESTRICTS_ELEMENTS, /** * Indicates that a collection has a well-defined ordering of its elements. The ordering may * depend on the element values, such as a {@link SortedSet}, or on the insertion ordering, such * as a {@link LinkedHashSet}. All list tests and sorted-collection tests automatically specify * this feature. */ KNOWN_ORDER, /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 30 16:15:19 GMT 2024 - 4.1K bytes - Click Count (0)