Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for returnType (0.18 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      public void testFalseRecursiveType_mappingOnTheSameDeclarationNotUsed() {
        Type returnType =
            genericReturnType(WithFalseRecursiveType.class, "keyShouldNotResolveToStringList");
        TypeToken<?> keyType =
            TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]);
        assertEquals("java.util.List<V>", keyType.getType().toString());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]);
        ParameterizedType returnType = (ParameterizedType) factory.getReturnType().getType();
        assertEquals(type, returnType.getRawType());
        assertEquals(
            ImmutableList.copyOf(type.getTypeParameters()),
            ImmutableList.copyOf(returnType.getActualTypeArguments()));
      }
    
      public void testConstructor_exceptionTypes() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        }
    
        /**
         * Specifies that only the methods that are declared to return {@code returnType} or its subtype
         * are tested.
         *
         * @return this tester object
         */
        @CanIgnoreReturnValue
        public FactoryMethodReturnValueTester thatReturn(Class<?> returnType) {
          this.returnTypeToTest = returnType;
          return this;
        }
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        }
      }
    
      private <T> T newDefaultReturningProxy(final TypeToken<T> type) {
        return new DummyProxy() {
          @Override
          <R> @Nullable R dummyReturnValue(TypeToken<R> returnType) {
            return getDefaultValue(returnType);
          }
        }.newProxy(type);
      }
    
      private static Invokable<?, ?> invokable(@Nullable Object instance, Method method) {
        if (instance == null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      public void testFalseRecursiveType_mappingOnTheSameDeclarationNotUsed() {
        Type returnType =
            genericReturnType(WithFalseRecursiveType.class, "keyShouldNotResolveToStringList");
        TypeToken<?> keyType =
            TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]);
        assertEquals("java.util.List<V>", keyType.getType().toString());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]);
        ParameterizedType returnType = (ParameterizedType) factory.getReturnType().getType();
        assertEquals(type, returnType.getRawType());
        assertEquals(
            ImmutableList.copyOf(type.getTypeParameters()),
            ImmutableList.copyOf(returnType.getActualTypeArguments()));
      }
    
      public void testConstructor_exceptionTypes() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Invokable.java

       * }</pre>
       */
      public final <R1 extends R> Invokable<T, R1> returning(Class<R1> returnType) {
        return returning(TypeToken.of(returnType));
      }
    
      /** Explicitly specifies the return type of this {@code Invokable}. */
      public final <R1 extends R> Invokable<T, R1> returning(TypeToken<R1> returnType) {
        if (!returnType.isSupertypeOf(getReturnType())) {
          throw new IllegalArgumentException(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        }
    
        /**
         * Specifies that only the methods that are declared to return {@code returnType} or its subtype
         * are tested.
         *
         * @return this tester object
         */
        @CanIgnoreReturnValue
        public FactoryMethodReturnValueTester thatReturn(Class<?> returnType) {
          this.returnTypeToTest = returnType;
          return this;
        }
    
        /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        }
      }
    
      private <T> T newDefaultReturningProxy(final TypeToken<T> type) {
        return new DummyProxy() {
          @Override
          <R> @Nullable R dummyReturnValue(TypeToken<R> returnType) {
            return getDefaultValue(returnType);
          }
        }.newProxy(type);
      }
    
      private static Invokable<?, ?> invokable(@Nullable Object instance, Method method) {
        if (instance == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 22.8K bytes
    - Viewed (0)
Back to top