首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

Java实现的面向对象设计模式示例,创建者、抽象工厂、工厂方法、原型、单例、适配器、桥接、组合、装饰器、备忘录等等.zip

行业研究 459.91KB 24 需要积分: 1
立即下载

资源介绍:

Java实现的面向对象设计模式示例,创建者、抽象工厂、工厂方法、原型、单例、适配器、桥接、组合、装饰器、备忘录等等.zip
# 享元模式 ( Flyweight ) ## 用途 运用共享技术有效地支持大量细粒度的对象。 ## 适用场景 Flyweight模式的有效性很大程度上取决于如何使用它以及在何处使用它。 当以下情况都成立时使用flyweight模式: * 一个应用程序使用了大量的对象。 * 完全由于使用大量的对象,造成很大的存储开销。 * 对象的大多数状态都可变为外部状态。 * 如果删除对象的外部状态,那么可以用相对较少的共享对象取代很多组对象。 * 应用程序不依赖于对象标识。由于Flyweight对象可以被共享,对于概念上明显有别的对象,标识测试将返回真值。 ## 模式要点 ![](./uml/Flyweight.png) ### 组成部分 * Flyweight - 描述一个接口, 通过这个接口 flyweight 可以接受并作用于外部状态。 * ConcreteFlyweight — 实现 Flyweight 接口,并为内部状态(如果有的话)增加存储空间 。ConcreteFlyweight对象必须是可共享的。 它所存储的状态必须是内部的;即它必须独立于 ConcreteFlyweight 对象的场景。 * UnsharedConcreteFlyweight — 并非所有的 Flyweight 子类都需要被共享。Flyweight 接口使共享成为可能, 但它并不强制共享。 在 Flyweight 对象结构的某些层次,UnsharedConcreteFlyweight 对象通常将 ConcreteFlyweight 对象作为子节点。 * FlyweightFactory — 创建并管理 flyweight 对象。确保合理地共享 flyweight。当用户请求一个 flyweight 时,FlyweightFactory 对象提供一个已创建的实例或者创建一个(如果不存在的话)。 * Client:持有一个对 flyweight 的引用。计算或存储一个(多个)flyweight 的外部状态。 ### 协作原理 * flyweight 执行时所需的状态必定是内部的或外部的。内部状态存储于 ConcreteFlyweight 对象之中;而外部对象则由 Client 对象存储或计算。当用户调用 flyweight 对象的操作时,将该状态传递给它。 * 用户不应直接对 ConcreteFlyweight 类进行实例化, 而只能从 FlyweightFactory 对象得到 ConcreteFlyweight 对象,这可以保证对它们适当地进行共享。 ## 实例分析 ![](./uml/Weapon.png) 出售武器的商店里摆满了各式的枪。许多枪的型号是一样的,所以不需要为每一个都创建新的对象。相反,一个对象实例可以表示多个货架项目,因此内存占用空间很小。 所有的枪都可以发出射击这个动作,因此定义一个枪的接口 Shooting ``` public interface Shooting { void shoot(); } ``` 商店里的枪可以大致分为手枪、步枪、狙击枪和冲锋枪,分别定义四种枪类,它们都实现 Shooting 接口 ``` /** * 手枪 */ public class HandGun implements Shooting { private static final Logger LOGGER = LoggerFactory.getLogger(HandGun.class); @Override public void shoot() { LOGGER.info("手枪开火了(Hash={})", System.identityHashCode(this)); } } ``` ``` /** * 步枪 */ public class Musket implements Shooting { private static final Logger LOGGER = LoggerFactory.getLogger(Musket.class); @Override public void shoot() { LOGGER.info("步枪开火了(Hash={})", System.identityHashCode(this)); } } ``` ``` /** * 狙击枪 */ public class Sniper implements Shooting { private static final Logger LOGGER = LoggerFactory.getLogger(Sniper.class); @Override public void shoot() { LOGGER.info("狙击枪开火了(Hash={})", System.identityHashCode(this)); } } ``` ``` /** * 冲锋枪 */ public class Submachine implements Shooting { private static final Logger LOGGER = LoggerFactory.getLogger(Submachine.class); @Override public void shoot() { LOGGER.info("冲锋枪开火了(Hash={})", System.identityHashCode(this)); } } ``` 武器的生成由武器工厂类完成,同一种枪只存在一个对象 ``` /** * 武器工厂 */ public class GunFactory { private Map gunRepo; public GunFactory() { gunRepo = new EnumMap(GunType.class); } public Shooting createGun(GunType type) { Shooting gun = gunRepo.get(type); if (null == gun) { switch (type) { case HANDGUN: { gun = new HandGun(); gunRepo.put(HANDGUN, gun); break; } case MUSKET: { gun = new Musket(); gunRepo.put(MUSKET, gun); break; } case SNIPER: { gun = new Sniper(); gunRepo.put(SNIPER, gun); break; } case SUBMACHINE: { gun = new Submachine(); gunRepo.put(SUBMACHINE, gun); break; } } } return gun; } } ``` 武器商店使用武器工厂获得各种枪,放到两个不同的货架上 ``` /** * 武器商店 */ public class WeaponShop { private static final Logger LOGGER = LoggerFactory.getLogger(WeaponShop.class); private List shelfA; private List shelfB; public WeaponShop() { shelfA = new ArrayList<>(); shelfB = new ArrayList<>(); fillShelves(); } private void fillShelves() { GunFactory factory = new GunFactory(); shelfA.add(factory.createGun(HANDGUN)); shelfA.add(factory.createGun(HANDGUN)); shelfA.add(factory.createGun(MUSKET)); shelfA.add(factory.createGun(MUSKET)); shelfA.add(factory.createGun(SNIPER)); shelfA.add(factory.createGun(SNIPER)); shelfA.add(factory.createGun(MUSKET)); shelfA.add(factory.createGun(HANDGUN)); shelfB.add(factory.createGun(SUBMACHINE)); shelfB.add(factory.createGun(SUBMACHINE)); shelfB.add(factory.createGun(SUBMACHINE)); shelfB.add(factory.createGun(SNIPER)); } public final List getGunsOnShelfA() { return Collections.unmodifiableList(shelfA); } public final List getGunOnShelfB() { return Collections.unmodifiableList(shelfB); } public void enumrateShelves() { enumerateShelfA(); enumerateShelfB(); } private void enumerateShelfA() { LOGGER.info("从A货架上拿走所有武器"); for (Shooting gun : shelfA) { gun.shoot(); } } private void enumerateShelfB() { LOGGER.info("从B货架上拿走所有武器"); for (Shooting gun : shelfB) { gun.shoot(); } } } ``` 使用 ``` WeaponShop shop = new WeaponShop(); shop.enumrateShelves(); ``` ## 效果 使用 Flyweight 模式时, 传输、 查找和/或计算外部状态都会产生运行时的开销, 尤其当 flyweight 原先被存储为内部状态时。然而,空间上的节省抵消了这些开销。共享的 flyweight 越多, 空间节省也就越大。 存储节约由以下几个因素决定: * 因为共享,实例总数减少的数目 * 对象内部状态的平均数目 * 外部状态是计算的还是存储的共享的Flyweight越多,存储节约也就越多。节约量随着共享状态的增多而增大。当对象使用大量的内部及外部状态,并且外部状态是计算出来的而非存储的时候,节约量将达到最大。所以,可以用两种方法来节约存储:用共享减少内部状态的消耗,用计算时间换取对外部状态的存储。 Flyweight 模式经常和 Composite 模式结合起来表示一个层次式结构, 这一层次式结构是一个共享叶节点的图。 共享的结果是, Flyweight的叶节点不能存储指向父节点的指针。而父节点的指针将传给 Flyweight 作为它的外部状态的一部分。这对于该层次结构中对象之间相互通讯的方式将产生很大的影响。

