List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file com.sencko.basketball.stats.advanced.adapters.ActionAdapter.java
/** * * @author i028512 */ public class ActionAdapter extends TypeAdapter<Action> {
From source file com.sencko.basketball.stats.advanced.adapters.IntegerAdapter.java
/** * * @author i028512 */ public class IntegerAdapter extends TypeAdapter<Integer> {
From source file com.sencko.basketball.stats.advanced.adapters.StringAdapter.java
/** * * @author i028512 */ public class StringAdapter extends TypeAdapter<String> {
From source file com.singhinderjeet.gracenoteapi.json.UtcDateTypeAdapter.java
final class UtcDateTypeAdapter extends TypeAdapter<Date> { private final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone("UTC"); private final ThreadLocal<SimpleDateFormat> dateFormat = new ThreadLocal<SimpleDateFormat>() { // SimpleDateFormat is not thread-safe, so give one to each thread // We give one to each instance, but Gson should only have one instance of type adapter anyway @Override
From source file com.smartling.api.sdk.util.DateTypeAdapter.java
/** * {@link Date} type adapter for Gson */ public class DateTypeAdapter extends TypeAdapter<Date> { public Date read(JsonReader reader) throws IOException { if (reader.peek() == JsonToken.NULL) {
From source file com.solidfire.jsvcgen.serialization.ApiServerExceptionTypeAdapter.java
/** * The Type Adapter responsible for transforming JSON error objects into an ApiServierException */ public class ApiServerExceptionTypeAdapter extends TypeAdapter<ApiServerException> { /**
From source file com.solidfire.jsvcgen.serialization.DateTimeAdapter.java
/** * Handles converting a DateTime object to and from JSON. */ public class DateTimeAdapter extends TypeAdapter<DateTime> { /**
From source file com.solidfire.jsvcgen.serialization.DurationAdapter.java
/** * Handles converting a Duration object to and from JSON. */ public class DurationAdapter extends TypeAdapter<Duration> { /**
From source file com.sphereon.sdk.template.processor.handler.JSON.java
/** * Gson TypeAdapter for jsr310 OffsetDateTime type */ class OffsetDateTimeTypeAdapter extends TypeAdapter<OffsetDateTime> { private final DateTimeFormatter formatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
From source file com.squareup.wire.ByteStringTypeAdapter.java
/** * A {@link com.google.gson.TypeAdapter} that may be used to serialize and deserialize * {@link ByteString} values using the GSON Json library. The byte data is serialized * in Base64 format. */ class ByteStringTypeAdapter extends TypeAdapter<ByteString> {