- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 199 for Comparators (0.1 seconds)
-
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
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) -
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
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.5K bytes - Click Count (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;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 03:05:13 GMT 2025 - 7.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SortedMultisets.java
} @Override public Iterator<E> iterator() { return Multisets.elementIterator(multiset().entrySet().iterator()); } @Override public Comparator<? super E> comparator() { return multiset().comparator(); } @Override public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanLogger.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.lifecycle.internal.concurrent; import javax.inject.Named; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.function.Consumer; import java.util.stream.Collectors;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Mar 30 23:08:36 GMT 2025 - 7.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
implements Supplier<SortedSet<V>>, Serializable { private final Comparator<? super V> comparator; TreeSetSupplier(Comparator<? super V> comparator) { this.comparator = checkNotNull(comparator); } @Override public SortedSet<V> get() { return new TreeSet<>(comparator); } } private static final class EnumSetSupplier<V extends Enum<V>>
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 18K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/CollectionsUtil.java
* @param comparator the comparator for ordering the elements in the priority queue * @return a new instance of {@link PriorityBlockingQueue} * @see PriorityBlockingQueue#PriorityBlockingQueue(int, Comparator) */ public static <E> PriorityBlockingQueue<E> newPriorityBlockingQueue(final int initialCapacity, final Comparator<? super E> comparator) {Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 49.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/ForwardingSortedSet.java
* invoke methods, they invoke methods on the {@code ForwardingSortedSet}. * * <p>Each of the {@code standard} methods, where appropriate, uses the set's comparator (or the * natural ordering of the elements, if there is no comparator) to test element equality. As a * result, if the comparator is not consistent with equals, some of the standard implementations may * violate the {@code Set} contract. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 16:28:01 GMT 2025 - 5.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java
final E lastInclusive; private final Comparator<? super E> comparator; private final TestSortedSetGenerator<E> delegate; public SortedSetSubsetTestSetGenerator( TestSortedSetGenerator<E> delegate, Bound to, Bound from) { this.to = to; this.from = from; this.delegate = delegate; SortedSet<E> emptySet = delegate.create(); this.comparator = emptySet.comparator();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jan 30 16:59:10 GMT 2025 - 18.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
Comparator<? super E> comparator = spliterator.getComparator(); if (comparator == null) { // A sorted spliterator with no comparator is already using natural order. // (We could probably find a way to avoid rawtypes here if we wanted.) @SuppressWarnings({"unchecked", "rawtypes"}) Comparator<? super E> naturalOrder =
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 12.1K bytes - Click Count (0)