View on GitHub

Jparsec-g

Use jparsec to parse Guava TypeToken

Download this project as a .zip file Download this project as a tar.gz file

jparsec-g

Use jparsec to parse Guava TypeToken.

To deserialize TypeToken:

new TypeParser().parse(serialized_string)

To flexibly and reflectively construct TypeToken:

TypeToken<?> genericType = parser.parse(theClass.getCanonicalName() + "<?, String>");