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

Method wrap

output/java_guava/1.4.18/TypeToken.java:549–556  ·  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

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() {

Callers

nothing calls this directly

Calls 3

isPrimitiveMethod · 0.95
ofMethod · 0.95
wrapMethod · 0.95

Tested by

no test coverage detected