- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 152 for Comparable (0.45 seconds)
-
guava-tests/test/com/google/common/collect/ComparisonChainTest.java
*/ @GwtCompatible @NullMarked public class ComparisonChainTest extends TestCase { private static final DontCompareMe DONT_COMPARE_ME = new DontCompareMe(); private static class DontCompareMe implements Comparable<DontCompareMe> { @Override public int compareTo(DontCompareMe o) { throw new AssertionFailedError(); } } @SuppressWarnings({"deprecation", "InlineMeInliner"}) // test of a deprecated methodCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 03:05:13 GMT 2025 - 7.6K bytes - Click Count (0) -
guava/src/com/google/common/graph/ElementOrder.java
return new ElementOrder<>(Type.INSERTION, null); } /** * Returns an instance which specifies that the natural ordering of the elements is guaranteed. */ public static <S extends Comparable<? super S>> ElementOrder<S> natural() { return new ElementOrder<>(Type.SORTED, Ordering.<S>natural()); } /** * Returns an instance which specifies that the ordering of the elements is guaranteed to be
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 6.6K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
* over {@code 1.0.0.X1}.</li> * </ul> * * @see <a href="https://maven.apache.org/pom.html#version-order-specification">"Versioning" in the POM reference</a> */ public class ComparableVersion implements Comparable<ComparableVersion> { private static final int MAX_INTITEM_LENGTH = 9; private static final int MAX_LONGITEM_LENGTH = 18; private String value; private String canonical;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 26.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
* safely cast to a {@link java.util.SortedSet}, and the {@link Multimap#asMap()} can safely be * cast to a {@link java.util.SortedMap}. */ @SuppressWarnings("rawtypes") public static MultimapBuilderWithKeys<Comparable> treeKeys() { return treeKeys(Ordering.natural()); } /** * Uses a {@link TreeMap} sorted by the specified comparator to map keys to value collections. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 18K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableList.java
* * @throws NullPointerException if any element in the input is null * @since 21.0 */ 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); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 30.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/FauxveridesTest.java
* method from an ancestor class. * * <p>See JLS 8.4.2 for the definition of the related "override-equivalent." */ private static final class MethodSignature implements Comparable<MethodSignature> { final String name; final List<Class<?>> parameterTypes; final TypeSignature typeSignature; MethodSignature(Method method) { name = method.getName();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 9.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FauxveridesTest.java
* method from an ancestor class. * * <p>See JLS 8.4.2 for the definition of the related "override-equivalent." */ private static final class MethodSignature implements Comparable<MethodSignature> { final String name; final List<Class<?>> parameterTypes; final TypeSignature typeSignature; MethodSignature(Method method) { name = method.getName();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 9.4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
@SuppressWarnings({"unchecked", "rawtypes"}) Comparator<? super E> naturalOrder = (Comparator<? super E>) Comparator.<Comparable>naturalOrder(); comparator = naturalOrder; } assertTrue(Ordering.from(comparator).isOrdered(resultsForStrategy)); } if ((characteristics & Spliterator.SIZED) != 0) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 12.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
@SuppressWarnings({"unchecked", "rawtypes"}) Comparator<? super E> naturalOrder = (Comparator<? super E>) Comparator.<Comparable>naturalOrder(); comparator = naturalOrder; } assertTrue(Ordering.from(comparator).isOrdered(resultsForStrategy)); } if ((characteristics & Spliterator.SIZED) != 0) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 12.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Collections2.java
* * <p>Duplicate elements are considered equal. For example, the list [1, 1] will have only one * permutation, instead of two. This is why the elements have to implement {@link Comparable}. * * <p>An empty iterable has only one permutation, which is an empty list. * * <p>This method is equivalent to {@code Collections2.orderedPermutations(list, * Ordering.natural())}. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 22.6K bytes - Click Count (0)