Returns the corresponding wrapper type if this is a primitive type; otherwise returns this itself. Idempotent. @since 15.0
()
| 547 | |
| 548 | |
| 549 | public final TypeToken<T> wrap() { |
| 550 | if (isPrimitive()) { |
| 551 | @SuppressWarnings("unchecked") // this is a primitive class |
| 552 | Class<T> type = (Class<T>) runtimeType; |
| 553 | return of(Primitives.wrap(type)); |
| 554 | } |
| 555 | return this; |
| 556 | } |
| 557 | |
| 558 | |
| 559 | private boolean isWrapper() { |
nothing calls this directly
no test coverage detected