- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 296 for compatible (0.3 sec)
-
android/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) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.2K bytes - Viewed (0) -
android/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/testing/EqualsTester.java
* </pre> * * <p>This tests: * * <ul> * <li>comparing each object against itself returns true * <li>comparing each object against null returns false * <li>comparing each object against an instance of an incompatible class returns false * <li>comparing each pair of objects within the same equality group returns true * <li>comparing each pair of objects from different equality groups returns false
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
android/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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
import java.util.Set; import java.util.SortedMap; import java.util.TreeMap; import org.jspecify.annotations.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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 7.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/EqualsTester.java
* </pre> * * <p>This tests: * * <ul> * <li>comparing each object against itself returns true * <li>comparing each object against null returns false * <li>comparing each object against an instance of an incompatible class returns false * <li>comparing each pair of objects within the same equality group returns true * <li>comparing each pair of objects from different equality groups returns false
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java
import static com.google.common.io.FileBackedOutputStreamTest.write; import com.google.common.testing.GcFinalization; import java.io.File; import org.jspecify.annotations.NullUnmarked; /** * Android-incompatible tests for {@link FileBackedOutputStream}. * * @author Chris Nokleberg */ @AndroidIncompatible // Finalization probably just doesn't happen fast enough? @NullUnmarkedRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/annotations/GwtIncompatible.java
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) @Documented @GwtCompatible public @interface GwtIncompatible { /** * Describes why the annotated element is incompatible with GWT. Since this is generally due to a * dependence on a type/method which GWT doesn't support, it is sufficient to simply reference the * unsupported type/method. E.g. "Class.isInstance". *Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Dec 16 19:54:45 UTC 2020 - 1.9K bytes - Viewed (0) -
buildSrc/src/main/kotlin/Osgi.kt
jarTask.doLast { bundleExtension.buildAction().execute(this) } } fun Project.applyOsgiMultiplatform(vararg bndProperties: String) { // BND is incompatible with Kotlin/Multiplatform because it assumes the JVM source set's name is // 'main'. Work around this by creating a 'main' source set that forwards to 'jvmMain'. //Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Aug 01 08:06:31 UTC 2025 - 5.1K bytes - Viewed (0)