- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for TypeCapture (0.07 sec)
-
guava-tests/test/com/google/common/reflect/TypeResolverTest.java
new TypeResolver() .where( new TypeCapture<Iterable<Map<?, V>>>() {}.capture(), new TypeCapture<Iterable<Map<String, Integer>>>() {}.capture()); assertEquals( new TypeCapture<K>() {}.capture(), resolver.resolveType(new TypeCapture<K>() {}.capture())); assertEquals(Integer.class, resolver.resolveType(new TypeCapture<V>() {}.capture())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 9.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertAssignable( TypeToken.of(new TypeCapture<L>() {}.capture()), TypeToken.of(new TypeCapture<L>() {}.capture())); assertNotAssignable( TypeToken.of(new TypeCapture<R>() {}.capture()), TypeToken.of(new TypeCapture<L>() {}.capture())); assertAssignable(TypeToken.of(new TypeCapture<L>() {}.capture()), new TypeToken<List<R>>() {}); }
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/TypeResolverTest.java
new TypeResolver() .where( new TypeCapture<Iterable<Map<?, V>>>() {}.capture(), new TypeCapture<Iterable<Map<String, Integer>>>() {}.capture()); assertEquals( new TypeCapture<K>() {}.capture(), resolver.resolveType(new TypeCapture<K>() {}.capture())); assertEquals(Integer.class, resolver.resolveType(new TypeCapture<V>() {}.capture())); }
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/TypeTokenTest.java
assertAssignable( TypeToken.of(new TypeCapture<L>() {}.capture()), TypeToken.of(new TypeCapture<L>() {}.capture())); assertNotAssignable( TypeToken.of(new TypeCapture<R>() {}.capture()), TypeToken.of(new TypeCapture<L>() {}.capture())); assertAssignable(TypeToken.of(new TypeCapture<L>() {}.capture()), new TypeToken<List<R>>() {}); }
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
ParameterizedType jvmType = (ParameterizedType) new TypeCapture<Entry<String, int[][]>>() {}.capture(); ParameterizedType ourType = Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class); new EqualsTester() .addEqualityGroup(jvmType, ourType) .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
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
ParameterizedType jvmType = (ParameterizedType) new TypeCapture<Entry<String, int[][]>>() {}.capture(); ParameterizedType ourType = Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class); new EqualsTester() .addEqualityGroup(jvmType, ourType) .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
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/src/com/google/common/reflect/TypeParameter.java
* non-null bound if possible, let's require a non-null bound here. * * TODO(cpovirk): Elaborate on "wouldn't behave as users might expect." */ public abstract class TypeParameter<T> extends TypeCapture<T> { final TypeVariable<?> typeVariable; protected TypeParameter() { Type type = capture(); checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 05 17:43:40 UTC 2022 - 2.5K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeParameter.java
* non-null bound if possible, let's require a non-null bound here. * * TODO(cpovirk): Elaborate on "wouldn't behave as users might expect." */ public abstract class TypeParameter<T> extends TypeCapture<T> { final TypeVariable<?> typeVariable; protected TypeParameter() { Type type = capture(); checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 05 17:43:40 UTC 2022 - 2.5K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
if (AnnotatedElement.class.isAssignableFrom(TypeVariable.class)) { if (new TypeCapture<Entry<String, int[][]>>() {}.capture() .toString() .contains("java.util.Map.java.util.Map")) { CURRENT = JAVA8; } else { CURRENT = JAVA9; } } else if (new TypeCapture<int[]>() {}.capture() instanceof Class) { CURRENT = JAVA7; } else {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 23K bytes - Viewed (0)