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

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

设计模式代码库.zip

行业研究 215.91KB 23 需要积分: 1
立即下载

资源介绍:

设计模式代码库.zip
## 桥接模式 **模式定义** 将抽象部分与它的实现部分分离,使它们都可以独立地变化。 ## 优点 1. 分离抽象和实现部分 桥接模式分离了抽象部分和实现部分,从而极大地提高了系统的灵活性。让抽象部分和实现部分独立开来, 分别定义接口,这有助于对系统进行分层,从而产生更好的结构化的系统。对于系统的高层部分, 只需要知道抽象部分和实现部分的接口就可以了。 1. 更好的扩展性 由于桥接模式把抽象部分和实现部分分离开了,而且分别定义接口,这就使得抽象部分和实现部分可以分别独立地扩展, 而不会相互影响,从而大大地提高了系统的可扩展性。 1. 可动态地切换实现 由于桥接模式把抽象部分和实现部分分离开了,所以在实现桥接的时候,就可以实现动态的选择和使用具体的实现。 也就是说一个实现不再是固定的绑定在一个抽象接口上了,可以实现运行期间动态地切换。 1. 可减少子类的个数 根据前面的讲述,对于有两个变化纬度的情况,如果采用继承的实现方式,大约需要两个纬度上的可变化数量的乘积个子类; 而采用桥接模式来实现,大约需要两个纬度上的可变化数量的和个子类。可以明显地减少子类的个数。 ## 缺点 无 ## 本质 桥接模式的本质:分离抽象和实现。 桥接模式最重要的工作就是分离抽象部分和实现部分,这是解决问题的关键。只有把抽象部分和实现部分分离开了, 才能够让它们独立地变化;只有抽象部分和实现部分可以独立地变化,系统才会有更好的可扩展性和可维护性。 ## 设计原则 * 桥接模式很好地实现了开闭原则。 * 桥接模式还很好地体现了:多用对象组合,少用对象继承。 ## 使用场景 建议在以下情况中选用桥接模式。 1. 如果你不希望在抽象部分和实现部分采用固定的绑定关系,可以采用桥接模式,来把抽象部分和实现部分分开, 然后在程序运行期间来动态地设置抽象部分需要用到的具体的实现,还可以动态地切换具体的实现。 2. 如果出现抽象部分和实现部分都能够扩展的情况,可以采用桥接模式,让抽象部分和实现部分独立地变化, 从而灵活地进行单独扩展,而不是搅在一起,扩展一边就会影响到另一边。 3. 如果希望实现部分的修改不会对客户产生影响,可以采用桥接模式。由于客户是面向抽象的接口在运行, 实现部分的修改可以独立于抽象部分,并不会对客户产生影响,也可以说对客户是透明的。 4. 如果采用继承的实现方案,会导致产生很多子类,对于这种情况,可以考虑采用桥接模式,分析功能变化的原因, 看看是否能分离成不同的纬度,然后通过桥接模式来分离它们,从而减少子类的数目。

资源文件列表:

