Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getActualTypeArguments (0.21 sec)

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

        assertEquals(HashMap.class, ourType.getRawType());
        assertThat(ourType.getActualTypeArguments())
            .asList()
            .containsExactlyElementsIn(asList(jvmType.getActualTypeArguments()))
            .inOrder();
        assertEquals(
            Arrays.asList(String.class, Types.newArrayType(Types.newArrayType(int.class))),
            Arrays.asList(ourType.getActualTypeArguments()));
        assertEquals(null, ourType.getOwnerType());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypesTest.java

        assertEquals(HashMap.class, ourType.getRawType());
        assertThat(ourType.getActualTypeArguments())
            .asList()
            .containsExactlyElementsIn(asList(jvmType.getActualTypeArguments()))
            .inOrder();
        assertEquals(
            Arrays.asList(String.class, Types.newArrayType(Types.newArrayType(int.class))),
            Arrays.asList(ourType.getActualTypeArguments()));
        assertEquals(null, ourType.getOwnerType());
      }
    
    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/TypeTokenTest.java

            (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType();
        assertEquals(MySpecialList.class, actualSubtype.getRawType());
        assertThat(actualSubtype.getActualTypeArguments()[0]).isEqualTo(String.class);
        assertThat(actualSubtype.getActualTypeArguments()[1]).isInstanceOf(TypeVariable.class);
        assertTrue(TypeToken.of(actualSubtype).isSubtypeOf(supertype));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/ParameterizedClassDesc.java

         * <p>
         * このインスタンスが表現するクラスがパラメタ化されたクラスでない場合は、{@literal null}を返します。
         * </p>
         *
         * @return 型引数を表す{@link ParameterizedClassDesc}の配列
         * @see ParameterizedType#getActualTypeArguments()
         */
        ParameterizedClassDesc[] getArguments();
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileToRawModelMergerTest.java

                                    .getGenericReturnType();
                            if (returnType instanceof ParameterizedType) {
                                return !((ParameterizedType) returnType).getActualTypeArguments()[0].equals(String.class);
                            } else {
                                return false;
                            }
                        } catch (ReflectiveOperationException | SecurityException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeResolver.java

                "Inconsistent raw type: %s vs. %s",
                fromParameterizedType,
                to);
            Type[] fromArgs = fromParameterizedType.getActualTypeArguments();
            Type[] toArgs = toParameterizedType.getActualTypeArguments();
            checkArgument(
                fromArgs.length == toArgs.length,
                "%s not compatible with %s",
                fromParameterizedType,
    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. guava/src/com/google/common/reflect/TypeResolver.java

                "Inconsistent raw type: %s vs. %s",
                fromParameterizedType,
                to);
            Type[] fromArgs = fromParameterizedType.getActualTypeArguments();
            Type[] toArgs = toParameterizedType.getActualTypeArguments();
            checkArgument(
                fromArgs.length == toArgs.length,
                "%s not compatible with %s",
                fromParameterizedType,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

            (ParameterizedType) supertype.getSubtype(subtype.getRawType()).getType();
        assertEquals(MySpecialList.class, actualSubtype.getRawType());
        assertThat(actualSubtype.getActualTypeArguments()[0]).isEqualTo(String.class);
        assertThat(actualSubtype.getActualTypeArguments()[1]).isInstanceOf(TypeVariable.class);
        assertTrue(TypeToken.of(actualSubtype).isSubtypeOf(supertype));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/reflect/Types.java

          ParameterizedType that = (ParameterizedType) other;
          return getRawType().equals(that.getRawType())
              && Objects.equal(getOwnerType(), that.getOwnerType())
              && Arrays.equals(getActualTypeArguments(), that.getActualTypeArguments());
        }
    
        private static final long serialVersionUID = 0;
      }
    
      private static <D extends GenericDeclaration> TypeVariable<D> newTypeVariableImpl(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

        Type type = new TypeCapture<EnumSet<E>>() {}.capture();
        assertVisited(type);
        new BaseTypeVisitor() {
          @Override
          void visitParameterizedType(ParameterizedType t) {
            visit(t.getActualTypeArguments());
          }
    
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            visit(t.getBounds());
          }
        }.visit(type);
      }
    
      private static void assertVisited(Type type) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
Back to top