- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for assignable (1.77 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
} public void testisSupertypeOf_resolved() { assertFalse(Assignability.of().isAssignable()); assertTrue(new Assignability<Integer, Integer>() {}.isAssignable()); assertTrue(new Assignability<Integer, Object>() {}.isAssignable()); assertFalse(new Assignability<Integer, String>() {}.isAssignable()); TypeTokenTest.<Number, Integer>assignabilityTestWithTypeVariables(); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
@GwtCompatible @ElementTypesAreNonnullByDefault public abstract class MapInterfaceTest<K extends @Nullable Object, V extends @Nullable Object> extends TestCase { /** A key type that is not assignable to any classes but Object. */ private static final class IncompatibleKeyType { @Override public String toString() { return "IncompatibleKeyType"; } } protected final boolean supportsPut;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 45.9K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicates.java
return new InstanceOfPredicate<>(clazz); } /** * Returns a predicate that evaluates to {@code true} if the class being tested is assignable to * (is a subtype of) {@code clazz}. Example: * * <pre>{@code * List<Class<?>> classes = Arrays.asList( * Object.class, String.class, Number.class, Long.class);
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
int k = 0; int i = takeIndex; while (k < count) { // This cast is not itself safe, but the following statement // will fail if the runtime type of items[i] is not assignable // to the runtime type of a[k++], which is all that the method // contract requires (see @throws ArrayStoreException above). @SuppressWarnings("unchecked") T t = (T) items[i];
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 22.5K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/EventBus.java
* * <p>Events are routed based on their type — an event will be delivered to any subscriber for * any type to which the event is assignable. This includes implemented interfaces, all * superclasses, and all interfaces implemented by superclasses. * * <p>When {@code post} is called, all registered subscribers for an event are run in sequence, so
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Aug 25 16:37:57 GMT 2021 - 12.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
@GwtCompatible @ElementTypesAreNonnullByDefault public abstract class MapInterfaceTest<K extends @Nullable Object, V extends @Nullable Object> extends TestCase { /** A key type that is not assignable to any classes but Object. */ private static final class IncompatibleKeyType { @Override public String toString() { return "IncompatibleKeyType"; } } protected final boolean supportsPut;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 45.9K bytes - Viewed (2) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
int k = 0; int i = takeIndex; while (k < count) { // This cast is not itself safe, but the following statement // will fail if the runtime type of items[i] is not assignable // to the runtime type of a[k++], which is all that the method // contract requires (see @throws ArrayStoreException above). @SuppressWarnings("unchecked") T t = (T) items[i];
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 22.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
*/ public static <V extends @Nullable Object> ListenableFuture<V> immediateFuture( @ParametricNullness V value) { if (value == null) { // This cast is safe because null is assignable to V for all V (i.e. it is bivariant) @SuppressWarnings("unchecked") ListenableFuture<V> typedNull = (ListenableFuture<V>) ImmediateFuture.NULL; return typedNull; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 59.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Predicates.java
return new InstanceOfPredicate<>(clazz); } /** * Returns a predicate that evaluates to {@code true} if the class being tested is assignable to * (is a subtype of) {@code clazz}. Example: * * <pre>{@code * List<Class<?>> classes = Arrays.asList( * Object.class, String.class, Number.class, Long.class);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
} public void testisSupertypeOf_resolved() { assertFalse(Assignability.of().isAssignable()); assertTrue(new Assignability<Integer, Integer>() {}.isAssignable()); assertTrue(new Assignability<Integer, Object>() {}.isAssignable()); assertFalse(new Assignability<Integer, String>() {}.isAssignable()); TypeTokenTest.<Number, Integer>assignabilityTestWithTypeVariables(); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0)