设计模式代码库.zip 大约有316个文件
  1. design-pattern-master/pattern11-observer/pom.xml 526B
  2. design-pattern-master/pattern11-observer/README.md 2.58KB
  3. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Client.java 699B
  4. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Subject.java 1.03KB
  5. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Reader.java 566B
  6. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Observer.java 286B
  7. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/NewsPaper.java 699B
  8. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/ConcreteObserver.java 541B
  9. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/Subject.java 884B
  10. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/ConcreteSubject.java 536B
  11. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/Observer.java 358B
  12. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/builtin/Client.java 792B
  13. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/builtin/Reader.java 780B
  14. design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/builtin/NewsPaper.java 982B
  15. design-pattern-master/pattern20-interpreter/pom.xml 529B
  16. design-pattern-master/pattern20-interpreter/README.md 1.15KB
  17. design-pattern-master/pattern20-interpreter/src/main/resources/config.xml 261B
  18. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/Client.java 1.51KB
  19. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/ReadXmlExpression.java 393B
  20. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/Context.java 1.74KB
  21. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/XmlUtil.java 817B
  22. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/ElementExpression.java 1.58KB
  23. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/PropertyTerminalExpression.java 549B
  24. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/ElementTerminalExpression.java 1.14KB
  25. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/NonterminalExpression.java 271B
  26. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/Client.java 212B
  27. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/Context.java 203B
  28. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/TerminalExpression.java 261B
  29. design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/AbstractExpression.java 226B
  30. design-pattern-master/pattern23-bridge/pom.xml 524B
  31. design-pattern-master/pattern23-bridge/README.md 2.99KB
  32. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/UrgencyMessage.java 715B
  33. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/AbstractMessage.java 697B
  34. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/MessageImplementor.java 323B
  35. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/MessageSMS.java 320B
  36. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/MessageEmail.java 306B
  37. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/CommonMessage.java 404B
  38. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/Abstraction.java 583B
  39. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/ConcreteImplementorA.java 273B
  40. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/RefinedAbstraction.java 582B
  41. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/ConcreteImplementorB.java 212B
  42. design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/Implementor.java 283B
  43. design-pattern-master/pattern24-visitor/pom.xml 737B
  44. design-pattern-master/pattern24-visitor/README.md 1.65KB
  45. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/Element.java 263B
  46. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/Client.java 592B
  47. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteVisitor1.java 628B
  48. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteElementA.java 418B
  49. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/Visitor.java 501B
  50. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteElementB.java 417B
  51. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteVisitor2.java 628B
  52. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ObjectStructure.java 1004B
  53. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Client.java 1013B
  54. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Visitor.java 492B
  55. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Component.java 1.38KB
  56. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Composite.java 1.13KB
  57. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/PrintNameVisitor.java 574B
  58. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Leaf.java 608B
  59. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/ObjectStructure.java 845B
  60. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/Client.java 980B
  61. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/EnterpriseCustomer.java 366B
  62. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/ServiceRequestVisitor.java 563B
  63. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/Customer.java 309B
  64. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/Visitor.java 506B
  65. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/PredilectionAnalyzeVisitor.java 711B
  66. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/PersonalCustomer.java 317B
  67. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/ObjectStructure.java 873B
  68. design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/WorthAnalyzeVisitor.java 644B
  69. design-pattern-master/pattern08-prototype/pom.xml 527B
  70. design-pattern-master/pattern08-prototype/README.md 1.36KB
  71. design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/OrderApi.java 257B
  72. design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/Client.java 813B
  73. design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/PersonalOrder.java 1.27KB
  74. design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/OrderBusiness.java 1.15KB
  75. design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/EnterpriseOrder.java 1.3KB
  76. design-pattern-master/pattern14-composite/pom.xml 527B
  77. design-pattern-master/pattern14-composite/README.md 2.04KB
  78. design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Client.java 715B
  79. design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Component.java 1.49KB
  80. design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Composite.java 1.34KB
  81. design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Leaf.java 291B
  82. design-pattern-master/pattern17-state/pom.xml 523B
  83. design-pattern-master/pattern17-state/README.md 2.72KB
  84. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/Client.java 323B
  85. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/BlackVoteState.java 425B
  86. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/VoteManager.java 1.98KB
  87. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/NormalVoteState.java 436B
  88. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/RepeatVoteState.java 375B
  89. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/SpiteVoteState.java 572B
  90. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/VoteState.java 491B
  91. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/ConcreteStateB.java 256B
  92. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/Context.java 698B
  93. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/ConcreteStateA.java 256B
  94. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/State.java 429B
  95. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/LeaveRequestContext.java 246B
  96. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/DepManagerState.java 605B
  97. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/StateMachine.java 1.04KB
  98. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/ProjectManagerState.java 1.36KB
  99. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/LeaveRequestState.java 243B
  100. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/State.java 252B
  101. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/LeaveRequestModel.java 1005B
  102. design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/AuditOverState.java 376B
  103. design-pattern-master/pattern13-iterator/pom.xml 526B
  104. design-pattern-master/pattern13-iterator/README.md 1.97KB
  105. design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/Client.java 1.03KB
  106. design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/ConcreteIterator.java 1.16KB
  107. design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/Aggregate.java 337B
  108. design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/ConcreteAggregate.java 1.04KB
  109. design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/Iterator.java 775B
  110. design-pattern-master/pattern22-responsibility/pom.xml 532B
  111. design-pattern-master/pattern22-responsibility/README.md 2.6KB
  112. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/ProjectManager.java 994B
  113. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/Client.java 1.06KB
  114. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/DepManager.java 988B
  115. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/Handler.java 680B
  116. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/GeneralManager.java 995B
  117. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/Client.java 395B
  118. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/Handler.java 664B
  119. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/ConcreteHandler2.java 1.04KB
  120. design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/ConcreteHandler1.java 1.04KB
  121. design-pattern-master/pom.xml 4.81KB
  122. design-pattern-master/pattern10-proxy/pom.xml 523B
  123. design-pattern-master/pattern10-proxy/README.md 591B
  124. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/OrderApi.java 1.16KB
  125. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/Order.java 1.29KB
  126. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/Client.java 974B
  127. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/OrderProxy.java 1.98KB
  128. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/standard/Subject.java 254B
  129. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/standard/Proxy.java 722B
  130. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/standard/RealSubject.java 228B
  131. design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/DynamicProxy.java 1.69KB
  132. design-pattern-master/pattern19-flyweight/pom.xml 527B
  133. design-pattern-master/pattern19-flyweight/README.md 1016B
  134. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/FlyweightFactory.java 1.08KB
  135. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/ConcreteFlyweight.java 587B
  136. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/Flyweight.java 333B
  137. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/UnsharedConcreteFlyweight.java 413B
  138. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/Client.java 755B
  139. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/FlyweightFactory.java 865B
  140. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/SecurityMgr.java 2.38KB
  141. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/TestDB.java 752B
  142. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/Flyweight.java 394B
  143. design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/AuthorizationFlyweight.java 1017B
  144. design-pattern-master/pattern09-mediator/pom.xml 526B
  145. design-pattern-master/pattern09-mediator/README.md 2.02KB
  146. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/MainBoardImpl.java 2.02KB
  147. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/Client.java 791B
  148. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/CPU.java 977B
  149. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/SoundCard.java 440B
  150. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/MainBoard.java 475B
  151. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/ConcreteMediator.java 1KB
  152. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/ConcreteColleagueA.java 430B
  153. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/Colleague.java 620B
  154. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/ConcreteColleagueB.java 430B
  155. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/Mediator.java 507B
  156. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/CDDriver.java 769B
  157. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/Device.java 348B
  158. design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/VideoCard.java 434B
  159. design-pattern-master/pattern12-command/pom.xml 525B
  160. design-pattern-master/pattern12-command/README.md 2.62KB
  161. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Client.java 1.45KB
  162. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Operation.java 542B
  163. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Command.java 309B
  164. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/AddCommand.java 986B
  165. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/OperationApi.java 583B
  166. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/SubstractCommand.java 997B
  167. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Calculator.java 2.09KB
  168. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Client.java 502B
  169. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Receiver.java 256B
  170. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Command.java 263B
  171. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/ConcreteCommand.java 682B
  172. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Invoker.java 531B
  173. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/Client.java 619B
  174. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/MainBoardApi.java 186B
  175. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/Command.java 263B
  176. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/OpenCommand.java 742B
  177. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/GigaMainBoard.java 636B
  178. design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/Box.java 630B
  179. design-pattern-master/pattern07-builder/pom.xml 525B
  180. design-pattern-master/pattern07-builder/README.md 1.5KB
  181. design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/Client.java 1.36KB
  182. design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/Builder.java 645B
  183. design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/Director.java 901B
  184. design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/TxtBuilder.java 1KB
  185. design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/ExportHeaderModel.java 618B
  186. design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/ExportDataModel.java 788B
  187. design-pattern-master/README.md 1.98KB
  188. design-pattern-master/pattern18-memento/pom.xml 525B
  189. design-pattern-master/pattern18-memento/README.md 2.43KB
  190. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Client.java 1.51KB
  191. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Memento.java 158B
  192. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Operation.java 948B
  193. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/AbstractCommand.java 741B
  194. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Command.java 645B
  195. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/AddCommand.java 294B
  196. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/OperationApi.java 849B
  197. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/SubstractCommand.java 368B
  198. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Calculator.java 3.84KB
  199. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/Client.java 1012B
  200. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/FlowAMockMemento.java 159B
  201. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/FlowAMementoCareTaker.java 643B
  202. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/FlowAMock.java 2.9KB
  203. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/standard/Memento.java 137B
  204. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/standard/Caretaker.java 579B
  205. design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/standard/Originator.java 1.17KB
  206. design-pattern-master/pattern01-simple-factory/pom.xml 532B
  207. design-pattern-master/pattern01-simple-factory/README.md 2KB
  208. design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/ImplB.java 255B
  209. design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/Client.java 339B
  210. design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/Factory.java 807B
  211. design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/Api.java 279B
  212. design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/ImplA.java 258B
  213. design-pattern-master/.gitignore 257B
  214. design-pattern-master/pattern21-decorator/pom.xml 527B
  215. design-pattern-master/pattern21-decorator/README.md 2.12KB
  216. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/SumPrizeDecorator.java 738B
  217. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/Client.java 1.32KB
  218. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/TempDB.java 597B
  219. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/Decorator.java 613B
  220. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/GroupPrizeDecorator.java 843B
  221. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/ConcreteComponent.java 353B
  222. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/Component.java 653B
  223. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/MonthPrizeDecorator.java 699B
  224. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/ConcreteDecoratorA.java 712B
  225. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/Decorator.java 645B
  226. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/ConcreteComponent.java 221B
  227. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/Component.java 238B
  228. design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/ConcreteDecoratorB.java 554B
  229. design-pattern-master/pattern04-singleton/pom.xml 527B
  230. design-pattern-master/pattern04-singleton/README.md 470B
  231. design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/Client.java 450B
  232. design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/Singleton2.java 450B
  233. design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/Singleton.java 810B
  234. design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/AppConfig.java 1.89KB
  235. design-pattern-master/pattern05-factory-method/pom.xml 532B
  236. design-pattern-master/pattern05-factory-method/README.md 2.74KB
  237. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportDB.java 368B
  238. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/Client.java 304B
  239. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportDBOperate.java 347B
  240. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportFileApi.java 349B
  241. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportTxtFile.java 343B
  242. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportOperate.java 608B
  243. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportTxtFileOperate.java 339B
  244. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/ConcreteProduct.java 177B
  245. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/Product.java 178B
  246. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/Creator.java 506B
  247. design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/ConcreteCreator.java 298B
  248. design-pattern-master/pattern02-facade/pom.xml 524B
  249. design-pattern-master/pattern02-facade/README.md 1.85KB
  250. design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Client.java 247B
  251. design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/ConfigManager.java 771B
  252. design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Presentation.java 474B
  253. design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/DAO.java 330B
  254. design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/ConfigModel.java 1.03KB
  255. design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Business.java 340B
  256. design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Facade.java 334B
  257. design-pattern-master/pattern03-adapter/pom.xml 525B
  258. design-pattern-master/pattern03-adapter/README.md 1.6KB
  259. design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/Client.java 911B
  260. design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogDbOperate.java 687B
  261. design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogFileOperate.java 2.13KB
  262. design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogModel.java 1.25KB
  263. design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogFileOperateApi.java 521B
  264. design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/Adapter.java 1.57KB
  265. design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogDbOperateApi.java 731B
  266. design-pattern-master/pattern15-template/pom.xml 526B
  267. design-pattern-master/pattern15-template/README.md 1.68KB
  268. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/JDBCTemplate.java 5.97KB
  269. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/Client.java 1.01KB
  270. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/UserJDBC.java 3.48KB
  271. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/UserModel.java 661B
  272. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/UserQueryModel.java 524B
  273. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/standard/ConcreteClass.java 297B
  274. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/standard/AbstractClass.java 570B
  275. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/Client.java 638B
  276. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/WorkerLogin.java 710B
  277. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/LoginTemplate.java 1.75KB
  278. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/NormalLogin.java 423B
  279. design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/LoginModel.java 604B
  280. design-pattern-master/pattern06-abstract-factory/pom.xml 534B
  281. design-pattern-master/pattern06-abstract-factory/README.md 2.64KB
  282. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductA2.java 189B
  283. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/Client.java 351B
  284. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ConcreteFactory2.java 371B
  285. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductB2.java 190B
  286. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/AbstractFactory.java 468B
  287. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/AbstractProductA.java 166B
  288. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/AbstractProductB.java 166B
  289. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductB1.java 190B
  290. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ConcreteFactory1.java 371B
  291. design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductA1.java 189B
  292. design-pattern-master/pattern16-strategy/pom.xml 526B
  293. design-pattern-master/pattern16-strategy/README.md 2.89KB
  294. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/Client.java 899B
  295. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/PaymentContext.java 1.21KB
  296. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/Card.java 537B
  297. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/PaymentStrategy.java 432B
  298. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/DollarCash.java 305B
  299. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/Card2.java 862B
  300. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/RMBCash.java 309B
  301. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/PaymentContext2.java 795B
  302. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/Client.java 314B
  303. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/LogContext.java 640B
  304. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/DbLog.java 363B
  305. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/FileLog.java 244B
  306. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/LogStrategy.java 237B
  307. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/ConcreteStrategyA.java 215B
  308. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/Strategy.java 245B
  309. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/Context.java 685B
  310. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/ConcreteStrategyB.java 214B
  311. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/OldCustomerStrategy.java 328B
  312. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/Client.java 430B
  313. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/Strategy.java 334B
  314. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/Price.java 718B
  315. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/NormalCustomerStrategy.java 357B
  316. design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/LargeCustomerStrategy.java 329B
