- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getGenericType (0.06 sec)
-
src/main/java/org/codelibs/core/lang/FieldUtil.java
* @return the element type of the collection */ public static Class<?> getElementTypeOfCollection(final Field field) { assertArgumentNotNull("field", field); final Type type = field.getGenericType(); return GenericsUtil.getRawClass(GenericsUtil.getElementTypeOfCollection(type)); } /** * Returns the key type of a parameterized map field. *Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java
assertArgumentNotNull("field", field); assertArgumentNotNull("map", map); return createParameterizedClassDesc(field.getGenericType(), map); } /** * Creates and returns a {@link ParameterizedClassDesc} that represents the type of the constructor argument. * * @param constructor
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 7.7K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Dec 09 16:35:21 UTC 2025 - 46.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java
Class<?> beanType, Field field, Class<?> valueType, PlexusConfiguration configuration) throws ComponentConfigurationException { TypeLiteral<?> fieldType = TypeLiteral.get(field.getGenericType()); return convertProperty(beanType, valueType, configuration, fieldType); } private Object convertProperty(
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Nov 12 14:59:46 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/GenericsUtil.java
* @return the generic type class, or null if not found */ public static Type getGenericParameter(final java.lang.reflect.Field field, final int index) { return getGenericParameter(field.getGenericType(), index); } /** * Returns the generic type of the specified field for the given index, or the default class if not found. * * @param field the field to analyzeRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
} Field delegateField = SubBar.class.getDeclaredField("delegate"); // barType is Bar<T>, a ParameterizedType with no generic arguments specified TypeToken<?> barType = TypeToken.of(delegateField.getGenericType()); assertThat(barType.getSubtype(SubBar.class)).isEqualTo(new SubBar<Void>().fieldTypeAsSubBar()); } @SuppressWarnings("unchecked") // To construct TypeToken<T> with TypeToken.of()Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 89K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
for (Field field : fields) { if (Modifier.isPublic(field.getModifiers()) && Modifier.isStatic(field.getModifiers()) && Modifier.isFinal(field.getModifiers())) { if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) { field.setAccessible(true); try { T constant = type.cast(field.get(null)); if (constant != null) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 20.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
for (Field field : fields) { if (Modifier.isPublic(field.getModifiers()) && Modifier.isStatic(field.getModifiers()) && Modifier.isFinal(field.getModifiers())) { if (field.getGenericType() == field.getType() && type.isAssignableFrom(field.getType())) { field.setAccessible(true); try { T constant = type.cast(field.get(null)); if (constant != null) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 21.4K bytes - Viewed (0)