Advertisement

Gson提供自动过滤Null解决方案

阅读量:

长时间未使用的事物往往会被遗忘,即便反复搜索,也难以寻回所需内容。自今日起,将某些信息记录在案,不仅便于自身查阅,亦期望能为他人提供参考。

复制代码
    private String aviType = "0";
    private String trace = "0";
    private String isFirstTransfer = "1";
    private String mty = "0140";
    private String respcode = null;
    
    private OpRecord opRecord;
    
    private class OpRecord {
        private String createTime = getData();
    
        private String createUserCode = "00000075";
    
        private String id = null;
    
        private String waybillNo;
    
        private int opCode = 182;
    
        public OpRecord() {
        }
    
        p

全部评论 (0)

还没有任何评论哟~