- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 539 for compareTo (0.28 seconds)
-
guava-tests/test/com/google/common/reflect/SubtypeTester.java
} return null; } final void testAllDeclarations() throws Exception { checkState(method == null); Method[] methods = getClass().getMethods(); Arrays.sort(methods, (a, b) -> a.getName().compareTo(b.getName())); for (Method method : methods) { if (method.isAnnotationPresent(TestSubtype.class)) { method.setAccessible(true); SubtypeTester tester = (SubtypeTester) clone();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java
/** {@inheritDoc} */ @Override public boolean isSnapshot() { return artifact.isSnapshot(); } /** {@inheritDoc} */ @Override public int compareTo(Artifact a) { return artifact.compareTo(a); } /** {@inheritDoc} */ @Override public void setResolved(boolean resolved) { artifact.setResolved(resolved); } /** {@inheritDoc} */Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 9.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingSortedMap.java
@Nullable Comparator<?> comparator, @Nullable Object o1, @Nullable Object o2) { if (comparator == null) { return ((Comparable<@Nullable Object>) o1).compareTo(o2); } else { return ((Comparator<@Nullable Object>) comparator).compare(o1, o2); } } /** * A sensible definition of {@link #containsKey} in terms of the {@code firstKey()} method of
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 16:28:01 GMT 2025 - 5.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 6.6K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/SignedBytes.java
} return (byte) value; } /** * Compares the two specified {@code byte} values. The sign of the value returned is the same as * that of {@code ((Byte) a).compareTo(b)}. * * <p><b>Note:</b> this method behaves identically to {@link Byte#compare}. * * @param a the first {@code byte} to compare * @param b the second {@code byte} to compareCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 7.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
@GwtIncompatible public final class SafeTreeMap<K, V> implements Serializable, NavigableMap<K, V> { @SuppressWarnings("unchecked") private static final Comparator<Object> NATURAL_ORDER = (o1, o2) -> ((Comparable<Object>) o1).compareTo(o2); private final NavigableMap<K, V> delegate; public SafeTreeMap() { this(new TreeMap<K, V>()); } public SafeTreeMap(Comparator<? super K> comparator) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 7.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
/** * A multiset which maintains the ordering of its elements, according to either their natural order * or an explicit {@link Comparator}. In all cases, this implementation uses {@link * Comparable#compareTo} or {@link Comparator#compare} instead of {@link Object#equals} to determine * equivalence of instances. * * <p><b>Warning:</b> The comparison must be <i>consistent with equals</i> as explained by theCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
return new NullFriendlyComparator<>(); } private static final class NullFriendlyComparator<T> implements Comparator<T>, Serializable { @Override public int compare(T left, T right) { return String.valueOf(left).compareTo(String.valueOf(right)); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 19.8K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedInteger.java
} /** * Compares this unsigned integer to another unsigned integer. Returns {@code 0} if they are * equal, a negative number if {@code this < other}, and a positive number if {@code this > * other}. */ @Override public int compareTo(UnsignedInteger other) { checkNotNull(other); return compare(value, other.value); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.3K bytes - Click Count (0) -
api/maven-api-metadata/src/main/mdo/metadata.mdo
versioning.setLastUpdated( v.getLastUpdated() ); } if ( v.getLastUpdated() == null || v.getLastUpdated().length() == 0 || versioning.getLastUpdated().compareTo( v.getLastUpdated() ) >= 0 ) { changed = true; v.setLastUpdated( versioning.getLastUpdated() ); if ( versioning.getRelease() != null ) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed May 15 17:32:27 GMT 2024 - 15.8K bytes - Click Count (0)