Skip to content

Instantly share code, notes, and snippets.

View pawelkw's full-sized avatar

Paweł pawelkw

  • Amsterdam, The Netherlands
View GitHub Profile
@dmarcato
dmarcato / Main.java
Last active May 21, 2020 10:25
De/Serialization of generic SparseArray using Gson library
import android.util.SparseArray;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
public class Main {
public static class MyCustomClass {
public int a;