- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 153 for Comparable (1.34 sec)
-
guava-testlib/src/com/google/common/collect/testing/BaseComparable.java
import org.jspecify.annotations.Nullable; /** * Simple base class to verify that we handle generics correctly. * * @author Kevin Bourrillion */ @GwtCompatible public class BaseComparable implements Comparable<BaseComparable>, Serializable { private final String s; public BaseComparable(String s) { this.s = s; } @Override public int hashCode() { // delegate to 's' return s.hashCode(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 1.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Version.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 1.5K bytes - Viewed (0) -
doc/go_spec.html
[]byte // does not implement comparable (slices cannot be compared) interface{} // does not implement comparable (see above) interface{ ~int | ~string } // type parameter only: implements comparable (int, string types are strictly comparable) interface{ comparable } // type parameter only: implements comparable (comparable implements itself)Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Dec 02 23:07:19 UTC 2025 - 286.5K bytes - Viewed (1) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
return unsafeDelegateList((List) Arrays.asList(elements)); } public static <E extends Comparable<? super E>> ImmutableList<E> sortedCopyOf( Iterable<? extends E> elements) { Comparable<?>[] array = Iterables.toArray(elements, new Comparable<?>[0]); checkElementsNotNull((Object[]) array); Arrays.sort(array); return asImmutableList(array); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 11.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java
import org.jspecify.annotations.Nullable; /** * An unhashable object to be used in testing as values in our collections. * * @author Regina O'Dell */ @GwtCompatible public class UnhashableObject implements Comparable<UnhashableObject> { private final int value; public UnhashableObject(int value) { this.value = value; } @Override public boolean equals(@Nullable Object object) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Apr 10 20:12:40 UTC 2025 - 1.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java
import java.util.SortedSet; import java.util.TreeSet; import org.jspecify.annotations.Nullable; /** * A wrapper around {@code TreeSet} that aggressively checks to see if elements are mutually * comparable. This implementation passes the navigable set test suites. * * @author Louis Wasserman */ @GwtIncompatible public final class SafeTreeSet<E> implements Serializable, NavigableSet<E> { @SuppressWarnings("unchecked")Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
} } // J2kt cannot translate the Comparable rawtype in a usable way (it becomes Comparable<Object> // but types are typically only Comparable to themselves). @SuppressWarnings({"rawtypes", "unchecked"}) private static MinMaxPriorityQueue.Builder<Comparable<?>> rawtypeToWildcard( MinMaxPriorityQueue.Builder<Comparable> builder) { return (MinMaxPriorityQueue.Builder) builder; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 36.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractRangeSet.java
* A skeletal implementation of {@code RangeSet}. * * @author Louis Wasserman */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 @GwtIncompatible abstract class AbstractRangeSet<C extends Comparable> implements RangeSet<C> { AbstractRangeSet() {} @Override public boolean contains(C value) { return rangeContaining(value) != null; } @OverrideRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 2.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
* * @author George van den Driessche */ @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package? @GwtCompatible public enum CollectionSize implements Feature<Collection>, Comparable<CollectionSize> { /** Test an empty collection. */ ZERO(0), /** Test a one-element collection. */ ONE(1), /** Test a three-element collection. */ SEVERAL(3), /*Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
* * @author George van den Driessche */ @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package? @GwtCompatible public enum CollectionSize implements Feature<Collection>, Comparable<CollectionSize> { /** Test an empty collection. */ ZERO(0), /** Test a one-element collection. */ ONE(1), /** Test a three-element collection. */ SEVERAL(3), /*Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0)