- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 224 for comparators (0.11 sec)
-
guava/src/com/google/common/collect/package-info.java
* <li>{@link RangeSet} * <li>{@link DiscreteDomain} * <li>{@link ContiguousSet} * </ul> * * <h2>Classes of static utility methods</h2> * * <ul> * <li>{@link Collections2} * <li>{@link Comparators} * <li>{@link Iterables} * <li>{@link Iterators} * <li>{@link Lists} * <li>{@link Maps} * <li>{@link MoreCollectors} * <li>{@link Multimaps} * <li>{@link Multisets}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jul 06 16:29:45 UTC 2023 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
assertEquals(multimap, copy); } private static final Comparator<Double> KEY_COMPARATOR = Ordering.natural(); private static final Comparator<Double> VALUE_COMPARATOR = Ordering.<Double>natural().reverse().nullsFirst(); /** * Test that creating one TreeMultimap from another does not copy the comparators from the source * TreeMultimap. */ public void testCreateFromTreeMultimap() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableTable.java
* @since 11.0 */ @DoNotMock public static final class Builder<R, C, V> { private final List<Cell<R, C, V>> cells = Lists.newArrayList(); @CheckForNull private Comparator<? super R> rowComparator; @CheckForNull private Comparator<? super C> columnComparator; /** * Creates a new builder. The returned builder is equivalent to the builder generated by {@link * ImmutableTable#builder}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
return toString; } } /** * Returns a {@code Comparator<Boolean>} that sorts {@code true} before {@code false}. * * <p>This is particularly useful in Java 8+ in combination with {@code Comparator.comparing}, * e.g. {@code Comparator.comparing(Foo::hasBar, trueFirst())}. * * @since 21.0 */ public static Comparator<Boolean> trueFirst() { return BooleanComparator.TRUE_FIRST; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
return toString; } } /** * Returns a {@code Comparator<Boolean>} that sorts {@code true} before {@code false}. * * <p>This is particularly useful in Java 8+ in combination with {@code Comparator.comparing}, * e.g. {@code Comparator.comparing(Foo::hasBar, trueFirst())}. * * @since 21.0 */ public static Comparator<Boolean> trueFirst() { return BooleanComparator.TRUE_FIRST; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K 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) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
Comparator<Comparable<?>> comparator = Ordering.natural().reverse(); SortedSet<String> set = new ImmutableSortedSet.Builder<String>(comparator).add("a", "b", "c").build(); SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); assertTrue(elementsEqual(set, copy)); assertEquals(set.comparator(), copy.comparator()); } public void testReverseOrder() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 46.7K bytes - Viewed (0) -
istioctl/pkg/writer/compare/comparator.go
) // Comparator diffs between a config dump from Istiod and one from Envoy type Comparator struct { envoy, istiod *configdump.Wrapper w io.Writer context int location string } // NewComparator is a comparator constructor func NewComparator(w io.Writer, istiodResponses map[string][]byte, envoyResponse []byte) (*Comparator, error) { c := &Comparator{}
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/SortedIterables.java
* {@code comparator}. */ public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements) { checkNotNull(comparator); checkNotNull(elements); Comparator<?> comparator2; if (elements instanceof SortedSet) { comparator2 = comparator((SortedSet<?>) elements); } else if (elements instanceof SortedIterable) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 30 10:33:07 UTC 2021 - 2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMap.java
public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) { Comparator<? super K> comparator = map.comparator(); if (comparator == null) { // If map has a null comparator, the keys should have a natural ordering, // even though K doesn't explicitly implement Comparable. comparator = (Comparator<? super K>) NATURAL_ORDER; } if (map instanceof ImmutableSortedMap) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.4K bytes - Viewed (0)