Returns the array component type if this type represents an array (int[], T[], <? extends Map []> etc.), or else null is returned.
()
| 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}. |
no test coverage detected