0评论
提交 加载更多评论
其他资源 设计模式第一个版本.zip
设计模式第一个版本
Java实现的面向对象设计模式示例,创建者、抽象工厂、工厂方法、原型、单例、适配器、桥接、组合、装饰器、备忘录等等.zip
Java实现的面向对象设计模式示例,创建者、抽象工厂、工厂方法、原型、单例、适配器、桥接、组合、装饰器、备忘录等等.zip
设计模式示例程序.zip
设计模式示例程序
项目电商.zip
项目电商
设计模式-java实现.zip
设计模式--java实现.zip
模仿大富翁游戏,使用JavaSwing(GUI)实现的单机游戏,遵循MVC设计模式 CreatedinJava.Usi.zip
模仿大富翁游戏,使用JavaSwing(GUI)实现的单机游戏,遵循MVC设计模式。CreatedinJava.Usi.zip
数据结构C语言版PPT-230901.zip
数据结构C语言版PPT-230901.zip
数据结构C语言版PPT-230901.zip 数据结构C语言版PPT-230901.zip 数据结构C语言版PPT-230901.zip
梦幻西游道人j20240924
梦幻西游道人是梦幻西游里面的一个NPC,主要是刷全服最实惠的高级兽决和其他很好用的比较贵的东西,在长安城、傲来国、长寿村中的任意一个场景出现,一般会出现30分钟,不过东西一般都被秒刷。 梦幻西游道人出现时间解析如下: 1.梦幻西游道人出现时间一直都保持着一年出现两次的规律,即2、3月份的元宵节期间来一次,9月份的教师节期间出现一次。 2.云游道人每个整点(0:00至7:00不出现)会在长安城、傲来国、长寿村中的任意一个场景出现,每次出现后停留时间为30分钟。