Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/google/gson
/ getType
Method
getType
gson/src/main/java/com/google/gson/reflect/TypeToken.java:166–168 ·
view source on GitHub ↗
Gets underlying Type instance.
()
Source
from the content-addressed store, hash-verified
164
165
/** Gets underlying {@code Type} instance. */
166
public
final
Type getType() {
167
return
type;
168
}
169
170
/**
171
* Check
if
this type is assignable from the given
class
object.
Callers
15
test
Method · 0.95
testTypeTokenTypeVariable
Method · 0.95
testGsonFromJsonTypeToken
Method · 0.95
testFactoryReturningNull
Method · 0.95
readField
Method · 0.80
readSingleFieldValue
Method · 0.80
write
Method · 0.80
writeSingleFieldValue
Method · 0.80
serialize
Method · 0.80
deserialize
Method · 0.80
timeBagOfPrimitivesReflectionStreaming
Method · 0.80
CollectionsDeserializationBenchmark
Class · 0.80
Calls
no outgoing calls
Tested by
15
test
Method · 0.76
testTypeTokenTypeVariable
Method · 0.76
testGsonFromJsonTypeToken
Method · 0.76
testFactoryReturningNull
Method · 0.76
testDeclaredTypeAndClass
Method · 0.64
testReadClosed
Method · 0.64
testWriteHtmlSafeWithEscaping
Method · 0.64
testWriteHtmlSafeWithoutEscaping
Method · 0.64
testWriteLenient
Method · 0.64
testParseComments
Method · 0.64
testMapIsSerializable
Method · 0.64
testListIsSerializable
Method · 0.64