- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for getGenericReturnType (0.13 sec)
-
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(Long.class))); method = Hoge.class.getMethod("array"); assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(String[].class))); method = Hoge.class.getMethod("list"); assertThat(GenericsUtil.getActualClass(method.getGenericReturnType(), map), is(sameClass(List.class)));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
} private @Nullable Method method = null; /** Call this in a {@link TestSubtype} public method asserting subtype relationship. */ 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)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Invokable.java
throws InvocationTargetException, IllegalAccessException { return method.invoke(receiver, args); } @Override Type getGenericReturnType() { return method.getGenericReturnType(); } @Override Type[] getGenericParameterTypes() { return method.getGenericParameterTypes(); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 19.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
} private @Nullable Method method = null; /** Call this in a {@link TestSubtype} public method asserting subtype relationship. */ 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)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileToRawModelMergerTest.java
try { Type returnType = m.getParameterTypes()[0] .getMethod("get" + entity) .getGenericReturnType(); if (returnType instanceof ParameterizedType) { return !((ParameterizedType) returnType).getActualTypeArguments()[0].equals(String.class); } else {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/DummyProxy.java
Parameter param = params.get(i); if (!isNullable(param)) { checkNotNull(args[i]); } } return dummyReturnValue(interfaceType.resolveType(method.getGenericReturnType())); } @Override public int hashCode() { return identity().hashCode(); } @Override public boolean equals(@Nullable Object obj) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 08 17:31:55 UTC 2024 - 3.9K bytes - Viewed (0) -
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)); } /** * メソッドの引数型 (パラメタ化されたマップ) のキー型を返します。 * * @param method
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 13.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java
assertArgumentNotNull("method", method); assertArgumentNotNull("map", map); return createParameterizedClassDesc(method.getGenericReturnType(), map); } /** * {@link Type}を表現する{@link ParameterizedClassDesc}を作成して返します。 * * @param type * 型 * @param map
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 7.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
public void testResolveType() throws Exception { Method getFromList = List.class.getMethod("get", int.class); TypeToken<?> returnType = new TypeToken<List<String>>() {}.resolveType(getFromList.getGenericReturnType()); assertEquals(String.class, returnType.getType()); } public <F extends Enum<F> & Function<String, Integer> & Iterable<Long>> void testResolveType_fromTypeVariable() {
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/TypeTokenTest.java
public void testResolveType() throws Exception { Method getFromList = List.class.getMethod("get", int.class); TypeToken<?> returnType = new TypeToken<List<String>>() {}.resolveType(getFromList.getGenericReturnType()); assertEquals(String.class, returnType.getType()); } public <F extends Enum<F> & Function<String, Integer> & Iterable<Long>> void testResolveType_fromTypeVariable() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0)