MCPcopy Create free account
hub / github.com/google/auto / boxedType

Method boxedType

factory/src/main/java/com/google/auto/factory/processor/Key.java:89–93  ·  view source on GitHub ↗

If type is a primitive type, returns the boxed equivalent; otherwise returns type.

(TypeMirror type, Types types)

Source from the content-addressed store, hash-verified

87 * type}.
88 */
89 private static TypeMirror boxedType(TypeMirror type, Types types) {
90 return type.getKind().isPrimitive()
91 ? types.boxedClass(MoreTypes.asPrimitiveType(type)).asType()
92 : type;
93 }
94
95 @Override
96 public final String toString() {

Callers 1

createMethod · 0.95

Calls 4

asPrimitiveTypeMethod · 0.95
isPrimitiveMethod · 0.80
getKindMethod · 0.45
asTypeMethod · 0.45

Tested by

no test coverage detected