mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-11-19 22:13:47 +00:00
Update 设计模式 - 享元.md
示例代码补上 import。
This commit is contained in:
@@ -35,6 +35,8 @@ public class ConcreteFlyweight implements Flyweight {
|
||||
```
|
||||
|
||||
```java
|
||||
import java.util.HashMap;
|
||||
|
||||
public class FlyweightFactory {
|
||||
|
||||
private HashMap<String, Flyweight> flyweights = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user