Returns type wrapped in wrappingClass. For example, if type is List and wrappingClass is Set.class, this will return Set >.
(TypeMirror type, Class<?> wrappingClass)
| 108 | * Set.class}, this will return {@code Set<List<Number>>}. |
| 109 | */ |
| 110 | TypeMirror wrapType(TypeMirror type, Class<?> wrappingClass) { |
| 111 | return types.getDeclaredType(elements.getTypeElement(wrappingClass.getCanonicalName()), type); |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Returns {@code type}'s single type argument wrapped in {@code wrappingClass}. |
no test coverage detected