commit
efc0bcd1d6
@ -1400,7 +1400,7 @@ public class Box<T> {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- [Java 泛型详解](http://www.importnew.com/24029.html)
|
- [Java 泛型详解](https://www.cnblogs.com/Blue-Keroro/p/8875898.html)
|
||||||
- [10 道 Java 泛型面试题](https://cloud.tencent.com/developer/article/1033693)
|
- [10 道 Java 泛型面试题](https://cloud.tencent.com/developer/article/1033693)
|
||||||
|
|
||||||
## 十、注解
|
## 十、注解
|
||||||
|
@ -613,6 +613,7 @@ public static void main(String[] args) {
|
|||||||
WaitNotifyExample example = new WaitNotifyExample();
|
WaitNotifyExample example = new WaitNotifyExample();
|
||||||
executorService.execute(() -> example.after());
|
executorService.execute(() -> example.after());
|
||||||
executorService.execute(() -> example.before());
|
executorService.execute(() -> example.before());
|
||||||
|
executorService.shutdown();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1077,6 +1077,11 @@ dmtsai tty1 Fri May 29 11:55 - 12:11 (00:15)
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
$ last -n 5 | awk '{print $1 "\t" $3}'
|
$ last -n 5 | awk '{print $1 "\t" $3}'
|
||||||
|
dmtsai 192.168.1.100
|
||||||
|
dmtsai 192.168.1.100
|
||||||
|
dmtsai 192.168.1.100
|
||||||
|
dmtsai 192.168.1.100
|
||||||
|
dmtsai Fri
|
||||||
```
|
```
|
||||||
|
|
||||||
可以根据字段的某些条件进行匹配,例如匹配字段小于某个值的那一行数据。
|
可以根据字段的某些条件进行匹配,例如匹配字段小于某个值的那一行数据。
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
- Originator:原始对象
|
- Originator:原始对象
|
||||||
- Caretaker:负责保存好备忘录
|
- Caretaker:负责保存好备忘录
|
||||||
- Memento:备忘录,存储原始对象的的状态。备忘录实际上有两个接口,一个是提供给 Caretaker 的窄接口:它只能将备忘录传递给其它对象;一个是提供给 Originator 的宽接口,允许它访问到先前状态所需的所有数据。理想情况是只允许 Originator 访问本备忘录的内部状态。
|
- Memento:备忘录,存储原始对象的状态。备忘录实际上有两个接口,一个是提供给 Caretaker 的窄接口:它只能将备忘录传递给其它对象;一个是提供给 Originator 的宽接口,允许它访问到先前状态所需的所有数据。理想情况是只允许 Originator 访问本备忘录的内部状态。
|
||||||
|
|
||||||
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/50678f34-694f-45a4-91c6-34d985c83fee.png"/> </div><br>
|
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/50678f34-694f-45a4-91c6-34d985c83fee.png"/> </div><br>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user