- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for invokable (0.05 seconds)
-
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
throws NoSuchMethodException { Method getMethod = List.class.getMethod("get", int.class); Invokable<T, String> invokable = new TypeToken<T>(getClass()) {}.method(getMethod).returning(String.class); assertEquals(TypeToken.of(String.class), invokable.getReturnType()); } public <T extends List<String>> void testMethod_parameterTypes() throws NoSuchMethodException {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
throws NoSuchMethodException { Method getMethod = List.class.getMethod("get", int.class); Invokable<T, String> invokable = new TypeToken<T>(getClass()) {}.method(getMethod).returning(String.class); assertEquals(TypeToken.of(String.class), invokable.getReturnType()); } public <T extends List<String>> void testMethod_parameterTypes() throws NoSuchMethodException {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
} /** * Returns the {@link Invokable} for {@code method}, which must be a member of {@code T}. * * @since 14.0 */ public final Invokable<T, Object> method(Method method) { checkArgument( this.someRawTypeIsSubclassOf(method.getDeclaringClass()), "%s not declared by %s", method, this); return new Invokable.MethodInvokable<T>(method) { @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 53.8K bytes - Click Count (0)