Immutability is what enables the Flyweight pattern, which uses sharing to facilitate using objects to represent large numbers of fine-grained objects efficiently.
英
美
- 不变性启用了Flyweight模式,该模式利用共享使得用对象有效地表示大量细颗粒度的对象变得容易。