Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for invokable (0.05 seconds)

  1. 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)
  2. 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)
  3. 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) {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
Back to Top