unsharedconcreteflyweight.java

来自「《深入浅出设计模式》的完整源代码」· Java 代码 · 共 25 行

JAVA
25
字号
/** * See page 198 of DESIGN PATTERNS [1995]. * Implemented by Blueprint Technologies, Inc. *//** * Package */package test;/** * Not all Flyweight subclasses need to be shared. The Flyweight * interface enables sharing; it doesn't enforce it. It's common * for UnsharedConcreteFlyweight objects to have ConcreteFlyweight * objects as children at some level in the flyweight object * structure. */public class UnsharedConcreteFlyweight implements Flyweight{	public void operation( ExtrinsicState state )	{	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?