- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 219 for Comparator (0.13 sec)
-
guava-testlib/src/com/google/common/collect/testing/Helpers.java
* the given {@code comparator}. * * @see #testComparator(Comparator, List) */ public static <T extends @Nullable Object> void testComparator( Comparator<? super T> comparator, T... valuesInExpectedOrder) { testComparator(comparator, asList(valuesInExpectedOrder)); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/UnmodifiableSortedMultiset.java
super(delegate); } @Override protected SortedMultiset<E> delegate() { return (SortedMultiset<E>) super.delegate(); } @Override public Comparator<? super E> comparator() { return delegate().comparator(); } @Override SortedSet<E> createElementSet() { return Collections.unmodifiableSortedSet(delegate().elementSet()); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 23 18:43:40 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedIterable.java
/** * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code * Ordering.natural()} if the elements are ordered by their natural ordering. */ Comparator<? super T> comparator(); /** * Returns an iterator over elements of type {@code T}. The elements are returned in nondecreasing * order according to the associated {@link #comparator}. */ @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 29 02:13:00 UTC 2021 - 1.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/SortedIterable.java
/** * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code * Ordering.natural()} if the elements are ordered by their natural ordering. */ Comparator<? super T> comparator(); /** * Returns an iterator over elements of type {@code T}. The elements are returned in nondecreasing * order according to the associated {@link #comparator}. */ @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 29 02:13:00 UTC 2021 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ElementOrderTest.java
assertThat(network.nodes()).containsExactly(4, 1, 3); } // Sorting of user-defined classes @Test public void customComparator() { Comparator<NonComparableSuperClass> comparator = new Comparator<NonComparableSuperClass>() { @Override public int compare(NonComparableSuperClass left, NonComparableSuperClass right) { return left.value.compareTo(right.value);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 8.1K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java
assertEquals(set.comparator(), copy.comparator()); } @GwtIncompatible // SerializableTester public void testSingle_serialization() { SortedSet<String> set = new SafeTreeSet<>(); set.add("e"); SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); assertEquals(set.comparator(), copy.comparator()); } @GwtIncompatible // SerializableTester
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java
super(delegate); } @Override protected SortedMultiset<E> delegate() { return (SortedMultiset<E>) super.delegate(); } @Override public Comparator<? super E> comparator() { return delegate().comparator(); } @Override NavigableSet<E> createElementSet() { return unmodifiableNavigableSet(delegate().elementSet()); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ComparisonChainTest.java
import static java.lang.Integer.signum; import static java.util.Comparator.comparing; import static java.util.Comparator.naturalOrder; import static java.util.Comparator.nullsLast; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.primitives.Booleans; import java.util.Comparator; import junit.framework.AssertionFailedError;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 27 13:27:08 UTC 2024 - 7.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/StandardRowSortedTable.java
} @Override SortedSet<R> createKeySet() { return new Maps.SortedKeySet<>(this); } @Override @CheckForNull public Comparator<? super R> comparator() { return sortedBackingMap().comparator(); } @Override public R firstKey() { return sortedBackingMap().firstKey(); } @Override public R lastKey() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jul 15 15:41:16 UTC 2021 - 4.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
/** * Creates a {@code MonitorBasedPriorityBlockingQueue} with the specified initial capacity that * orders its elements according to the specified comparator. * * @param initialCapacity the initial capacity for this priority queue * @param comparator the comparator that will be used to order this priority queue. If {@code * null}, the {@linkplain Comparable natural ordering} of the elements will be used.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 07 21:36:32 UTC 2024 - 19K bytes - Viewed (0)