- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 507 for comparable (0.12 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
import java.util.SortedMap; import java.util.TreeMap; import org.checkerframework.checker.nullness.qual.Nullable; /** * A wrapper around {@code TreeMap} that aggressively checks to see if keys are mutually comparable. * This implementation passes the navigable map test suites. * * @author Louis Wasserman */ @GwtIncompatible public final class SafeTreeMap<K, V> implements Serializable, NavigableMap<K, V> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
assertLessThan(RUNNING, STOPPING); assertLessThan(RUNNING, FAILED); assertLessThan(STOPPING, FAILED); assertLessThan(STOPPING, TERMINATED); } private static <T extends Comparable<? super T>> void assertLessThan(T a, T b) { if (a.compareTo(b) >= 0) { fail(String.format(Locale.ROOT, "Expected %s to be less than %s", a, b)); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.9K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 15.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedLists.java
* KeyAbsentBehavior)} using {@link Ordering#natural}. */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 public static <E extends Comparable> int binarySearch( List<? extends E> list, E e, KeyPresentBehavior presentBehavior, KeyAbsentBehavior absentBehavior) { checkNotNull(e);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java
/** * Maven Artifact interface. Notice that it mixes artifact definition concepts (groupId, artifactId, version) * with dependency information (version range, scope). */ public interface Artifact extends Comparable<Artifact> { @Deprecated(since = "4.0.0") String RELEASE_VERSION = "RELEASE"; @Deprecated(since = "4.0.0") String LATEST_VERSION = "LATEST"; String SNAPSHOT_VERSION = "SNAPSHOT";
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java
public static void testInvariants(RangeSet<?> rangeSet) { testInvariantsInternal(rangeSet); testInvariantsInternal(rangeSet.complement()); } private static <C extends Comparable<?>> void testInvariantsInternal(RangeSet<C> rangeSet) { assertEquals(rangeSet.asRanges().isEmpty(), rangeSet.isEmpty()); assertEquals(rangeSet.asDescendingSetOfRanges().isEmpty(), rangeSet.isEmpty());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 2.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableSortedSet.java
@SuppressWarnings({"serial", "rawtypes"}) @ElementTypesAreNonnullByDefault final class RegularImmutableSortedSet<E> extends ImmutableSortedSet<E> { static final RegularImmutableSortedSet<Comparable> NATURAL_EMPTY_SET = new RegularImmutableSortedSet<>(ImmutableList.<Comparable>of(), Ordering.natural()); private final transient ImmutableList<E> elements; RegularImmutableSortedSet(ImmutableList<E> elements, Comparator<? super E> comparator) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
return set; } private Element newElement() { int value = random.nextInt(); return isUserTypeFast ? new Element(value) : new SlowElement(value); } static class Element implements Comparable<Element> { final int hash; Element(int hash) { this.hash = hash; } @Override public boolean equals(@Nullable Object obj) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
android/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); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 21:21:17 UTC 2024 - 27.7K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java
/** * A benchmark to determine the overhead of sorting with {@link Ordering#from(Comparator)}, or with * {@link Ordering#natural()}, as opposed to using the inlined {@link Arrays#sort(Object[])} * implementation, which uses {@link Comparable#compareTo} directly. * * @author Louis Wasserman */ public class ComparatorDelegationOverheadBenchmark { private final Integer[][] inputArrays = new Integer[0x100][]; @Param({"10000"}) int n;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.5K bytes - Viewed (0)