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

Method wrap

output/java_guava/1.4.19/TypeToken.java:548–555  ·  view source on GitHub ↗

Returns the corresponding wrapper type if this is a primitive type; otherwise returns this itself. Idempotent. @since 15.0

()

Source from the content-addressed store, hash-verified

546
547
548 public final TypeToken<T> wrap() {
549 if (isPrimitive()) {
550 @SuppressWarnings("unchecked") // this is a primitive class
551 Class<T> type = (Class<T>) runtimeType;
552 return of(Primitives.wrap(type));
553 }
554 return this;
555 }
556
557
558 private boolean isWrapper() {

Callers

nothing calls this directly

Calls 3

isPrimitiveMethod · 0.95
ofMethod · 0.95
wrapMethod · 0.95

Tested by

no test coverage detected