@Singleton public static class GsonModule.CDateAdapter extends GsonModule.DateAdapter
Constructor and Description |
---|
GsonModule.CDateAdapter(DateService dateService) |
Modifier and Type | Method and Description |
---|---|
Date |
read(com.google.gson.stream.JsonReader reader) |
void |
write(com.google.gson.stream.JsonWriter writer,
Date value) |
@Inject public GsonModule.CDateAdapter(DateService dateService)
public void write(com.google.gson.stream.JsonWriter writer, Date value) throws IOException
write
in class com.google.gson.TypeAdapter<Date>
IOException
public Date read(com.google.gson.stream.JsonReader reader) throws IOException
read
in class com.google.gson.TypeAdapter<Date>
IOException
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.