Package com.jsoniter.spi
Class TypeLiteral<T>
java.lang.Object
com.jsoniter.spi.TypeLiteral<T>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a new type literal.TypeLiteral(Type type, String decoderCacheKey, String encoderCacheKey) -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeLiteralgetDecoderCacheKey(String configName) getEncoderCacheKey(String configName) getType()toString()
-
Field Details
-
nativeTypes
-
-
Constructor Details
-
TypeLiteral
protected TypeLiteral()Constructs a new type literal. Derives represented class from type parameter. Clients create an empty anonymous subclass. Doing so embeds the type parameter in the anonymous class's type hierarchy so we can reconstitute it at runtime despite erasure. -
TypeLiteral
-
-
Method Details