- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for visitGenericArrayType (0.16 sec)
-
android/guava/src/com/google/common/reflect/TypeVisitor.java
* * <pre>{@code * new TypeVisitor() { * protected void visitParameterizedType(ParameterizedType t) { * visit(t.getOwnerType()); * visit(t.getActualTypeArguments()); * } * protected void visitGenericArrayType(GenericArrayType t) { * visit(t.getGenericComponentType()); * } * protected void visitTypeVariable(TypeVariable<?> t) { * throw new IllegalArgumentException("Cannot contain type variable."); * }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Apr 16 21:10:04 UTC 2021 - 3.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeVisitorTest.java
}.visit(type); } public <T> void testVisitGenericArrayType() { Type type = new TypeCapture<T[]>() {}.capture(); assertVisited(type); new BaseTypeVisitor() { @Override void visitGenericArrayType(GenericArrayType t) {} }.visit(type); } public <T> void testVisitParameterizedType() { Type type = new TypeCapture<Iterable<T>>() {}.capture(); assertVisited(type); new BaseTypeVisitor() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
} @Override void visitWildcardType(WildcardType t) { result.set(subtypeOfComponentType(t.getUpperBounds())); } @Override void visitGenericArrayType(GenericArrayType t) { result.set(t.getGenericComponentType()); } @Override void visitClass(Class<?> t) { result.set(t.getComponentType()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 23K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
toParameterizedType); for (int i = 0; i < fromArgs.length; i++) { populateTypeMappings(mappings, fromArgs[i], toArgs[i]); } } @Override void visitGenericArrayType(GenericArrayType fromArrayType) { if (to instanceof WildcardType) { return; // Okay to say A[] is <?> } Type componentType = Types.getComponentType(to);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeResolver.java
toParameterizedType); for (int i = 0; i < fromArgs.length; i++) { populateTypeMappings(mappings, fromArgs[i], toArgs[i]); } } @Override void visitGenericArrayType(GenericArrayType fromArrayType) { if (to instanceof WildcardType) { return; // Okay to say A[] is <?> } Type componentType = Types.getComponentType(to);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0)