- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 23 for returnType (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/reflect/SubtypeTester.java
final <T> T isSubtype(T sub) { Type returnType = method.getGenericReturnType(); Type paramType = getOnlyParameterType(); TestSubtype spec = method.getAnnotation(TestSubtype.class); assertWithMessage("%s is subtype of %s", paramType, returnType) .that(TypeToken.of(paramType).isSubtypeOf(returnType)) .isTrue(); assertWithMessage("%s is supertype of %s", returnType, paramType)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
final <T> T isSubtype(T sub) { Type returnType = method.getGenericReturnType(); Type paramType = getOnlyParameterType(); TestSubtype spec = method.getAnnotation(TestSubtype.class); assertWithMessage("%s is subtype of %s", paramType, returnType) .that(TypeToken.of(paramType).isSubtypeOf(returnType)) .isTrue(); assertWithMessage("%s is supertype of %s", returnType, paramType)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt
): Any? { val callArgs = args ?: arrayOf<Any?>() val methodName = method.name val returnType = method.returnType if (methodName == "supports" && Boolean::class.javaPrimitiveType == returnType) { return true // ALPN is supported. } else if (methodName == "unsupported" && Void.TYPE == returnType) { this.unsupported = true // Peer doesn't support ALPN. return nullCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java
protected final String methodName; /** Array of method parameter types */ protected final Class<?>[] parameterTypes; /** The return type of the method */ protected final Class<?> returnType; /** Information about parameterized argument types */ protected final ParameterizedClassDesc[] parameterizedClassDescs; /** Information about the parameterized return type */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 7.3K bytes - Click Count (1) -
src/main/java/org/codelibs/core/lang/MethodUtil.java
public static Class<?> getElementTypeOfCollectionFromReturnType(final Method method) { assertArgumentNotNull("method", method); final Type returnType = method.getGenericReturnType(); return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(returnType)); } /** * Returns the key type of the parameterized map declared as the method's argument type. * * @param method
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 12.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/DummyProxy.java
@SuppressWarnings("unchecked") // interfaceType is T T result = (T) dummy; return result; } /** Returns the dummy return value for {@code returnType}. */ abstract <R> @Nullable R dummyReturnValue(TypeToken<R> returnType); private final class DummyHandler extends AbstractInvocationHandler implements Serializable { private final TypeToken<?> interfaceType;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 22:10:29 GMT 2025 - 4.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
TypeToken<?> keyType = TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]); assertThat(keyType.getType().toString()).isEqualTo("java.util.List<java.util.List<V>>"); } public void testFalseRecursiveType_intermediaryTypeMappingDoesNotConfuseMe() { Type returnType =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
TypeToken<?> keyType = TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]); assertThat(keyType.getType().toString()).isEqualTo("java.util.List<java.util.List<V>>"); } public void testFalseRecursiveType_intermediaryTypeMappingDoesNotConfuseMe() { Type returnType =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileToRawModelMergerTest.java
String entity = baseName.substring(baseName.indexOf('_') + 1); try { Type returnType = m.getParameterTypes()[0] .getMethod("get" + entity) .getGenericReturnType(); if (returnType instanceof ParameterizedType parameterizedType) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 2.8K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java
} catch (NoSuchMethodException e) { throw new AssertionError("Annotation is missing required method", e); } Class<?> returnType = method.getReturnType(); assertTrue( rootLocaleFormat("%s.%s() must return an array.", annotationClass, propertyName), returnType.isArray()); assertWithMessage( rootLocaleFormat( "%s.%s() must return an array of %s.",
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 4.5K bytes - Click Count (0)