首页
星云
工具
资源
星选
资讯
热门工具
自选颜色
:
PDF转图片
完全免费
小红书视频下载
无水印
抖音视频下载
无水印
数字星空
设计模式代码库.zip
行业研究
215.91KB
23
需要积分: 1
立即下载
资源介绍:
设计模式代码库.zip
## 桥接模式 **模式定义** 将抽象部分与它的实现部分分离,使它们都可以独立地变化。 ## 优点 1. 分离抽象和实现部分 桥接模式分离了抽象部分和实现部分,从而极大地提高了系统的灵活性。让抽象部分和实现部分独立开来, 分别定义接口,这有助于对系统进行分层,从而产生更好的结构化的系统。对于系统的高层部分, 只需要知道抽象部分和实现部分的接口就可以了。 1. 更好的扩展性 由于桥接模式把抽象部分和实现部分分离开了,而且分别定义接口,这就使得抽象部分和实现部分可以分别独立地扩展, 而不会相互影响,从而大大地提高了系统的可扩展性。 1. 可动态地切换实现 由于桥接模式把抽象部分和实现部分分离开了,所以在实现桥接的时候,就可以实现动态的选择和使用具体的实现。 也就是说一个实现不再是固定的绑定在一个抽象接口上了,可以实现运行期间动态地切换。 1. 可减少子类的个数 根据前面的讲述,对于有两个变化纬度的情况,如果采用继承的实现方式,大约需要两个纬度上的可变化数量的乘积个子类; 而采用桥接模式来实现,大约需要两个纬度上的可变化数量的和个子类。可以明显地减少子类的个数。 ## 缺点 无 ## 本质 桥接模式的本质:分离抽象和实现。 桥接模式最重要的工作就是分离抽象部分和实现部分,这是解决问题的关键。只有把抽象部分和实现部分分离开了, 才能够让它们独立地变化;只有抽象部分和实现部分可以独立地变化,系统才会有更好的可扩展性和可维护性。 ## 设计原则 * 桥接模式很好地实现了开闭原则。 * 桥接模式还很好地体现了:多用对象组合,少用对象继承。 ## 使用场景 建议在以下情况中选用桥接模式。 1. 如果你不希望在抽象部分和实现部分采用固定的绑定关系,可以采用桥接模式,来把抽象部分和实现部分分开, 然后在程序运行期间来动态地设置抽象部分需要用到的具体的实现,还可以动态地切换具体的实现。 2. 如果出现抽象部分和实现部分都能够扩展的情况,可以采用桥接模式,让抽象部分和实现部分独立地变化, 从而灵活地进行单独扩展,而不是搅在一起,扩展一边就会影响到另一边。 3. 如果希望实现部分的修改不会对客户产生影响,可以采用桥接模式。由于客户是面向抽象的接口在运行, 实现部分的修改可以独立于抽象部分,并不会对客户产生影响,也可以说对客户是透明的。 4. 如果采用继承的实现方案,会导致产生很多子类,对于这种情况,可以考虑采用桥接模式,分析功能变化的原因, 看看是否能分离成不同的纬度,然后通过桥接模式来分离它们,从而减少子类的数目。
资源文件列表:
设计模式代码库.zip 大约有316个文件
design-pattern-master/pattern11-observer/pom.xml 526B
design-pattern-master/pattern11-observer/README.md 2.58KB
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Client.java 699B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Subject.java 1.03KB
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Reader.java 566B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/Observer.java 286B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/example/NewsPaper.java 699B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/ConcreteObserver.java 541B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/Subject.java 884B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/ConcreteSubject.java 536B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/standard/Observer.java 358B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/builtin/Client.java 792B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/builtin/Reader.java 780B
design-pattern-master/pattern11-observer/src/main/java/com/xncoding/pattern/observer/builtin/NewsPaper.java 982B
design-pattern-master/pattern20-interpreter/pom.xml 529B
design-pattern-master/pattern20-interpreter/README.md 1.15KB
design-pattern-master/pattern20-interpreter/src/main/resources/config.xml 261B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/Client.java 1.51KB
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/ReadXmlExpression.java 393B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/Context.java 1.74KB
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/XmlUtil.java 817B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/ElementExpression.java 1.58KB
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/PropertyTerminalExpression.java 549B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/xml/ElementTerminalExpression.java 1.14KB
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/NonterminalExpression.java 271B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/Client.java 212B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/Context.java 203B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/TerminalExpression.java 261B
design-pattern-master/pattern20-interpreter/src/main/java/com/xncoding/pattern/interpreter/standard/AbstractExpression.java 226B
design-pattern-master/pattern23-bridge/pom.xml 524B
design-pattern-master/pattern23-bridge/README.md 2.99KB
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/UrgencyMessage.java 715B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/AbstractMessage.java 697B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/MessageImplementor.java 323B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/MessageSMS.java 320B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/MessageEmail.java 306B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/message/CommonMessage.java 404B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/Abstraction.java 583B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/ConcreteImplementorA.java 273B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/RefinedAbstraction.java 582B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/ConcreteImplementorB.java 212B
design-pattern-master/pattern23-bridge/src/main/java/com/xncoding/pattern/bridge/standard/Implementor.java 283B
design-pattern-master/pattern24-visitor/pom.xml 737B
design-pattern-master/pattern24-visitor/README.md 1.65KB
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/Element.java 263B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/Client.java 592B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteVisitor1.java 628B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteElementA.java 418B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/Visitor.java 501B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteElementB.java 417B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ConcreteVisitor2.java 628B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/standard/ObjectStructure.java 1004B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Client.java 1013B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Visitor.java 492B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Component.java 1.38KB
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Composite.java 1.13KB
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/PrintNameVisitor.java 574B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/Leaf.java 608B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/composite/ObjectStructure.java 845B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/Client.java 980B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/EnterpriseCustomer.java 366B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/ServiceRequestVisitor.java 563B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/Customer.java 309B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/Visitor.java 506B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/PredilectionAnalyzeVisitor.java 711B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/PersonalCustomer.java 317B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/ObjectStructure.java 873B
design-pattern-master/pattern24-visitor/src/main/java/com/xncoding/pattern/visitor/customer/WorthAnalyzeVisitor.java 644B
design-pattern-master/pattern08-prototype/pom.xml 527B
design-pattern-master/pattern08-prototype/README.md 1.36KB
design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/OrderApi.java 257B
design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/Client.java 813B
design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/PersonalOrder.java 1.27KB
design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/OrderBusiness.java 1.15KB
design-pattern-master/pattern08-prototype/src/main/java/com/xncoding/pattern/prototype/EnterpriseOrder.java 1.3KB
design-pattern-master/pattern14-composite/pom.xml 527B
design-pattern-master/pattern14-composite/README.md 2.04KB
design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Client.java 715B
design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Component.java 1.49KB
design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Composite.java 1.34KB
design-pattern-master/pattern14-composite/src/main/java/com/xncoding/pattern/composite/Leaf.java 291B
design-pattern-master/pattern17-state/pom.xml 523B
design-pattern-master/pattern17-state/README.md 2.72KB
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/Client.java 323B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/BlackVoteState.java 425B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/VoteManager.java 1.98KB
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/NormalVoteState.java 436B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/RepeatVoteState.java 375B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/SpiteVoteState.java 572B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/vote/VoteState.java 491B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/ConcreteStateB.java 256B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/Context.java 698B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/ConcreteStateA.java 256B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/standard/State.java 429B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/LeaveRequestContext.java 246B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/DepManagerState.java 605B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/StateMachine.java 1.04KB
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/ProjectManagerState.java 1.36KB
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/LeaveRequestState.java 243B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/State.java 252B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/LeaveRequestModel.java 1005B
design-pattern-master/pattern17-state/src/main/java/com/xncoding/com/pattern/state/leave/AuditOverState.java 376B
design-pattern-master/pattern13-iterator/pom.xml 526B
design-pattern-master/pattern13-iterator/README.md 1.97KB
design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/Client.java 1.03KB
design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/ConcreteIterator.java 1.16KB
design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/Aggregate.java 337B
design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/ConcreteAggregate.java 1.04KB
design-pattern-master/pattern13-iterator/src/main/java/com/xncoding/pattern/iterator/standard/Iterator.java 775B
design-pattern-master/pattern22-responsibility/pom.xml 532B
design-pattern-master/pattern22-responsibility/README.md 2.6KB
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/ProjectManager.java 994B
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/Client.java 1.06KB
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/DepManager.java 988B
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/Handler.java 680B
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/charge/GeneralManager.java 995B
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/Client.java 395B
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/Handler.java 664B
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/ConcreteHandler2.java 1.04KB
design-pattern-master/pattern22-responsibility/src/main/java/com/xncoding/pattern/responsibility/standard/ConcreteHandler1.java 1.04KB
design-pattern-master/pom.xml 4.81KB
design-pattern-master/pattern10-proxy/pom.xml 523B
design-pattern-master/pattern10-proxy/README.md 591B
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/OrderApi.java 1.16KB
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/Order.java 1.29KB
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/Client.java 974B
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/OrderProxy.java 1.98KB
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/standard/Subject.java 254B
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/standard/Proxy.java 722B
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/standard/RealSubject.java 228B
design-pattern-master/pattern10-proxy/src/main/java/com/xncoding/pattern/proxy/DynamicProxy.java 1.69KB
design-pattern-master/pattern19-flyweight/pom.xml 527B
design-pattern-master/pattern19-flyweight/README.md 1016B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/FlyweightFactory.java 1.08KB
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/ConcreteFlyweight.java 587B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/Flyweight.java 333B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/standard/UnsharedConcreteFlyweight.java 413B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/Client.java 755B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/FlyweightFactory.java 865B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/SecurityMgr.java 2.38KB
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/TestDB.java 752B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/Flyweight.java 394B
design-pattern-master/pattern19-flyweight/src/main/java/com/xncoding/pattern/flyweight/authorization/AuthorizationFlyweight.java 1017B
design-pattern-master/pattern09-mediator/pom.xml 526B
design-pattern-master/pattern09-mediator/README.md 2.02KB
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/MainBoardImpl.java 2.02KB
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/Client.java 791B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/CPU.java 977B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/SoundCard.java 440B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/MainBoard.java 475B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/ConcreteMediator.java 1KB
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/ConcreteColleagueA.java 430B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/Colleague.java 620B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/ConcreteColleagueB.java 430B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/standard/Mediator.java 507B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/CDDriver.java 769B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/Device.java 348B
design-pattern-master/pattern09-mediator/src/main/java/com/xncoding/pattern/mediator/VideoCard.java 434B
design-pattern-master/pattern12-command/pom.xml 525B
design-pattern-master/pattern12-command/README.md 2.62KB
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Client.java 1.45KB
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Operation.java 542B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Command.java 309B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/AddCommand.java 986B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/OperationApi.java 583B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/SubstractCommand.java 997B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/calculator/Calculator.java 2.09KB
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Client.java 502B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Receiver.java 256B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Command.java 263B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/ConcreteCommand.java 682B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/standard/Invoker.java 531B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/Client.java 619B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/MainBoardApi.java 186B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/Command.java 263B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/OpenCommand.java 742B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/GigaMainBoard.java 636B
design-pattern-master/pattern12-command/src/main/java/com/xncoding/pattern/command/computer/Box.java 630B
design-pattern-master/pattern07-builder/pom.xml 525B
design-pattern-master/pattern07-builder/README.md 1.5KB
design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/Client.java 1.36KB
design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/Builder.java 645B
design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/Director.java 901B
design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/TxtBuilder.java 1KB
design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/ExportHeaderModel.java 618B
design-pattern-master/pattern07-builder/src/main/java/com/xncoding/pattern/builder/ExportDataModel.java 788B
design-pattern-master/README.md 1.98KB
design-pattern-master/pattern18-memento/pom.xml 525B
design-pattern-master/pattern18-memento/README.md 2.43KB
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Client.java 1.51KB
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Memento.java 158B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Operation.java 948B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/AbstractCommand.java 741B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Command.java 645B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/AddCommand.java 294B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/OperationApi.java 849B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/SubstractCommand.java 368B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/calculator/Calculator.java 3.84KB
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/Client.java 1012B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/FlowAMockMemento.java 159B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/FlowAMementoCareTaker.java 643B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/mock/FlowAMock.java 2.9KB
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/standard/Memento.java 137B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/standard/Caretaker.java 579B
design-pattern-master/pattern18-memento/src/main/java/com/xncoding/pattern/memento/standard/Originator.java 1.17KB
design-pattern-master/pattern01-simple-factory/pom.xml 532B
design-pattern-master/pattern01-simple-factory/README.md 2KB
design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/ImplB.java 255B
design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/Client.java 339B
design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/Factory.java 807B
design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/Api.java 279B
design-pattern-master/pattern01-simple-factory/src/main/java/com/xncoding/pattern/simplefactory/ImplA.java 258B
design-pattern-master/.gitignore 257B
design-pattern-master/pattern21-decorator/pom.xml 527B
design-pattern-master/pattern21-decorator/README.md 2.12KB
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/SumPrizeDecorator.java 738B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/Client.java 1.32KB
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/TempDB.java 597B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/Decorator.java 613B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/GroupPrizeDecorator.java 843B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/ConcreteComponent.java 353B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/Component.java 653B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/prize/MonthPrizeDecorator.java 699B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/ConcreteDecoratorA.java 712B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/Decorator.java 645B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/ConcreteComponent.java 221B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/Component.java 238B
design-pattern-master/pattern21-decorator/src/main/java/com/xncoding/pattern/decorator/standard/ConcreteDecoratorB.java 554B
design-pattern-master/pattern04-singleton/pom.xml 527B
design-pattern-master/pattern04-singleton/README.md 470B
design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/Client.java 450B
design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/Singleton2.java 450B
design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/Singleton.java 810B
design-pattern-master/pattern04-singleton/src/main/java/com/xncoding/pattern/singleton/AppConfig.java 1.89KB
design-pattern-master/pattern05-factory-method/pom.xml 532B
design-pattern-master/pattern05-factory-method/README.md 2.74KB
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportDB.java 368B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/Client.java 304B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportDBOperate.java 347B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportFileApi.java 349B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportTxtFile.java 343B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportOperate.java 608B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/ExportTxtFileOperate.java 339B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/ConcreteProduct.java 177B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/Product.java 178B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/Creator.java 506B
design-pattern-master/pattern05-factory-method/src/main/java/com/xncoding/pattern/factorymethod/standard/ConcreteCreator.java 298B
design-pattern-master/pattern02-facade/pom.xml 524B
design-pattern-master/pattern02-facade/README.md 1.85KB
design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Client.java 247B
design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/ConfigManager.java 771B
design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Presentation.java 474B
design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/DAO.java 330B
design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/ConfigModel.java 1.03KB
design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Business.java 340B
design-pattern-master/pattern02-facade/src/main/java/com/xncoding/pattern/facade/Facade.java 334B
design-pattern-master/pattern03-adapter/pom.xml 525B
design-pattern-master/pattern03-adapter/README.md 1.6KB
design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/Client.java 911B
design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogDbOperate.java 687B
design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogFileOperate.java 2.13KB
design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogModel.java 1.25KB
design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogFileOperateApi.java 521B
design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/Adapter.java 1.57KB
design-pattern-master/pattern03-adapter/src/main/java/com/xncoding/pattern/adapter/LogDbOperateApi.java 731B
design-pattern-master/pattern15-template/pom.xml 526B
design-pattern-master/pattern15-template/README.md 1.68KB
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/JDBCTemplate.java 5.97KB
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/Client.java 1.01KB
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/UserJDBC.java 3.48KB
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/UserModel.java 661B
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/dao/UserQueryModel.java 524B
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/standard/ConcreteClass.java 297B
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/standard/AbstractClass.java 570B
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/Client.java 638B
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/WorkerLogin.java 710B
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/LoginTemplate.java 1.75KB
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/NormalLogin.java 423B
design-pattern-master/pattern15-template/src/main/java/com/xncoding/pattern/template/login/LoginModel.java 604B
design-pattern-master/pattern06-abstract-factory/pom.xml 534B
design-pattern-master/pattern06-abstract-factory/README.md 2.64KB
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductA2.java 189B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/Client.java 351B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ConcreteFactory2.java 371B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductB2.java 190B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/AbstractFactory.java 468B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/AbstractProductA.java 166B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/AbstractProductB.java 166B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductB1.java 190B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ConcreteFactory1.java 371B
design-pattern-master/pattern06-abstract-factory/src/main/java/com/xncoding/com/pattern/abstractfactory/ProductA1.java 189B
design-pattern-master/pattern16-strategy/pom.xml 526B
design-pattern-master/pattern16-strategy/README.md 2.89KB
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/Client.java 899B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/PaymentContext.java 1.21KB
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/Card.java 537B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/PaymentStrategy.java 432B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/DollarCash.java 305B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/Card2.java 862B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/RMBCash.java 309B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/payment/PaymentContext2.java 795B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/Client.java 314B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/LogContext.java 640B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/DbLog.java 363B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/FileLog.java 244B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/resume/LogStrategy.java 237B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/ConcreteStrategyA.java 215B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/Strategy.java 245B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/Context.java 685B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/standard/ConcreteStrategyB.java 214B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/OldCustomerStrategy.java 328B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/Client.java 430B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/Strategy.java 334B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/Price.java 718B
design-pattern-master/pattern16-strategy/src/main/java/com/xncoding/pattern/strategy/price/NormalCustomerStrategy.java 357B
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
梦幻西游道人j20240924
梦幻西游道人是梦幻西游里面的一个NPC,主要是刷全服最实惠的高级兽决和其他很好用的比较贵的东西,在长安城、傲来国、长寿村中的任意一个场景出现,一般会出现30分钟,不过东西一般都被秒刷。 梦幻西游道人出现时间解析如下: 1.梦幻西游道人出现时间一直都保持着一年出现两次的规律,即2、3月份的元宵节期间来一次,9月份的教师节期间出现一次。 2.云游道人每个整点(0:00至7:00不出现)会在长安城、傲来国、长寿村中的任意一个场景出现,每次出现后停留时间为30分钟。