List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file com.google.maps.internal.GeolocationResponseAdapter.java
public class GeolocationResponseAdapter extends TypeAdapter<GeolocationApi.Response> { /** * Reads in a JSON object to create a Geolocation Response. * See: https://developers.google.com/maps/documentation/geolocation/intro#responses * * Success Case:
From source file com.google.maps.internal.InstantAdapter.java
/** * This class handles conversion from JSON to {@link Instant}. */ public class InstantAdapter extends TypeAdapter<Instant> { /**
From source file com.google.maps.internal.LatLngAdapter.java
/** * Handle conversion from varying types of latitude and longitude representations. */ public class LatLngAdapter extends TypeAdapter<LatLng> { /** * Reads in a JSON object and try to create a LatLng in one of the following formats.
From source file com.google.maps.internal.LocalTimeAdapter.java
/** * This class handles conversion from JSON to {@link LocalTime}. */ public class LocalTimeAdapter extends TypeAdapter<LocalTime> { /** * Read a time from the Places API and convert to a {@link LocalTime}
From source file com.google.maps.internal.PriceLevelAdapter.java
/**
* This class handles conversion from JSON to {@link PriceLevel}.
*
* <p>Please see <a
* href="https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/TypeAdapter.html">GSON
* Type Adapter</a> for more detail.
From source file com.google.maps.internal.PriceLevelAdaptor.java
/**
* This class handles conversion from JSON to {@link PriceLevel}.
*
* <p>Please see
* <a href="https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/TypeAdapter.html">GSON Type
* Adapter</a> for more detail.
From source file com.google.maps.internal.SafeEnumAdapter.java
/**
* A {@link com.google.gson.TypeAdapter} that maps case-insensitive values to an enum type. If the
* value is not found, an UNKNOWN value is returned, and logged. This allows the server to return
* values this client doesn't yet know about.
* @param <E> the enum type to map values to.
*/
From source file com.google.maps.internal.TravelModeAdapter.java
/**
* This class handles conversion from JSON to {@link TravelMode}s.
*
* <p>Please see
* {@url https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/TypeAdapter.html}
* for more detail.
From source file com.greensopinion.finance.services.persistence.CategoriesTypeAdapter.java
public class CategoriesTypeAdapter extends TypeAdapter<Categories> { private static final String NAME_CATEGORIES = "categories"; public static TypeAdapterFactory factory(EncryptorProviderService encryptorProviderService) { return new TypeAdapterFactory() {
From source file com.greensopinion.finance.services.persistence.DateTypeAdapter.java
public class DateTypeAdapter extends TypeAdapter<Date> { private static final String RFC_3339_PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"; @Override public void write(JsonWriter writer, Date date) throws IOException {