- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 282 for orderings (0.11 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/collect/ReverseOrdering.java
import java.io.Serializable; import java.util.Iterator; import org.jspecify.annotations.Nullable; /** An ordering that uses the reverse of a given order. */ @GwtCompatible final class ReverseOrdering<T extends @Nullable Object> extends Ordering<T> implements Serializable { final Ordering<? super T> forwardOrder; ReverseOrdering(Ordering<? super T> forwardOrder) { this.forwardOrder = checkNotNull(forwardOrder); } @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 3.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
@WeakOuter private final class Heap { final Ordering<E> ordering; @SuppressWarnings("nullness:initialization.field.uninitialized") @Weak Heap otherHeap; // always initialized immediately after construction Heap(Ordering<E> ordering) { this.ordering = ordering; } int compareElements(int a, int b) { return ordering.compare(elementData(a), elementData(b)); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 33.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
@SuppressWarnings("unchecked") static final Comparator<?> NATURAL_ORDER = Ordering.natural(); private final transient SortedMap<K, V> sortedDelegate; // The comparator used by this map. It's the same as that of sortedDelegate, // except that when sortedDelegate's comparator is null, it points to a // non-null instance of Ordering.natural(). // (cpovirk: Is sortedDelegate's comparator really ever null?)Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 16.1K bytes - Click Count (0) -
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)