List of usage examples for com.google.gson TypeAdapter subclass-usage
From source file org.netxms.websvc.json.adapters.InetAddressAdapter.java
/** * Type adapter for InetAddress class */ public class InetAddressAdapter extends TypeAdapter<InetAddress> { /* (non-Javadoc) * @see com.google.gson.TypeAdapter#write(com.google.gson.stream.JsonWriter, java.lang.Object)
From source file org.netxms.websvc.json.adapters.MacAddressAdapter.java
/** * Type adapter for MacAddress class */ public class MacAddressAdapter extends TypeAdapter<MacAddress> { /* (non-Javadoc) * @see com.google.gson.TypeAdapter#write(com.google.gson.stream.JsonWriter, java.lang.Object)
From source file org.openhab.binding.russound.internal.rio.models.AtomicStringTypeAdapter.java
/**
* A GSON {@link TypeAdapter} that will properly write/read {@link AtomicReference} strings
*
* @author Tim Roberts
*
*/
From source file org.openhab.persistence.mapdb.internal.StateTypeAdapter.java
/** * A GSON TypeAdapter for Eclipse SmartHome State values. * * @author Martin Khl - Initial contribution */ public class StateTypeAdapter extends TypeAdapter<State> {
From source file org.openstreetmap.josm.plugins.openstreetcam.service.photo.adapter.PhotoTypeAdapter.java
/**
* Custom type adapter for the {@code Photo} object.
*
* @author Beata
* @version $Revision$
*/
From source file org.openstreetmap.josm.plugins.openstreetcam.service.photo.adapter.SegmentTypeAdapter.java
/**
* Custom type adapter for the {@code Segment} object.
*
* @author beataj
* @version $Revision$
*/
From source file org.openstreetmap.josm.plugins.openstreetcam.service.PhotoTypeAdapter.java
/**
* Custom type adapter for the {@code Photo} object.
*
* @author Beata
* @version $Revision$
*/
From source file org.pf4j.update.util.LenientDateTypeAdapter.java
/** * Fork of com.google.gson.internal.bind.DateTypeAdapter */ public class LenientDateTypeAdapter extends TypeAdapter<Date> { public static final TypeAdapterFactory FACTORY = new TypeAdapterFactory() { @SuppressWarnings("unchecked") // we use a runtime check to make sure the 'T's equal
From source file org.pontis.hackathon.JSON.java
/** * Gson TypeAdapter for Joda DateTime type */ class DateTimeTypeAdapter extends TypeAdapter<DateTime> { private final DateTimeFormatter formatter = ISODateTimeFormat.dateTime();
From source file org.project.openbaton.nubomedia.paas.model.openshift.EnvironmentVariableSerializer.java
/** * Created by maa on 26.01.16. */ public class EnvironmentVariableSerializer extends TypeAdapter<EnvironmentVariable> { @Override