- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 456 for compareTo (0.07 sec)
-
android/guava/src/com/google/common/primitives/Ints.java
} /** * Compares the two specified {@code int} values. The sign of the value returned is the same as * that of {@code ((Integer) a).compareTo(b)}. * * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the * equivalent {@link Integer#compare} method instead. * * @param a the first {@code int} to compare * @param b the second {@code int} to compare
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 31K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
for (double x : VALUES) { for (double y : VALUES) { // note: spec requires only that the sign is the same assertWithMessage(x + ", " + y) .that(Doubles.compare(x, y)) .isEqualTo(Double.valueOf(x).compareTo(y)); } } } public void testContains() { assertThat(Doubles.contains(EMPTY, (double) 1)).isFalse();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java
return vr.containsVersion(actualVersion); } @Test void testOrder0() { // assertTrue( new DefaultArtifactVersion( "1.0-alpha10" ).compareTo( new DefaultArtifactVersion( "1.0-alpha1" ) // ) > 0 ); } @Test void testCache() throws InvalidVersionSpecificationException {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 44.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
} private static class IntegerDiv10 implements Comparable<IntegerDiv10> { final int value; IntegerDiv10(int value) { this.value = value; } @Override public int compareTo(IntegerDiv10 o) { return value / 10 - o.value / 10; } @Override public String toString() { return Integer.toString(value); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
private final int value; ClassWithTerribleHashCode(int value) { this.value = value; } @Override public int compareTo(ClassWithTerribleHashCode that) { return Integer.compare(this.value, that.value); } @Override public boolean equals(@Nullable Object x) { return x instanceof ClassWithTerribleHashCode
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
methods, new Comparator<Method>() { @Override public int compare(Method m1, Method m2) { int nameComparison = m1.getName().compareTo(m2.getName()); if (nameComparison != 0) { return nameComparison; } else { return Integer.compare(m1.getParameterTypes().length, m2.getParameterTypes().length); } } });
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 27.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
methods, new Comparator<Method>() { @Override public int compare(Method m1, Method m2) { int nameComparison = m1.getName().compareTo(m2.getName()); if (nameComparison != 0) { return nameComparison; } else { return Integer.compare(m1.getParameterTypes().length, m2.getParameterTypes().length); } } });
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 27.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(Booleans.trueFirst().compare(true, true)).isEqualTo(0); assertThat(Booleans.trueFirst().compare(false, false)).isEqualTo(0); assertThat(Booleans.trueFirst().compare(true, false)).isLessThan(0); assertThat(Booleans.trueFirst().compare(false, true)).isGreaterThan(0); } public void testFalseFirst() { assertThat(Booleans.falseFirst().compare(true, true)).isEqualTo(0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 24.8K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
} /** * Compares the two specified {@code char} values. The sign of the value returned is the same as * that of {@code ((Character) a).compareTo(b)}. * * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use the * equivalent {@link Character#compare} method instead. * * @param a the first {@code char} to compare * @param b the second {@code char} to compare
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 27 16:47:48 UTC 2024 - 23.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ServiceManager.java
// This means the service was started by some means other than ServiceManager.startAsync stopwatch = Stopwatch.createStarted(); startupTimers.put(service, stopwatch); } if (to.compareTo(RUNNING) >= 0 && stopwatch.isRunning()) { // N.B. if we miss the STARTING event then we may never record a startup time. stopwatch.stop(); if (!(service instanceof NoOpService)) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 33.5K bytes - Viewed (0)