public void test() { List<User> list = new ArrayList<>(); //User 实体 测试用 String id,name; //当前测试以id来分组,具体请按开发场景修改 list.add(new User("1", "1")); list.add ...
分类:
编程语言 时间:
2020-01-20 11:21:12
阅读次数:
87
The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed ...
分类:
其他好文 时间:
2020-01-20 09:57:49
阅读次数:
93
This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2020-01-19 23:53:57
阅读次数:
103
This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2020-01-19 22:18:53
阅读次数:
107
Filebeat收集Docker日志 1 安装docker [root@node4 ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 [root@node4 ~]# yum update [root@node4 ~]# y ...
分类:
其他好文 时间:
2020-01-19 21:55:22
阅读次数:
223
Oracle的官方文档“Can GoldenGate Replicate An Oracle Table That Contains Only CLOB Column(s)? (文档 ID 971833.1) 给出了解释:OGG并不支持CLOB的复制迁移。详见如下: APPLIES TO: Orac ...
分类:
其他好文 时间:
2020-01-18 19:21:21
阅读次数:
274
阻塞队列BlockingQueue是一个接口,基于ReentrantLock ,依据它的基本原理,我们可以实现Web中二段长连接聊天功能,当然其最常用的还是用于实现生产者和消费者模式: BlockingQueue接口提供了以下方法: package java.util.concurrent; imp ...
分类:
其他好文 时间:
2020-01-18 18:03:07
阅读次数:
113
Winform控件的动态删除请参考Winform控件动态删除 List<Button> listButton = new List<Button>(); foreach (var control in wrapPanelContainer.Children) { if(!(control is Bu ...
Java之ArrayList 方法: add(o: E): void 在list的末尾添加一个元素o add(index: int, o: E): void 在指定的index处插入元素o clear(): void 从list中删除所有元素 contains(o: Object): boolean ...
分类:
其他好文 时间:
2020-01-17 21:08:14
阅读次数:
66
ViewModel的出现主要为了解决两个问题:1.当Actvitiy销毁重建过程中的数据恢复问题,虽然原来可以使用onSaveInstanceState()来完成,但是只支持能被序列化的数据而且是小量数据,对于大量数据则显得有点无力。2.UI控制器的工作繁忙,UI控制器主要用于处理显示,交互,其他的 ...
分类:
移动开发 时间:
2020-01-16 14:16:03
阅读次数:
124