@Singleton public static class SoftLayerParserModule.VirtualGuestAdapter extends Object implements com.google.gson.JsonSerializer<VirtualGuest>, com.google.gson.JsonDeserializer<VirtualGuest>
Modifier and Type | Class and Description |
---|---|
static class |
SoftLayerParserModule.VirtualGuestAdapter.BillingItem |
static class |
SoftLayerParserModule.VirtualGuestAdapter.VirtualGuestInternal
Internal class that flattens billingItem into billingItemId
|
Constructor and Description |
---|
SoftLayerParserModule.VirtualGuestAdapter() |
Modifier and Type | Method and Description |
---|---|
VirtualGuest |
apply(SoftLayerParserModule.VirtualGuestAdapter.VirtualGuestInternal in) |
VirtualGuest |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(VirtualGuest src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public SoftLayerParserModule.VirtualGuestAdapter()
public com.google.gson.JsonElement serialize(VirtualGuest src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<VirtualGuest>
public VirtualGuest deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<VirtualGuest>
com.google.gson.JsonParseException
public VirtualGuest apply(SoftLayerParserModule.VirtualGuestAdapter.VirtualGuestInternal in)
Copyright © 2009-2012 jclouds. All Rights Reserved.