Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for TypeVariable (0.08 sec)

  1. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

         * @throws Exception
         */
        public void testGetTypeVariableMap() throws Exception {
            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Hoge.class);
            assertThat(map.size(), is(4));
            final Iterator<Entry<TypeVariable<?>, Type>> it = map.entrySet().iterator();
            Entry<TypeVariable<?>, Type> entry = it.next();
            assertThat(entry.getKey().getName(), is("T1"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/TypeResolver.java

             * 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
             * TypeVariable to be equal to any _other_ JDK TypeVariable, either, because any other JDK
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeParameterTest.java

    import java.lang.reflect.Method;
    import java.lang.reflect.TypeVariable;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link TypeParameter}.
     *
     * @author Ben Yu
     */
    public class TypeParameterTest extends TestCase {
    
      public <T> void testCaptureTypeParameter() throws Exception {
        TypeVariable<?> variable = new TypeParameter<T>() {}.typeVariable;
        TypeVariable<?> expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeParameter.java

    public abstract class TypeParameter<T> extends TypeCapture<T> {
    
      final TypeVariable<?> typeVariable;
    
      protected TypeParameter() {
        Type type = capture();
        checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type);
        this.typeVariable = (TypeVariable<?>) type;
      }
    
      @Override
      public final int hashCode() {
        return typeVariable.hashCode();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            }
            if (type instanceof TypeVariable) {
                final TypeVariable<?> typeVariable = TypeVariable.class.cast(type);
                if (map.containsKey(typeVariable)) {
                    return getActualClass(map.get(typeVariable), map);
                }
                return getActualClass(typeVariable.getBounds()[0], map);
            }
            if (type instanceof GenericArrayType) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeResolver.java

             * 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
             * TypeVariable to be equal to any _other_ JDK TypeVariable, either, because any other JDK
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  7. 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;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/reflect/TypeParameter.java

    public abstract class TypeParameter<T> extends TypeCapture<T> {
    
      final TypeVariable<?> typeVariable;
    
      protected TypeParameter() {
        Type type = capture();
        checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type);
        this.typeVariable = (TypeVariable<?>) type;
      }
    
      @Override
      public final int hashCode() {
        return typeVariable.hashCode();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top