- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for supertypeOf (0.25 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertEquals( TypeToken.of(Object.class), TypeToken.of(Types.supertypeOf(String.class)).getGenericSuperclass()); assertEquals( new TypeToken<Object>() {}, TypeToken.of(Types.supertypeOf(String[].class)).getGenericSuperclass()); assertEquals( new TypeToken<Object>() {}, TypeToken.of(Types.supertypeOf(CharSequence.class)).getGenericSuperclass()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard)); } public void testNewArrayType_lowerBoundedWildcard() { Type wildcard = Types.supertypeOf(Number.class); assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard)); } public void testNewArrayType_serializable() { SerializableTester.reserializeAndAssert(Types.newArrayType(int[].class)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:41:27 UTC 2024 - 15.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypesTest.java
assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard)); } public void testNewArrayType_lowerBoundedWildcard() { Type wildcard = Types.supertypeOf(Number.class); assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard)); } public void testNewArrayType_serializable() { SerializableTester.reserializeAndAssert(Types.newArrayType(int[].class)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:41:27 UTC 2024 - 15.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertEquals( TypeToken.of(Object.class), TypeToken.of(Types.supertypeOf(String.class)).getGenericSuperclass()); assertEquals( new TypeToken<Object>() {}, TypeToken.of(Types.supertypeOf(String[].class)).getGenericSuperclass()); assertEquals( new TypeToken<Object>() {}, TypeToken.of(Types.supertypeOf(CharSequence.class)).getGenericSuperclass()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
Type[] lowerBounds = wildcard.getLowerBounds(); checkArgument(lowerBounds.length <= 1, "Wildcard cannot have more than one lower bounds."); if (lowerBounds.length == 1) { return supertypeOf(newArrayType(lowerBounds[0])); } else { Type[] upperBounds = wildcard.getUpperBounds(); checkArgument(upperBounds.length == 1, "Wildcard should have only one upper bound.");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 23K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeResolverTest.java
.where( new TypeCapture<List<T>>() {}.capture(), new TypeCapture<List<? extends String>>() {}.capture()) .resolveType(t)); assertEquals( Types.supertypeOf(String.class), new TypeResolver() .where( new TypeCapture<List<T>>() {}.capture(), new TypeCapture<List<? super String>>() {}.capture()) .resolveType(t));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 9.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java
.where( new TypeCapture<List<T>>() {}.capture(), new TypeCapture<List<? extends String>>() {}.capture()) .resolveType(t)); assertEquals( Types.supertypeOf(String.class), new TypeResolver() .where( new TypeCapture<List<T>>() {}.capture(), new TypeCapture<List<? super String>>() {}.capture()) .resolveType(t));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 9.7K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToInstanceMap.java
*/ @CheckForNull <T extends @NonNull B> T getInstance(TypeToken<T> type); /** * Maps the specified class to the specified value. Does <i>not</i> associate this value with any * of the class's supertypes. * * <p>{@code putInstance(Foo.class, foo)} is equivalent to {@code * putInstance(TypeToken.of(Foo.class), foo)}. * * @return the value previously associated with this class (possibly {@code null}), or {@code
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Apr 22 01:15:23 UTC 2023 - 3.8K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeToInstanceMap.java
*/ @CheckForNull <T extends @NonNull B> T getInstance(TypeToken<T> type); /** * Maps the specified class to the specified value. Does <i>not</i> associate this value with any * of the class's supertypes. * * <p>{@code putInstance(Foo.class, foo)} is equivalent to {@code * putInstance(TypeToken.of(Foo.class), foo)}. * * @return the value previously associated with this class (possibly {@code null}), or {@code
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Apr 22 01:15:23 UTC 2023 - 3.8K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/SubscriberRegistry.java
} private static ImmutableList<Method> getAnnotatedMethodsNotCached(Class<?> clazz) { Set<? extends Class<?>> supertypes = TypeToken.of(clazz).getTypes().rawTypes(); Map<MethodIdentifier, Method> identifiers = Maps.newHashMap(); for (Class<?> supertype : supertypes) { for (Method method : supertype.getDeclaredMethods()) { if (method.isAnnotationPresent(Subscribe.class) && !method.isSynthetic()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:16:45 UTC 2024 - 10.8K bytes - Viewed (0)