MCPcopy
hub / github.com/google/guava / toString

Method toString

guava/src/com/google/common/reflect/Types.java:162–164  ·  view source on GitHub ↗

Returns a human-readable string representation of {@code type}. <p>The format is subject to change.

(Type type)

Source from the content-addressed store, hash-verified

160 * <p>The format is subject to change.
161 */
162 static String toString(Type type) {
163 return (type instanceof Class) ? ((Class<?>) type).getName() : type.toString();
164 }
165
166 static @Nullable Type getComponentType(Type type) {
167 checkNotNull(type);

Callers 4

toStringMethod · 0.95
toStringMethod · 0.95
typeNameMethod · 0.95
testToStringMethod · 0.95

Calls 2

toStringMethod · 0.65
getNameMethod · 0.45

Tested by 1

testToStringMethod · 0.76