public class ResponseBody<T>{
public String status;
public T data;
public String msg;
}
public class Test {
public static void main(String[] args){
Hawk.init(DevApp.getContext()).build();
ResponseBody<List<String>> body = new ResponseBody<>();
body.data = Arrays.asList("1","2","3");
body.status = "status";
body.msg = "msg";
Hawk.put("body",body);
ResponseBody<List<String>> newBody = Hawk.get("body");
//newBody.data------Data types are mistaken,is LinkedTreeMap
//How to solve?
}
}