From 1a9469a8c5aa31deacd36b3d15347f873ce7e889 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 2 May 2020 10:01:44 +0200 Subject: [PATCH] doc(UserGuide): mention TypeAdapters class (#1685) --- UserGuide.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/UserGuide.md b/UserGuide.md index f371237ce4..ff9f48c398 100644 --- a/UserGuide.md +++ b/UserGuide.md @@ -301,11 +301,12 @@ This approach is practical only if the array appears as a top-level element or i ### Built-in Serializers and Deserializers -Gson has built-in serializers and deserializers for commonly used classes whose default representation may be inappropriate. -Here is a list of such classes: +Gson has built-in serializers and deserializers for commonly used classes whose default representation may be inappropriate, for instance -1. `java.net.URL` to match it with strings like `"https://github.com/google/gson/"` -2. `java.net.URI` to match it with strings like `"/google/gson/"` +* `java.net.URL` to match it with strings like `"https://github.com/google/gson/"` +* `java.net.URI` to match it with strings like `"/google/gson/"` + +For many more, see the internal class [`TypeAdapters`](https://github.com/google/gson/blob/master/gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java). You can also find source code for some commonly used classes such as JodaTime at [this page](https://sites.google.com/site/gson/gson-type-adapters-for-common-classes-1).