- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 224 for comparators (0.24 sec)
-
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) -
guava/src/com/google/common/collect/Collections2.java
Iterable<E> elements, Comparator<? super E> comparator) { return new OrderedPermutationCollection<E>(elements, comparator); } private static final class OrderedPermutationCollection<E> extends AbstractCollection<List<E>> { final ImmutableList<E> inputList; final Comparator<? super E> comparator; final int size; OrderedPermutationCollection(Iterable<E> input, Comparator<? super E> comparator) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 23.1K bytes - Viewed (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>>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 17.5K bytes - Viewed (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. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.7K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java
} /** * Returns an ordered list of lifecycles */ public List<Lifecycle> getLifeCycles() { List<String> lifecycleIds = Arrays.asList(STANDARD_LIFECYCLES); Comparator<String> comparator = (l, r) -> { int lx = lifecycleIds.indexOf(l); int rx = lifecycleIds.indexOf(r); if (lx < 0 || rx < 0) { return rx - lx; } else {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.6K bytes - Viewed (0)