- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 627 for compactor (0.23 sec)
-
guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
// The Unsafe implementation if it's available. Otherwise, the Java implementation. Comparator<byte[]> comparator = UnsignedBytes.lexicographicalComparator(); Helpers.testComparator(comparator, ordered); assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator); // The Java implementation. Comparator<byte[]> javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 13.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedMap.java
@SuppressWarnings({"unchecked", "nullness"}) static int unsafeCompare( @CheckForNull Comparator<?> comparator, @CheckForNull Object o1, @CheckForNull Object o2) { if (comparator == null) { return ((Comparable<@Nullable Object>) o1).compareTo(o2); } else { return ((Comparator<@Nullable Object>) comparator).compare(o1, o2); } } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultimap.java
* may be null; use {@link Ordering#natural()} to specify natural order. * * @param keyComparator the comparator that determines the key ordering * @param valueComparator the comparator that determines the value ordering */ public static <K extends @Nullable Object, V extends @Nullable Object> TreeMultimap<K, V> create(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat Mar 09 00:21:17 UTC 2024 - 8.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
private final transient long[] cumulativeCounts; private final transient int offset; private final transient int length; RegularImmutableSortedMultiset(Comparator<? super E> comparator) { this.elementSet = ImmutableSortedSet.emptySet(comparator); this.cumulativeCounts = ZERO_CUMULATIVE_COUNTS; this.offset = 0; this.length = 0; } RegularImmutableSortedMultiset(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java
new byte[] {GREATEST, GREATEST, GREATEST}); Comparator<byte[]> comparator = SignedBytes.lexicographicalComparator(); Helpers.testComparator(comparator, ordered); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testLexicographicalComparatorSerializable() { Comparator<byte[]> comparator = SignedBytes.lexicographicalComparator();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/AttributeMatchingRules.java
import org.gradle.api.attributes.MultipleCandidatesDetails; import java.util.Comparator; public abstract class AttributeMatchingRules { public static <T> Action<? super CompatibilityCheckDetails<T>> orderedCompatibility(Comparator<? super T> comparator, boolean reverse) { return new DefaultOrderedCompatibilityRule<>(comparator, reverse); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompoundOrdering.java
final class CompoundOrdering<T extends @Nullable Object> extends Ordering<T> implements Serializable { final Comparator<? super T>[] comparators; @SuppressWarnings("unchecked") // Generic array creation CompoundOrdering(Comparator<? super T> primary, Comparator<? super T> secondary) { this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary}; } @SuppressWarnings("unchecked") // Generic array creation
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
* there is no need to use this method. * * @param comparator the comparator that defines the order * @return comparator itself if it is already an {@code Ordering}; otherwise an ordering that * wraps that comparator */ @GwtCompatible(serializable = true) public static <T extends @Nullable Object> Ordering<T> from(Comparator<T> comparator) { return (comparator instanceof Ordering) ? (Ordering<T>) comparator
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 39.4K bytes - Viewed (0) -
src/encoding/json/scanner_test.go
t.Run(tt.Name, func(t *testing.T) { buf.Reset() if err := Compact(&buf, []byte(tt.compact)); err != nil { t.Errorf("%s: Compact error: %v", tt.Where, err) } else if got := buf.String(); got != tt.compact { t.Errorf("%s: Compact:\n\tgot: %s\n\twant: %s", tt.Where, indentNewlines(got), indentNewlines(tt.compact)) } buf.Reset() if err := Compact(&buf, []byte(tt.indent)); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:00:37 UTC 2023 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedBytes.java
Object[] constants = requireNonNull(theClass.getEnumConstants()); // yes, UnsafeComparator does implement Comparator<byte[]> @SuppressWarnings("unchecked") Comparator<byte[]> comparator = (Comparator<byte[]>) constants[0]; return comparator; } catch (Throwable t) { // ensure we really catch *everything* return lexicographicalComparatorJavaImpl(); } } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Jun 07 22:25:23 UTC 2024 - 18.3K bytes - Viewed (0)