MCPcopy Create free account
hub / github.com/antlr/codebuff / getComponentType

Method getComponentType

output/java_guava/1.4.18/TypeToken.java:585–592  ·  view source on GitHub ↗

Returns the array component type if this type represents an array (int[], T[], <? extends Map []> etc.), or else null is returned.

()

Source from the content-addressed store, hash-verified

583 */
584
585 @Nullable
586 public final TypeToken<?> getComponentType() {
587 Type componentType = Types.getComponentType(runtimeType);
588 if (componentType == null) {
589 return null;
590 }
591 return of(componentType);
592 }
593
594 /**
595 * Returns the {@link Invokable} for {@code method}, which must be a member of {@code T}.

Callers 6

isArrayMethod · 0.95
getArraySupertypeMethod · 0.95
getArraySubtypeMethod · 0.95
isSubtypeOfArrayTypeMethod · 0.45
isSupertypeOfArrayMethod · 0.45
toGenericTypeMethod · 0.45

Calls 2

getComponentTypeMethod · 0.95
ofMethod · 0.95

Tested by

no test coverage detected