摘要: 前情提要在Android开发中经常遇到有的接口需要上传当前时间,如果后台要求直接传一个long类型的时间戳还好,因为这个时间戳是跟时区无关的,如果后台接口要求传的是格式化的时间,若本地设备设置的时区与后台要就的时... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 前情提要在Android开发中经常遇到有的接口需要上传当前时间,如果后台要求直接传一个long类型的时间戳还好,因为这个时间戳是跟时区无关的,如果后台接口要求传的是格式化的时间,若本地设备设置的时区与后台要就的时... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 引用包dependencies { implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.16'}使用GifImageView最简单的使... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 引用包dependencies { implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.16'}使用GifImageView最简单的使... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(73) 评论(0) 推荐(0) 编辑
摘要: update方法定义第三个参数可以传入多个KeyValue修改多个字段值int update(Class var1, WhereBuilder var2, KeyValue... var3) throws DbE... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(21) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { Map.Entry entry = new AbstractMap.S... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(85) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { Map.Entry entry = new AbstractMap.S... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 停止外层循环public class Test { public static void main(String[] args) { out:for (int i = 0; i < 3; i+... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 停止外层循环public class Test { public static void main(String[] args) { out:for (int i = 0; i < 3; i+... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(44) 评论(0) 推荐(0) 编辑
摘要: update方法定义第三个参数可以传入多个KeyValue修改多个字段值int update(Class var1, WhereBuilder var2, KeyValue... var3) throws DbE... 阅读全文
posted @ 2019-05-18 22:30 野猿新一 阅读(15) 评论(0) 推荐(0) 编辑
摘要: https://www.bejson.com/json2javapojo/new/http://www.jsons.cn/json2java/http://tool.chinaz.com/Tools/json2e... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://www.bejson.com/json2javapojo/new/http://www.jsons.cn/json2java/http://tool.chinaz.com/Tools/json2e... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 假设我们想用gson把如下的json字符串转成一个Student对象,正常情况下是无法成功解析的,因为json的键名和Java类的变量名不一致,这种情况在开发中很常见,后台服务器返回的json字段经常不符合ja... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 假设我们想用gson把如下的json字符串转成一个Student对象,正常情况下是无法成功解析的,因为json的键名和Java类的变量名不一致,这种情况在开发中很常见,后台服务器返回的json字段经常不符合ja... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 先定义一个Java对象public class Student { public String name; public int age; public Student(String name,... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 先定义一个Java对象public class Student { public String name; public int age; public Student(String name,... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 引用gsondependencies { implementation 'com.google.code.gson:gson:2.8.5'}方法一:Map对象转jsonpublic void printJs... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 引用gsondependencies { implementation 'com.google.code.gson:gson:2.8.5'}方法一:Map对象转jsonpublic void printJs... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(71) 评论(0) 推荐(0) 编辑
摘要: http://www.bejson.com/jsonviewernew/https://www.json.cn/http://tool.chinaz.com/tools/jsonformat.aspx ... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(9) 评论(0) 推荐(0) 编辑
摘要: http://www.bejson.com/jsonviewernew/https://www.json.cn/http://tool.chinaz.com/tools/jsonformat.aspx ... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(23) 评论(0) 推荐(0) 编辑