- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for getTypeParameters (0.12 sec)
-
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
Invokable<?, ?> factory = Invokable.from(constructor); assertThat(factory.getTypeParameters()).hasLength(2); assertEquals(type.getTypeParameters()[0], factory.getTypeParameters()[0]); assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); ParameterizedType returnType = (ParameterizedType) factory.getReturnType().getType();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
Invokable<?, ?> factory = Invokable.from(constructor); assertThat(factory.getTypeParameters()).hasLength(2); assertEquals(type.getTypeParameters()[0], factory.getTypeParameters()[0]); assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); ParameterizedType returnType = (ParameterizedType) factory.getReturnType().getType();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
TypeToken<?> f = TypeToken.of(new TypeCapture<F>() {}.capture()); assertEquals(String.class, f.resolveType(Function.class.getTypeParameters()[0]).getType()); assertEquals(Integer.class, f.resolveType(Function.class.getTypeParameters()[1]).getType()); assertEquals(Long.class, f.resolveType(Iterable.class.getTypeParameters()[0]).getType()); } public <E extends Comparable<Iterable<String>> & Iterable<Integer>>
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
private final Class<?> rawType; ParameterizedTypeImpl(@CheckForNull Type ownerType, Class<?> rawType, Type[] typeArguments) { checkNotNull(rawType); checkArgument(typeArguments.length == rawType.getTypeParameters().length); disallowPrimitiveType(typeArguments, "type parameter"); this.ownerType = ownerType; this.rawType = rawType; this.argumentsList = JavaVersion.CURRENT.usedInGenericType(typeArguments);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 23K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
TypeToken<?> f = TypeToken.of(new TypeCapture<F>() {}.capture()); assertEquals(String.class, f.resolveType(Function.class.getTypeParameters()[0]).getType()); assertEquals(Integer.class, f.resolveType(Function.class.getTypeParameters()[1]).getType()); assertEquals(Long.class, f.resolveType(Iterable.class.getTypeParameters()[0]).getType()); } public <E extends Comparable<Iterable<String>> & Iterable<Integer>>
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-testlib/src/com/google/common/testing/NullPointerTester.java
return defaultType; } if (type.getRawType() == Converter.class) { TypeToken<?> convertFromType = type.resolveType(Converter.class.getTypeParameters()[0]); TypeToken<?> convertToType = type.resolveType(Converter.class.getTypeParameters()[1]); @SuppressWarnings("unchecked") // returns default for both F and T T defaultConverter = (T) defaultConverter(convertFromType, convertToType);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 22.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
assertEquals(int[][].class.getName(), Types.toString(int[][].class)); assertEquals(String[].class.getName(), Types.toString(String[].class)); Type elementType = List.class.getTypeParameters()[0]; assertEquals(elementType.toString(), Types.toString(elementType)); } public void testNullPointers() { new NullPointerTester().testStaticMethods(Types.class, Visibility.PACKAGE); }
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(int[][].class.getName(), Types.toString(int[][].class)); assertEquals(String[].class.getName(), Types.toString(String[].class)); Type elementType = List.class.getTypeParameters()[0]; assertEquals(elementType.toString(), Types.toString(elementType)); } public void testNullPointers() { new NullPointerTester().testStaticMethods(Types.class, Visibility.PACKAGE); }
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/collect/FauxveridesTest.java
final TypeSignature typeSignature; MethodSignature(Method method) { name = method.getName(); parameterTypes = asList(method.getParameterTypes()); typeSignature = new TypeSignature(method.getTypeParameters()); } @Override public boolean equals(@Nullable Object obj) { if (obj instanceof MethodSignature) { MethodSignature other = (MethodSignature) obj;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 9.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FauxveridesTest.java
final TypeSignature typeSignature; MethodSignature(Method method) { name = method.getName(); parameterTypes = asList(method.getParameterTypes()); typeSignature = new TypeSignature(method.getTypeParameters()); } @Override public boolean equals(@Nullable Object obj) { if (obj instanceof MethodSignature) { MethodSignature other = (MethodSignature) obj;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 9.2K bytes - Viewed (0)