- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for getTypeParameters (0.17 sec)
-
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) -
guava/src/com/google/common/reflect/TypeResolver.java
} @Override void visitParameterizedType(ParameterizedType parameterizedType) { Class<?> rawClass = (Class<?>) parameterizedType.getRawType(); TypeVariable<?>[] vars = rawClass.getTypeParameters(); Type[] typeArgs = parameterizedType.getActualTypeArguments(); checkState(vars.length == typeArgs.length); for (int i = 0; i < vars.length; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
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 - 23.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/GenericsUtil.java
assertArgumentNotNull("clazz", clazz); final Map<TypeVariable<?>, Type> map = CollectionsUtil.newLinkedHashMap(); final TypeVariable<?>[] typeParameters = clazz.getTypeParameters(); for (final TypeVariable<?> typeParameter : typeParameters) { map.put(typeParameter, getActualClass(typeParameter.getBounds()[0], map)); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 23.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
if (generate != null) { ImmutableList<Parameter> params = Invokable.from(generate).getParameters(); List<Object> args = Lists.newArrayListWithCapacity(params.size()); TypeVariable<?>[] typeVars = rawType.getTypeParameters(); for (int i = 0; i < params.size(); i++) { TypeToken<?> paramType = type.resolveType(typeVars[i]); // We require all @Generates methods to either be parameter-less or accept non-null
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
if (generate != null) { ImmutableList<Parameter> params = Invokable.from(generate).getParameters(); List<Object> args = Lists.newArrayListWithCapacity(params.size()); TypeVariable<?>[] typeVars = rawType.getTypeParameters(); for (int i = 0; i < params.size(); i++) { TypeToken<?> paramType = type.resolveType(typeVars[i]); // We require all @Generates methods to either be parameter-less or accept non-null
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.1K bytes - Viewed (0)