Immutability is what enables the flyweight pattern , which uses sharing to facilitate using objects to represent large numbers of fine - grained objects efficiently 不变性启用了flyweight模式,该模式利用共享使得用对象有效地表示大量细颗粒度的对象变得容易。
3.
Although he was never an olympian himself , he paved the way for many talented chinese lifters , ranging from flyweight to super heavyweight , to succeed in the olympics 尽管他自己从未参加过奥运会,但他为许多才能出众的中国举重运动员(不管是次轻量级也好,超重量级也好)在奥运会上获得胜利铺平了道路。
4.
The flyweight pattern employs a factory method to dispense references to immutable fine - grained objects and uses sharing to keep the object count down by only having a single instance of the object corresponding to the letter " a . " for more information on the flyweight pattern , see the classic book , Flyweight模式采用工厂方法来分配对不变的细颗粒度对象的引用,并通过仅使一个对象实例与字母“ a ”对应来利用共享缩减对象数。有关flyweight模式的更多信息,请参阅经典书籍