- Sort Score
- Result 10 results
- Languages All
Results 241 - 250 of 314 for comparator (0.06 sec)
-
android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
} @Override public int hashCode() { return slowItDown() + hash; } @Override public int compareTo(Element e) { int x = slowItDown(); return x + super.compareTo(e) - x; // silly attempt to prevent opt } static int slowItDown() { int result = 0; for (int i = 1; i <= 1000; i++) { result += i; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java
} private void assertVersionOlder(String left, String right) { assertTrue( newArtifactVersion(left).compareTo(newArtifactVersion(right)) < 0, left + " should be older than " + right); assertTrue( newArtifactVersion(right).compareTo(newArtifactVersion(left)) > 0, right + " should be newer than " + left); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.5K bytes - Viewed (0) -
docs/es/docs/benchmarks.md
* Si estás comparando Uvicorn, compáralo con los servidores de aplicaciones Daphne, Hypercorn, uWSGI, etc. * **Starlette**:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Feb 07 11:39:50 UTC 2024 - 3.9K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
*/ do { approxLog10--; approxPow = approxPow.divide(BigInteger.TEN); approxCmp = approxPow.compareTo(x); } while (approxCmp > 0); } else { BigInteger nextPow = BigInteger.TEN.multiply(approxPow); int nextCmp = nextPow.compareTo(x); while (nextCmp <= 0) { approxLog10++; approxPow = nextPow; approxCmp = nextCmp;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 18.8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java
ArtifactVersion v2 = new DefaultArtifactVersion(e2.getVersion()); if (newerFirst) { return v1.compareTo(v2) > 0 ? e1 : e2; } return v1.compareTo(v2) > 0 ? e2 : e1; } if (closerFirst) { return depth1 < depth2 ? e1 : e2; } return depth1 < depth2 ? e2 : e1; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
position = 0, limit = sections.length / 4, ) { index -> val entryIndex = index * 4 val b0b1 = sections.read14BitInt(entryIndex) return@binarySearch target.compareTo(b0b1) } return when { offset >= 0 -> offset * 4 // This section was found by binary search. else -> (-offset - 2) * 4 // Not found? Use the preceding element. } } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Apr 02 11:39:58 UTC 2024 - 9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
BigInteger min = BigInteger.ZERO; BigInteger max = UnsignedLong.MAX_VALUE.bigIntegerValue(); for (BigInteger big : TEST_BIG_INTEGERS) { boolean expectSuccess = big.compareTo(min) >= 0 && big.compareTo(max) <= 0; try { assertThat(UnsignedLong.valueOf(big).bigIntegerValue()).isEqualTo(big); assertThat(expectSuccess).isTrue(); } catch (IllegalArgumentException e) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 10.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
BigInteger min = BigInteger.ZERO; BigInteger max = UnsignedLong.MAX_VALUE.bigIntegerValue(); for (BigInteger big : TEST_BIG_INTEGERS) { boolean expectSuccess = big.compareTo(min) >= 0 && big.compareTo(max) <= 0; try { assertThat(UnsignedLong.valueOf(big).bigIntegerValue()).isEqualTo(big); assertThat(expectSuccess).isTrue(); } catch (IllegalArgumentException e) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 10.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/BaseComparable.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Apr 20 11:19:03 UTC 2023 - 1.5K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
|| res2.getUpperBound() == null || res1.getLowerBound().compareTo(res2.getUpperBound()) <= 0) { if (res1.getUpperBound() == null || res2.getLowerBound() == null || res1.getUpperBound().compareTo(res2.getLowerBound()) >= 0) { ArtifactVersion lower; ArtifactVersion upper;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 19K bytes - Viewed (0)