Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getActualTypeArguments (0.14 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. 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)
  4. 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)
  5. 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)
  6. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * @param type
         *            タイプ
         * @return <code>type</code>の型引数の配列
         * @see ParameterizedType#getActualTypeArguments()
         */
        public static Type[] getGenericParameters(final Type type) {
            if (type instanceof ParameterizedType) {
                return ParameterizedType.class.cast(type).getActualTypeArguments();
            }
            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)
  7. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(type, returnType.getRawType());
        assertEquals(
            ImmutableList.copyOf(type.getTypeParameters()),
            ImmutableList.copyOf(returnType.getActualTypeArguments()));
      }
    
      public void testConstructor_exceptionTypes() throws Exception {
        assertEquals(
            ImmutableList.of(TypeToken.of(NullPointerException.class)),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(type, returnType.getRawType());
        assertEquals(
            ImmutableList.copyOf(type.getTypeParameters()),
            ImmutableList.copyOf(returnType.getActualTypeArguments()));
      }
    
      public void testConstructor_exceptionTypes() throws Exception {
        assertEquals(
            ImmutableList.of(TypeToken.of(NullPointerException.class)),
    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. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          }
        };
      }
    
      private static TypeToken<?> getFirstTypeParameter(Type type) {
        if (type instanceof ParameterizedType) {
          return TypeToken.of(((ParameterizedType) type).getActualTypeArguments()[0]);
        } else {
          return TypeToken.of(Object.class);
        }
      }
    
      private <T> T newDefaultReturningProxy(final TypeToken<T> type) {
        return new DummyProxy() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/NullPointerTester.java

          }
        };
      }
    
      private static TypeToken<?> getFirstTypeParameter(Type type) {
        if (type instanceof ParameterizedType) {
          return TypeToken.of(((ParameterizedType) type).getActualTypeArguments()[0]);
        } else {
          return TypeToken.of(Object.class);
        }
      }
    
      private <T> T newDefaultReturningProxy(final TypeToken<T> type) {
        return new DummyProxy() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top