Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for TypeVariable (0.07 seconds)

  1. android/guava/src/com/google/common/reflect/TypeResolver.java

             * only way to get a TypeVariable instance for the resolved types is to create our own. The
             * created TypeVariable will not interoperate with any JDK TypeVariable. But this is OK: We
             * don't _want_ our new TypeVariable to be equal to the JDK TypeVariable because it has
             * _different bounds_ than the JDK TypeVariable. And it wouldn't make sense for our new
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 22:30:05 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/reflect/Types.java

      }
    
      private static <D extends GenericDeclaration> TypeVariable<D> newTypeVariableImpl(
          D genericDeclaration, String name, Type[] bounds) {
        TypeVariableImpl<D> typeVariableImpl = new TypeVariableImpl<>(genericDeclaration, name, bounds);
        @SuppressWarnings("unchecked")
        TypeVariable<D> typeVariable =
            Reflection.newProxy(
                TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/reflect/TypesTest.java

        TypeVariable<?> noBoundJvmType = WithTypeVariable.getTypeVariable("withoutBound");
        TypeVariable<?> objectBoundJvmType = WithTypeVariable.getTypeVariable("withObjectBound");
        TypeVariable<?> upperBoundJvmType = WithTypeVariable.getTypeVariable("withUpperBound");
        TypeVariable<?> noBound = withBounds(noBoundJvmType);
        TypeVariable<?> objectBound = withBounds(objectBoundJvmType, Object.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java

    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.lang.reflect.Type;
    import java.lang.reflect.TypeVariable;
    import java.util.Map;
    
    import org.codelibs.core.beans.BeanDesc;
    import org.codelibs.core.beans.ConstructorDesc;
    import org.codelibs.core.beans.FieldDesc;
    import org.codelibs.core.beans.MethodDesc;
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        TypeVariable<?> typeVariable =
            (TypeVariable<?>) new WithGenericBound<String>() {}.getTargetType("withTypeVariable");
        assertEquals(String.class, typeVariable.getBounds()[0]);
      }
    
      public void testWithRecursiveBoundInTypeVariable() throws Exception {
        TypeVariable<?> typeVariable =
    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)
  6. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        TypeVariable<?> typeVariable =
            (TypeVariable<?>) new WithGenericBound<String>() {}.getTargetType("withTypeVariable");
        assertEquals(String.class, typeVariable.getBounds()[0]);
      }
    
      public void testWithRecursiveBoundInTypeVariable() throws Exception {
        TypeVariable<?> typeVariable =
    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)
  7. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         */
        public static Map<TypeVariable<?>, Type> getTypeVariableMap(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
            final Map<TypeVariable<?>, Type> map = CollectionsUtil.newLinkedHashMap();
    
            final TypeVariable<?>[] typeParameters = clazz.getTypeParameters();
            for (final TypeVariable<?> typeParameter : typeParameters) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/reflect/Invokable.java

         */
        @Override
        public final TypeVariable<?>[] getTypeParameters() {
          TypeVariable<?>[] declaredByClass = getDeclaringClass().getTypeParameters();
          TypeVariable<?>[] declaredByConstructor = constructor.getTypeParameters();
          TypeVariable<?>[] result =
              new TypeVariable<?>[declaredByClass.length + declaredByConstructor.length];
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/reflect/TypeToken.java

       * type variable too.
       */
      final @Nullable TypeToken<? super T> getGenericSuperclass() {
        if (runtimeType instanceof TypeVariable) {
          // First bound is always the super class, if one exists.
          return boundAsSuperclass(((TypeVariable<?>) runtimeType).getBounds()[0]);
        }
        if (runtimeType instanceof WildcardType) {
          // wildcard has one and only one upper bound.
    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)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<?> parameterType = parameters.get(0).getType();
        Type[] typeArgs = ((ParameterizedType) parameterType.getType()).getActualTypeArguments();
        assertThat(typeArgs).hasLength(1);
        TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0];
        assertThat(captured.getBounds()).asList().containsExactly(Object.class);
        assertThat(new TypeToken<List<?>>() {}.isSupertypeOf(parameterType)).isTrue();
      }
    
    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)
Back to Top