资源文件列表:

Java实现的面向对象设计模式示例,创建者、抽象工厂、工厂方法、原型、单例、适配器、桥接、组合、装饰器、备忘录、观察者、状态、.zip 大约有226个文件
  1. java_design_patterns-master/interpreter/pom.xml 2.05KB
  2. java_design_patterns-master/interpreter/src/main/java/me/zbl/interpreter/Application.java 3.56KB
  3. java_design_patterns-master/interpreter/src/main/java/me/zbl/interpreter/DivisionExpression.java 1.66KB
  4. java_design_patterns-master/interpreter/src/main/java/me/zbl/interpreter/Expression.java 1.3KB
  5. java_design_patterns-master/interpreter/src/main/java/me/zbl/interpreter/MinusExpression.java 1.65KB
  6. java_design_patterns-master/interpreter/src/main/java/me/zbl/interpreter/MultipleExpression.java 1.66KB
  7. java_design_patterns-master/interpreter/src/main/java/me/zbl/interpreter/NumberExpression.java 1.54KB
  8. java_design_patterns-master/interpreter/src/main/java/me/zbl/interpreter/PlusExpression.java 1.65KB
  9. java_design_patterns-master/proxy/pom.xml 2.05KB
  10. java_design_patterns-master/proxy/src/main/java/me/zbl/proxy/Room.java 1.22KB
  11. java_design_patterns-master/proxy/src/main/java/me/zbl/proxy/Application.java 1.81KB
  12. java_design_patterns-master/proxy/src/main/java/me/zbl/proxy/DiningRoom.java 1.44KB
  13. java_design_patterns-master/proxy/src/main/java/me/zbl/proxy/Customer.java 1.33KB
  14. java_design_patterns-master/proxy/src/main/java/me/zbl/proxy/DiningRoomProxy.java 1.75KB
  15. java_design_patterns-master/LICENSE 1.04KB
  16. java_design_patterns-master/decorator/uml/Decorator_impl.png 19.02KB
  17. java_design_patterns-master/decorator/uml/Decorator.png 18.11KB
  18. java_design_patterns-master/decorator/pom.xml 2.05KB
  19. java_design_patterns-master/decorator/README.md 5.8KB
  20. java_design_patterns-master/decorator/src/test/java/me/zbl/decorator/HammerSmithOperationsTest.java 1.77KB
  21. java_design_patterns-master/decorator/src/test/java/me/zbl/decorator/CarpenterOperationsTest.java 2.7KB
  22. java_design_patterns-master/decorator/src/main/java/me/zbl/decorator/Application.java 1.76KB
  23. java_design_patterns-master/decorator/src/main/java/me/zbl/decorator/Operation.java 1.28KB
  24. java_design_patterns-master/decorator/src/main/java/me/zbl/decorator/HammerSmithOperation.java 1.85KB
  25. java_design_patterns-master/decorator/src/main/java/me/zbl/decorator/CarpenterOperation.java 1.6KB
  26. java_design_patterns-master/factory-method/pom.xml 1.89KB
  27. java_design_patterns-master/factory-method/README.md 2.22KB
  28. java_design_patterns-master/factory-method/src/test/java/me/zbl/factory/method/FactoryMethodTest.java 2.42KB
  29. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/Application.java 1.81KB
  30. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/FoodType.java 1.36KB
  31. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/Food.java 1.22KB
  32. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/Cook.java 1.23KB
  33. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/WesternCook.java 1.31KB
  34. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/WesternFood.java 1.47KB
  35. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/ChineseCook.java 1.31KB
  36. java_design_patterns-master/factory-method/src/main/java/me/zbl/factory/method/ChineseFood.java 1.47KB
  37. java_design_patterns-master/readme_template/README.md 143B
  38. java_design_patterns-master/bridge/pom.xml 2.05KB
  39. java_design_patterns-master/bridge/README.md 4.46KB
  40. java_design_patterns-master/bridge/src/test/java/me/zbl/bridge/AncientWarTest.java 1.46KB
  41. java_design_patterns-master/bridge/src/test/java/me/zbl/bridge/MordernWarTest.java 1.45KB
  42. java_design_patterns-master/bridge/src/test/java/me/zbl/bridge/WarTest.java 1.79KB
  43. java_design_patterns-master/bridge/src/main/java/me/zbl/bridge/Application.java 1.89KB
  44. java_design_patterns-master/bridge/src/main/java/me/zbl/bridge/Enemy.java 1.25KB
  45. java_design_patterns-master/bridge/src/main/java/me/zbl/bridge/IntrepidEnemy.java 1.63KB
  46. java_design_patterns-master/bridge/src/main/java/me/zbl/bridge/MordernWar.java 1.85KB
  47. java_design_patterns-master/bridge/src/main/java/me/zbl/bridge/TenderEnemy.java 1.64KB
  48. java_design_patterns-master/bridge/src/main/java/me/zbl/bridge/AncientWar.java 1.85KB
  49. java_design_patterns-master/bridge/src/main/java/me/zbl/bridge/War.java 1.26KB
  50. java_design_patterns-master/facade/pom.xml 2.05KB
  51. java_design_patterns-master/facade/src/test/java/me/zbl/facade/CourseFacadeTest.java 3.25KB
  52. java_design_patterns-master/facade/src/main/java/me/zbl/facade/Application.java 1.36KB
  53. java_design_patterns-master/facade/src/main/java/me/zbl/facade/CourseParticipator.java 2.46KB
  54. java_design_patterns-master/facade/src/main/java/me/zbl/facade/CourseFacade.java 2.1KB
  55. java_design_patterns-master/facade/src/main/java/me/zbl/facade/CourseTeacher.java 1.28KB
  56. java_design_patterns-master/facade/src/main/java/me/zbl/facade/CourseStudent.java 1.28KB
  57. java_design_patterns-master/pom.xml 4KB
  58. java_design_patterns-master/observer/pom.xml 2.05KB
  59. java_design_patterns-master/observer/src/main/java/me/zbl/observer/Application.java 1.52KB
  60. java_design_patterns-master/observer/src/main/java/me/zbl/observer/Time.java 2.01KB
  61. java_design_patterns-master/observer/src/main/java/me/zbl/observer/Southern.java 1.75KB
  62. java_design_patterns-master/observer/src/main/java/me/zbl/observer/TimeObserver.java 1.24KB
  63. java_design_patterns-master/observer/src/main/java/me/zbl/observer/TimePoint.java 1.42KB
  64. java_design_patterns-master/observer/src/main/java/me/zbl/observer/Northern.java 1.76KB
  65. java_design_patterns-master/memento/pom.xml 2.05KB
  66. java_design_patterns-master/memento/src/main/java/me/zbl/memento/Application.java 2.15KB
  67. java_design_patterns-master/memento/src/main/java/me/zbl/memento/Plant.java 1.26KB
  68. java_design_patterns-master/memento/src/main/java/me/zbl/memento/FlowerType.java 1.42KB
  69. java_design_patterns-master/memento/src/main/java/me/zbl/memento/Flower.java 3.41KB
  70. java_design_patterns-master/chain/pom.xml 2.05KB
  71. java_design_patterns-master/chain/src/main/java/me/zbl/chain/Commander.java 1.44KB
  72. java_design_patterns-master/chain/src/main/java/me/zbl/chain/Application.java 1.56KB
  73. java_design_patterns-master/chain/src/main/java/me/zbl/chain/RequestHandler.java 1.75KB
  74. java_design_patterns-master/chain/src/main/java/me/zbl/chain/Gunner.java 1.57KB
  75. java_design_patterns-master/chain/src/main/java/me/zbl/chain/Gunny.java 1.58KB
  76. java_design_patterns-master/chain/src/main/java/me/zbl/chain/Captain.java 1.57KB
  77. java_design_patterns-master/chain/src/main/java/me/zbl/chain/Request.java 1.89KB
  78. java_design_patterns-master/adapter/pom.xml 2.02KB
  79. java_design_patterns-master/adapter/README.md 3.08KB
  80. java_design_patterns-master/adapter/src/test/java/me/zbl/adapter/TestAdapter.java 2.31KB
  81. java_design_patterns-master/adapter/src/main/java/me/zbl/adapter/Application.java 1.3KB
  82. java_design_patterns-master/adapter/src/main/java/me/zbl/adapter/Driver.java 1.33KB
  83. java_design_patterns-master/adapter/src/main/java/me/zbl/adapter/BusAdapter.java 1.34KB
  84. java_design_patterns-master/adapter/src/main/java/me/zbl/adapter/Car.java 1.2KB
  85. java_design_patterns-master/adapter/src/main/java/me/zbl/adapter/Bus.java 1.38KB
  86. java_design_patterns-master/prototype/pom.xml 2.05KB
  87. java_design_patterns-master/prototype/README.md 1.53KB
  88. java_design_patterns-master/prototype/src/test/java/me/zbl/prototype/FactoryTest.java 2.07KB
  89. java_design_patterns-master/prototype/src/test/java/me/zbl/prototype/PrototypeTest.java 2.5KB
  90. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/Application.java 2.22KB
  91. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/EstateDriver.java 1.42KB
  92. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/OffRoadDriver.java 1.42KB
  93. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/Prototype.java 1.3KB
  94. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/OffRoadPassanger.java 1.43KB
  95. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/TeamFactory.java 1.29KB
  96. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/Driver.java 1.29KB
  97. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/TeamFactoryImpl.java 2.04KB
  98. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/Vehicle.java 1.29KB
  99. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/EstatePassanger.java 1.43KB
  100. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/Passenger.java 1.3KB
  101. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/EstateVehicle.java 1.41KB
  102. java_design_patterns-master/prototype/src/main/java/me/zbl/prototype/OffRoadVehicle.java 1.41KB
  103. java_design_patterns-master/state/pom.xml 2.05KB
  104. java_design_patterns-master/state/src/main/java/me/zbl/state/Application.java 1.37KB
  105. java_design_patterns-master/state/src/main/java/me/zbl/state/Coder.java 1.62KB
  106. java_design_patterns-master/state/src/main/java/me/zbl/state/ImpatientState.java 1.69KB
  107. java_design_patterns-master/state/src/main/java/me/zbl/state/State.java 1.24KB
  108. java_design_patterns-master/state/src/main/java/me/zbl/state/IdleState.java 1.63KB
  109. java_design_patterns-master/composite/uml/Composite.png 47.17KB
  110. java_design_patterns-master/composite/uml/Character.png 38.76KB
  111. java_design_patterns-master/composite/pom.xml 1.89KB
  112. java_design_patterns-master/composite/README.md 6.41KB
  113. java_design_patterns-master/composite/src/test/java/me/zbl/composite/WriterTest.java 2.96KB
  114. java_design_patterns-master/composite/src/main/java/me/zbl/composite/ChineseWord.java 1.42KB
  115. java_design_patterns-master/composite/src/main/java/me/zbl/composite/Application.java 1.46KB
  116. java_design_patterns-master/composite/src/main/java/me/zbl/composite/Writer.java 2.7KB
  117. java_design_patterns-master/composite/src/main/java/me/zbl/composite/EnglishWord.java 1.42KB
  118. java_design_patterns-master/composite/src/main/java/me/zbl/composite/EnglishSentence.java 1.43KB
  119. java_design_patterns-master/composite/src/main/java/me/zbl/composite/Character.java 1.34KB
  120. java_design_patterns-master/composite/src/main/java/me/zbl/composite/CharacterComposite.java 1.68KB
  121. java_design_patterns-master/composite/src/main/java/me/zbl/composite/ChineseSentence.java 1.43KB
  122. java_design_patterns-master/README.md 3.47KB
  123. java_design_patterns-master/iterator/pom.xml 2.05KB
  124. java_design_patterns-master/iterator/src/main/java/Application.java 2.29KB
  125. java_design_patterns-master/iterator/src/main/java/BookShelfIterator.java 1.99KB
  126. java_design_patterns-master/iterator/src/main/java/BookShelf.java 2.08KB
  127. java_design_patterns-master/iterator/src/main/java/ItemType.java 1.19KB
  128. java_design_patterns-master/iterator/src/main/java/ItemIterator.java 1.22KB
  129. java_design_patterns-master/iterator/src/main/java/Item.java 1.48KB
  130. java_design_patterns-master/.gitignore 374B
  131. java_design_patterns-master/template-method/pom.xml 2.06KB
  132. java_design_patterns-master/template-method/src/main/java/me/zbl/template/method/LearningMethod.java 2.01KB
  133. java_design_patterns-master/template-method/src/main/java/me/zbl/template/method/Application.java 1.63KB
  134. java_design_patterns-master/template-method/src/main/java/me/zbl/template/method/PositiveLearningMethod.java 1.8KB
  135. java_design_patterns-master/template-method/src/main/java/me/zbl/template/method/Student.java 1.63KB
  136. java_design_patterns-master/template-method/src/main/java/me/zbl/template/method/NegativeLearinngMethod.java 1.81KB
  137. java_design_patterns-master/visitor/pom.xml 2.05KB
  138. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/Application.java 1.51KB
  139. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/Manager.java 1.45KB
  140. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/Unit.java 1.46KB
  141. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/BossVisitor.java 1.58KB
  142. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/UnitVisitor.java 1.31KB
  143. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/ManagerVisitor.java 1.59KB
  144. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/EngineerVisitor.java 1.59KB
  145. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/Engineer.java 1.46KB
  146. java_design_patterns-master/visitor/src/main/java/me/zbl/visitor/Boss.java 1.44KB
  147. java_design_patterns-master/singleton/pom.xml 1.89KB
  148. java_design_patterns-master/singleton/README.md 4.71KB
  149. java_design_patterns-master/singleton/src/test/java/me/zbl/singleton/EnumDirectorTest.java 1.37KB
  150. java_design_patterns-master/singleton/src/test/java/me/zbl/singleton/ThreadSafeLazyLoadDirectorTest.java 1.44KB
  151. java_design_patterns-master/singleton/src/test/java/me/zbl/singleton/DirectorTest.java 1.34KB
  152. java_design_patterns-master/singleton/src/test/java/me/zbl/singleton/ThreadSafeDoubleCheckLockingTest.java 1.44KB
  153. java_design_patterns-master/singleton/src/test/java/me/zbl/singleton/LazyInitializationDirectorTest.java 1.42KB
  154. java_design_patterns-master/singleton/src/test/java/me/zbl/singleton/SingletonTest.java 3.4KB
  155. java_design_patterns-master/singleton/src/main/java/me/zbl/singleton/LazyInitializationDirector.java 1.82KB
  156. java_design_patterns-master/singleton/src/main/java/me/zbl/singleton/ThreadSafeLazyLoadDirector.java 1.76KB
  157. java_design_patterns-master/singleton/src/main/java/me/zbl/singleton/Application.java 2.92KB
  158. java_design_patterns-master/singleton/src/main/java/me/zbl/singleton/EnumDirector.java 1.34KB
  159. java_design_patterns-master/singleton/src/main/java/me/zbl/singleton/ThreadSafeDoubleCheckLocking.java 3.04KB
  160. java_design_patterns-master/singleton/src/main/java/me/zbl/singleton/Director.java 1.59KB
  161. java_design_patterns-master/abstract-factory/pom.xml 1.82KB
  162. java_design_patterns-master/abstract-factory/README.md 3.08KB
  163. java_design_patterns-master/abstract-factory/src/test/java/me/zbl/abstractFactory/AbstractFactoryTest.java 2.34KB
  164. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/OldCaptain.java 1.34KB
  165. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/NewShip.java 1.33KB
  166. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java 2.62KB
  167. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/TeamFactory.java 1.3KB
  168. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/Ship.java 1.21KB
  169. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/YoungTeamFactory.java 1.43KB
  170. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/Sailor.java 1.21KB
  171. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/OldShip.java 1.33KB
  172. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/YoungCaptain.java 1.35KB
  173. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/PermanentTeamFactory.java 1.43KB
  174. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/YoungSailor.java 1.34KB
  175. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/Member.java 1.24KB
  176. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/OldSailor.java 1.34KB
  177. java_design_patterns-master/abstract-factory/src/main/java/me/zbl/abstractFactory/Captain.java 1.21KB
  178. java_design_patterns-master/command/pom.xml 2.05KB
  179. java_design_patterns-master/command/src/main/java/me/zbl/command/Size.java 1.35KB
  180. java_design_patterns-master/command/src/main/java/me/zbl/command/Application.java 2.01KB
  181. java_design_patterns-master/command/src/main/java/me/zbl/command/AbstractFont.java 1.83KB
  182. java_design_patterns-master/command/src/main/java/me/zbl/command/Command.java 1.35KB
  183. java_design_patterns-master/command/src/main/java/me/zbl/command/RegularScript.java 1.36KB
  184. java_design_patterns-master/command/src/main/java/me/zbl/command/Enlarge.java 1.64KB
  185. java_design_patterns-master/command/src/main/java/me/zbl/command/Rubify.java 1.66KB
  186. java_design_patterns-master/command/src/main/java/me/zbl/command/Typist.java 2.46KB
  187. java_design_patterns-master/command/src/main/java/me/zbl/command/Color.java 1.35KB
  188. java_design_patterns-master/flyweight/uml/Weapon.png 79.11KB
  189. java_design_patterns-master/flyweight/uml/Flyweight.png 32.89KB
  190. java_design_patterns-master/flyweight/pom.xml 2.05KB
  191. java_design_patterns-master/flyweight/README.md 7.47KB
  192. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/Sniper.java 1.46KB
  193. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/WeaponShop.java 2.81KB
  194. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/Application.java 1.31KB
  195. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/GunType.java 1.3KB
  196. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/GunFactory.java 2.04KB
  197. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/Musket.java 1.45KB
  198. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/Shooting.java 1.21KB
  199. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/HandGun.java 1.46KB
  200. java_design_patterns-master/flyweight/src/main/java/me/zbl/flyweight/Submachine.java 1.47KB
  201. java_design_patterns-master/builder/pom.xml 1.81KB
  202. java_design_patterns-master/builder/README.md 2.89KB
  203. java_design_patterns-master/builder/src/test/java/me/zbl/builder/TestPerson.java 2.23KB
  204. java_design_patterns-master/builder/src/main/java/me/zbl/builder/Nationality.java 1.41KB
  205. java_design_patterns-master/builder/src/main/java/me/zbl/builder/Application.java 1.93KB
  206. java_design_patterns-master/builder/src/main/java/me/zbl/builder/SkinColor.java 1.38KB
  207. java_design_patterns-master/builder/src/main/java/me/zbl/builder/Person.java 2.88KB
  208. java_design_patterns-master/.travis.yml 63B
  209. java_design_patterns-master/mediator/pom.xml 2.05KB
  210. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/PartyMember.java 1.3KB
  211. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/Activity.java 1.59KB
  212. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/Party.java 1.28KB
  213. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/Application.java 1.82KB
  214. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/Businessman.java 1.28KB
  215. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/Oldman.java 1.28KB
  216. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/AbstractPartyMember.java 1.93KB
  217. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/Student.java 1.28KB
  218. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/PartyImpl.java 1.67KB
  219. java_design_patterns-master/mediator/src/main/java/me/zbl/mediator/Officer.java 1.28KB
  220. java_design_patterns-master/strategy/pom.xml 2.05KB
  221. java_design_patterns-master/strategy/src/main/java/me/zbl/strategy/Application.java 1.47KB
  222. java_design_patterns-master/strategy/src/main/java/me/zbl/strategy/BusinessMan.java 1.47KB
  223. java_design_patterns-master/strategy/src/main/java/me/zbl/strategy/TransportationTrain.java 1.46KB
  224. java_design_patterns-master/strategy/src/main/java/me/zbl/strategy/TransportationStrategy.java 1.25KB
  225. java_design_patterns-master/strategy/src/main/java/me/zbl/strategy/TransportationVehicle.java 1.46KB
  226. java_design_patterns-master/strategy/src/main/java/me/zbl/strategy/TransportationAirplane.java 1.47KB
0评论
提交 加载更多评论
其他资源 设计模式示例程序.zip
设计模式示例程序
项目电商.zip
项目电商
企业级SpringCould脚手架工程:Eureka、Ribbon、Hystrix、Zuul、Feign、分布式事务.zip
企业级SpringCould脚手架工程:Eureka、Ribbon、Hystrix、Zuul、Feign、分布式事务、分布式锁、
前后分离的通用后台管理系统,前端基于AntDesignPro-Vue,后端基于SpringBoo2.x.zip
前后分离的通用后台管理系统,前端基于AntDesignPro-Vue,后端基于SpringBoo2.x。包含:定时任务管控、
设计模式第一个版本.zip
设计模式第一个版本
设计模式代码库.zip
设计模式代码库.zip
设计模式-java实现.zip
设计模式--java实现.zip
模仿大富翁游戏,使用JavaSwing(GUI)实现的单机游戏,遵循MVC设计模式 CreatedinJava.Usi.zip
模仿大富翁游戏,使用JavaSwing(GUI)实现的单机游戏,遵循MVC设计模式。CreatedinJava.Usi.zip