Immutability is what enables the Flyweight pattern, which uses sharing to facilitate using objects to represent large numbers of fine-grained objects efficiently.

  • 不变性启用了Flyweight模式,该模式利用共享使得用对象有效地表示大量细颗粒度的对象变得容易。
目录 查词历史