Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getRawType (0.06 sec)

  1. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        T defaultValue = (T) defaults.getInstance(type.getRawType());
        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
        if (arbitrary != null) {
          return arbitrary;
        }
        if (type.getRawType() == Class.class) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeResolver.java

              populateTypeMappings(
                  mappings, fromParameterizedType.getOwnerType(), toParameterizedType.getOwnerType());
            }
            checkArgument(
                fromParameterizedType.getRawType().equals(toParameterizedType.getRawType()),
                "Inconsistent raw type: %s vs. %s",
                fromParameterizedType,
                to);
            Type[] fromArgs = fromParameterizedType.getActualTypeArguments();
    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. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

         */
        private Object parse(final MXParser parser, final TypeLiteral<?> toType) throws Exception {
            parser.require(XmlPullParser.START_TAG, null, null);
    
            final Class<?> rawType = toType.getRawType();
            if (XmlNode.class.isAssignableFrom(rawType)) {
                return XmlNodeBuilder.build(parser);
            }
            if (Xpp3Dom.class.isAssignableFrom(rawType)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        T defaultValue = (T) defaults.getInstance(type.getRawType());
        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
        if (arbitrary != null) {
          return arbitrary;
        }
        if (type.getRawType() == Class.class) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/Types.java

          if (!(other instanceof ParameterizedType)) {
            return false;
          }
          ParameterizedType that = (ParameterizedType) other;
          return getRawType().equals(that.getRawType())
              && Objects.equal(getOwnerType(), that.getOwnerType())
              && Arrays.equals(getActualTypeArguments(), that.getActualTypeArguments());
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
        assertEquals(jvmType.toString(), ourType.toString());
        assertEquals(jvmType.hashCode(), ourType.hashCode());
        assertEquals(HashMap.class, ourType.getRawType());
        assertThat(ourType.getActualTypeArguments())
            .asList()
            .containsExactlyElementsIn(asList(jvmType.getActualTypeArguments()))
            .inOrder();
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypesTest.java

        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
        assertEquals(jvmType.toString(), ourType.toString());
        assertEquals(jvmType.hashCode(), ourType.hashCode());
        assertEquals(HashMap.class, ourType.getRawType());
        assertThat(ourType.getActualTypeArguments())
            .asList()
            .containsExactlyElementsIn(asList(jvmType.getActualTypeArguments()))
            .inOrder();
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            Invokable<?, ? extends T> factory = (Invokable<?, ? extends T>) invokable;
            factories.add(factory);
          }
        }
        if (!Modifier.isAbstract(type.getRawType().getModifiers())) {
          for (Constructor<?> constructor : type.getRawType().getDeclaredConstructors()) {
            Invokable<T, T> invokable = type.constructor(constructor);
            if (!invokable.isPrivate() && !invokable.isSynthetic()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/reflect/TypeResolver.java

              populateTypeMappings(
                  mappings, fromParameterizedType.getOwnerType(), toParameterizedType.getOwnerType());
            }
            checkArgument(
                fromParameterizedType.getRawType().equals(toParameterizedType.getRawType()),
                "Inconsistent raw type: %s vs. %s",
                fromParameterizedType,
                to);
            Type[] fromArgs = fromParameterizedType.getActualTypeArguments();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                }
            }
    
            @Override
            public <Q> Supplier<Q> getCompiledBinding(Dependency<Q> dep) {
                Key<Q> key = dep.key();
                Class<Q> rawType = key.getRawType();
                if (rawType == List.class) {
                    return getListSupplier(key);
                } else if (rawType == Map.class) {
                    return getMapSupplier(key);
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top