Skip to content

Instantly share code, notes, and snippets.

View deois's full-sized avatar

금인수 deois

View GitHub Profile
@jingyuyao
jingyuyao / ListMultimapAdapter.java
Created May 21, 2017 00:59
Gson serializer/deserializer for ListMultimap from Guava
package com.jingyuyao.adapters;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ListMultimap;
import com.google.common.reflect.TypeToken;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.JsonSerializationContext;