- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 394 for compareTo (0.06 sec)
-
android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java
.isTrue(); } } public void testCompare() { for (byte x : VALUES) { for (byte y : VALUES) { // Only compare the sign of the result of compare(). int expected = Byte.compare(x, y); int actual = SignedBytes.compare(x, y); if (expected == 0) { assertWithMessage(x + ", " + y).that(actual).isEqualTo(expected); } else if (expected < 0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CipherSuite.kt
level = DeprecationLevel.ERROR, ) fun javaName(): String = javaName override fun toString(): String = javaName companion object { /** * Compares cipher suites names like "TLS_RSA_WITH_NULL_MD5" and "SSL_RSA_WITH_NULL_MD5", * ignoring the "TLS_" or "SSL_" prefix which is not consistent across platforms. In particular
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 39.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ByFunctionOrdering.java
this.function = checkNotNull(function); this.ordering = checkNotNull(ordering); } @Override public int compare(@ParametricNullness F left, @ParametricNullness F right) { return ordering.compare(function.apply(left), function.apply(right)); } @Override public boolean equals(@Nullable Object object) { if (object == this) { return true; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 2.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ReverseOrdering.java
ReverseOrdering(Ordering<? super T> forwardOrder) { this.forwardOrder = checkNotNull(forwardOrder); } @Override public int compare(@ParametricNullness T a, @ParametricNullness T b) { return forwardOrder.compare(b, a); } @SuppressWarnings("unchecked") // how to explain? @Override public <S extends T> Ordering<S> reverse() { return (Ordering<S>) forwardOrder; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompoundOrdering.java
this.comparators = Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]); } @Override public int compare(@ParametricNullness T left, @ParametricNullness T right) { for (int i = 0; i < comparators.length; i++) { int result = comparators[i].compare(left, right); if (result != 0) { return result; } } return 0; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 2.5K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.19.md
- github.com/evanphx/json-patch: [v4.2.0+incompatible → e83c0a1](https://github.com/evanphx/json-patch/compare/v4.2.0...e83c0a1) - github.com/fsnotify/fsnotify: [v1.4.7 → v1.4.9](https://github.com/fsnotify/fsnotify/compare/v1.4.7...v1.4.9) - github.com/go-kit/kit: [v0.8.0 → v0.9.0](https://github.com/go-kit/kit/compare/v0.8.0...v0.9.0)
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Wed Jan 05 05:42:32 UTC 2022 - 489.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ReverseOrdering.java
ReverseOrdering(Ordering<? super T> forwardOrder) { this.forwardOrder = checkNotNull(forwardOrder); } @Override public int compare(@ParametricNullness T a, @ParametricNullness T b) { return forwardOrder.compare(b, a); } @SuppressWarnings("unchecked") // how to explain? @Override public <S extends T> Ordering<S> reverse() { return (Ordering<S>) forwardOrder; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 3.2K bytes - Viewed (0) -
cmd/metrics-v2_test.go
} // Deterministic ordering slices.SortFunc(capitalPutObjects, func(a MetricV2, b MetricV2) int { le1 := a.VariableLabels["le"] le2 := a.VariableLabels["le"] return strings.Compare(le1, le2) }) if le := capitalPutObjects[0].VariableLabels["le"]; le != "0.500" { t.Errorf("Expected le='0.050' api=PutObject metrics but got '%v'", le) } if value := capitalPutObjects[0].Value; value != 1 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 6.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
buffer[bufferSize++] = elem; // uncheckedCastNullableTToT is safe because bufferSize > 0. if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) { threshold = elem; } // uncheckedCastNullableTToT is safe because bufferSize > 0. } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) { // Otherwise, we can ignore elem; we've seen k better elements.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/SMBSigningDigest.java
void sign(byte[] data, int offset, int length, CommonServerMessageBlock request, CommonServerMessageBlock response); /** * Performs MAC signature verification. This calculates the signature * of the SMB and compares it to the signature field on the SMB itself. * * @param data * The data. * @param offset * The starting offset at which the SMB header begins. * @param length
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0)