Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for TypeVariable (0.07 sec)

  1. 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));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. android/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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

        final List<TypeParameterSignature> parameterSignatures;
    
        TypeSignature(TypeVariable<Method>[] parameters) {
          parameterSignatures =
              transform(
                  asList(parameters),
                  new Function<TypeVariable<?>, TypeParameterSignature>() {
                    @Override
                    public TypeParameterSignature apply(TypeVariable<?> from) {
                      return new TypeParameterSignature(from);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/FauxveridesTest.java

        final List<TypeParameterSignature> parameterSignatures;
    
        TypeSignature(TypeVariable<Method>[] parameters) {
          parameterSignatures =
              transform(
                  asList(parameters),
                  new Function<TypeVariable<?>, TypeParameterSignature>() {
                    @Override
                    public TypeParameterSignature apply(TypeVariable<?> from) {
                      return new TypeParameterSignature(from);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<?> parameterType = parameters.get(0).getType();
        Type[] typeArgs = ((ParameterizedType) parameterType.getType()).getActualTypeArguments();
        assertThat(typeArgs).asList().hasSize(1);
        TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0];
        assertThat(captured.getBounds()).asList().containsExactly(Object.class);
        assertThat(new TypeToken<List<?>>() {}.isSupertypeOf(parameterType)).isTrue();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<?> parameterType = parameters.get(0).getType();
        Type[] typeArgs = ((ParameterizedType) parameterType.getType()).getActualTypeArguments();
        assertThat(typeArgs).asList().hasSize(1);
        TypeVariable<?> captured = (TypeVariable<?>) typeArgs[0];
        assertThat(captured.getBounds()).asList().containsExactly(Object.class);
        assertThat(new TypeToken<List<?>>() {}.isSupertypeOf(parameterType)).isTrue();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

    import java.lang.reflect.Constructor;
    import java.lang.reflect.GenericDeclaration;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.lang.reflect.ParameterizedType;
    import java.lang.reflect.TypeVariable;
    import java.util.Collections;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link Invokable}.
     *
     * @author Ben Yu
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/InvokableTest.java

    import java.lang.reflect.Constructor;
    import java.lang.reflect.GenericDeclaration;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.lang.reflect.ParameterizedType;
    import java.lang.reflect.TypeVariable;
    import java.util.Collections;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link Invokable}.
     *
     * @author Ben Yu
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top