52ky 发表于 2022-9-23 10:54:51

23种设计模式(代码)

RT~
找了好久。
23shejimoshi\Adapter\classes\Adapter.cdi
23shejimoshi\Adapter\classes\connections.xml
23shejimoshi\Adapter\classes\Shape.class
23shejimoshi\Adapter\classes\Text.class
23shejimoshi\Adapter\classes\TextShapeClass.class
23shejimoshi\Adapter\classes\TextShapeObject.class
23shejimoshi\Adapter\src\Shape.java
23shejimoshi\Adapter\src\Text.java
23shejimoshi\Adapter\src\TextShapeClass.java
23shejimoshi\Adapter\src\TextShapeObject.java
23shejimoshi\Adapter\Adapter.jpr
23shejimoshi\Bridge\classes\Bridge.cdi
23shejimoshi\Bridge\classes\connections.xml
23shejimoshi\Bridge\classes\Test.class
23shejimoshi\Bridge\classes\Text.class
23shejimoshi\Bridge\classes\TextBold.class
23shejimoshi\Bridge\classes\TextImp.class
23shejimoshi\Bridge\classes\TextImpLinux.class
23shejimoshi\Bridge\classes\TextImpMac.class
23shejimoshi\Bridge\classes\TextItalic.class
23shejimoshi\Bridge\src\Test.java
23shejimoshi\Bridge\src\Text.java
23shejimoshi\Bridge\src\TextBold.java
23shejimoshi\Bridge\src\TextImp.java
23shejimoshi\Bridge\src\TextImpLinux.java
23shejimoshi\Bridge\src\TextImpMac.java
23shejimoshi\Bridge\src\TextItalic.java
23shejimoshi\Bridge\Bridge.jpr
23shejimoshi\Builder\classes\Builder.cdi
23shejimoshi\Builder\classes\ConcreteHouseBuilderA.class
23shejimoshi\Builder\classes\connections.xml
23shejimoshi\Builder\classes\House.class
23shejimoshi\Builder\classes\HouseBuilder.class
23shejimoshi\Builder\classes\HouseDirector.class
23shejimoshi\Builder\classes\TestClient.class
23shejimoshi\Builder\src\ConcreteHouseBuilderA.java
23shejimoshi\Builder\src\House.java
23shejimoshi\Builder\src\HouseBuilder.java
23shejimoshi\Builder\src\HouseDirector.java
23shejimoshi\Builder\src\TestClient.java
23shejimoshi\Builder\Builder.jpr
23shejimoshi\ChainOfResponsibility\classes\Chain.class
23shejimoshi\ChainOfResponsibility\classes\ChainOfResponsibility.cdi
23shejimoshi\ChainOfResponsibility\classes\connections.xml
23shejimoshi\ChainOfResponsibility\classes\Manager.class
23shejimoshi\ChainOfResponsibility\classes\Others.class
23shejimoshi\ChainOfResponsibility\classes\Programmer.class
23shejimoshi\ChainOfResponsibility\classes\ProjectManager.class
23shejimoshi\ChainOfResponsibility\classes\QA.class
23shejimoshi\ChainOfResponsibility\classes\Test.class
23shejimoshi\ChainOfResponsibility\src\Chain.java
23shejimoshi\ChainOfResponsibility\src\Manager.java
23shejimoshi\ChainOfResponsibility\src\Others.java
23shejimoshi\ChainOfResponsibility\src\Programmer.java
23shejimoshi\ChainOfResponsibility\src\ProjectManager.java
23shejimoshi\ChainOfResponsibility\src\QA.java
23shejimoshi\ChainOfResponsibility\src\Test.java
23shejimoshi\ChainOfResponsibility\ChainOfResponsibility.jpr
23shejimoshi\Command\classes\Command.cdi
23shejimoshi\Command\classes\Command.class
23shejimoshi\Command\classes\connections.xml
23shejimoshi\Command\classes\Fan.class
23shejimoshi\Command\classes\FanOffCommand.class
23shejimoshi\Command\classes\FanOnCommand.class
23shejimoshi\Command\classes\Light.class
23shejimoshi\Command\classes\LightOffCommand.class
23shejimoshi\Command\classes\LightOnCommand.class
23shejimoshi\Command\classes\Switch.class
23shejimoshi\Command\classes\TestCommand.class
23shejimoshi\Command\Command.java
23shejimoshi\Command\Command.jpr
23shejimoshi\Command\TestCommand.java
23shejimoshi\Composite\classes\Composite.cdi
23shejimoshi\Composite\classes\connections.xml
23shejimoshi\Composite\classes\Employee.class
23shejimoshi\Composite\classes\empTree.class
23shejimoshi\Composite\classes\JxFrame$1.class
23shejimoshi\Composite\classes\JxFrame.class
23shejimoshi\Composite\src\Employee.java
23shejimoshi\Composite\src\empTree.java
23shejimoshi\Composite\src\JxFrame.java
23shejimoshi\Composite\Composite.jpr
23shejimoshi\Decorator\classes\Component.class
23shejimoshi\Decorator\classes\ConcreteComponent.class
23shejimoshi\Decorator\classes\ConcreteDecoratorA.class
23shejimoshi\Decorator\classes\connections.xml
23shejimoshi\Decorator\classes\Decorator.cdi
23shejimoshi\Decorator\classes\Decorator.class
23shejimoshi\Decorator\classes\SwingApp.class
23shejimoshi\Decorator\classes\TableBubbleSortDecorator.class
23shejimoshi\Decorator\classes\TableFilterDecorator.class
23shejimoshi\Decorator\classes\TableModelDecorator.class
23shejimoshi\Decorator\classes\TableSortDecorator.class
23shejimoshi\Decorator\classes\Test$1.class
23shejimoshi\Decorator\classes\Test.class
23shejimoshi\Decorator\classes\Test1.class
23shejimoshi\Decorator\src\Component.java
23shejimoshi\Decorator\src\ConcreteComponent.java
23shejimoshi\Decorator\src\ConcreteDecoratorA.java
23shejimoshi\Decorator\src\Decorator.java
23shejimoshi\Decorator\src\TableBubbleSortDecorator.java
23shejimoshi\Decorator\src\TableFilterDecorator.java
23shejimoshi\Decorator\src\TableModelDecorator.java
23shejimoshi\Decorator\src\TableSortDecorator.java
23shejimoshi\Decorator\src\Test.java
23shejimoshi\Decorator\src\Test1.java
23shejimoshi\Decorator\Decorator.jpr
23shejimoshi\Facade\classes\connections.xml
23shejimoshi\Facade\classes\Door.class
23shejimoshi\Facade\classes\Facade.cdi
23shejimoshi\Facade\classes\FacadeRoom.class
23shejimoshi\Facade\classes\Test.class
23shejimoshi\Facade\classes\Wall.class
23shejimoshi\Facade\src\mypackage\Test.java
23shejimoshi\Facade\Facade.jpr
23shejimoshi\FactoryMethod\classes\connections.xml
23shejimoshi\FactoryMethod\classes\Factory.class
23shejimoshi\FactoryMethod\classes\FactoryMethod.cdi
23shejimoshi\FactoryMethod\classes\Window.class
23shejimoshi\FactoryMethod\classes\WindowBig.class
23shejimoshi\FactoryMethod\classes\WindowSmall.class
23shejimoshi\FactoryMethod\src\Factory.java
23shejimoshi\FactoryMethod\src\Window.java
23shejimoshi\FactoryMethod\src\WindowBig.java
23shejimoshi\FactoryMethod\src\WindowSmall.java
23shejimoshi\FactoryMethod\FactoryMethod.jpr
23shejimoshi\FlyWeight\classes\ConcreteFont.class
23shejimoshi\FlyWeight\classes\connections.xml
23shejimoshi\FlyWeight\classes\FlyWeight.cdi
23shejimoshi\FlyWeight\classes\Font.class
23shejimoshi\FlyWeight\classes\FontFactory.class
23shejimoshi\FlyWeight\classes\Test.class
23shejimoshi\FlyWeight\src\ConcreteFont.java
23shejimoshi\FlyWeight\src\Font.java
23shejimoshi\FlyWeight\src\FontFactory.java
23shejimoshi\FlyWeight\src\Test.java
23shejimoshi\FlyWeight\FlyWeight.jpr
23shejimoshi\Interpreter\classes\AndExp.class
23shejimoshi\Interpreter\classes\BooleanExp.class
23shejimoshi\Interpreter\classes\connections.xml
23shejimoshi\Interpreter\classes\Context.class
23shejimoshi\Interpreter\classes\Interpreter.cdi
23shejimoshi\Interpreter\classes\NotExp.class
23shejimoshi\Interpreter\classes\OrExp.class
23shejimoshi\Interpreter\classes\Test.class
23shejimoshi\Interpreter\classes\VariableExp.class
23shejimoshi\Interpreter\src\mypackage\BooleanExp.java
23shejimoshi\Interpreter\src\AndExp.java
23shejimoshi\Interpreter\src\Context.java
23shejimoshi\Interpreter\src\NotExp.java
23shejimoshi\Interpreter\src\OrExp.java
23shejimoshi\Interpreter\src\Test.java
23shejimoshi\Interpreter\src\VariableExp.java
23shejimoshi\Interpreter\Interpreter.jpr
23shejimoshi\Iterator\classes\Aggregate.class
23shejimoshi\Iterator\classes\connections.xml
23shejimoshi\Iterator\classes\DataVector.class
23shejimoshi\Iterator\classes\Iterator.cdi
23shejimoshi\Iterator\classes\Iterator.class
23shejimoshi\Iterator\classes\Test.class
23shejimoshi\Iterator\classes\VectorIterator.class
23shejimoshi\Iterator\src\Aggregate.java
23shejimoshi\Iterator\src\data.txt
23shejimoshi\Iterator\src\DataVector.java
23shejimoshi\Iterator\src\Iterator.java
23shejimoshi\Iterator\src\Test.java
23shejimoshi\Iterator\src\VectorIterator.java
23shejimoshi\Iterator\Iterator.jpr
23shejimoshi\Mediator\classes\Colleague.class
23shejimoshi\Mediator\classes\ColleagueA.class
23shejimoshi\Mediator\classes\ColleagueB.class
23shejimoshi\Mediator\classes\ColleagueC.class
23shejimoshi\Mediator\classes\ConcreteMediator.class
23shejimoshi\Mediator\classes\connections.xml
23shejimoshi\Mediator\classes\Mediator.cdi
23shejimoshi\Mediator\classes\Mediator.class
23shejimoshi\Mediator\classes\Test.class
23shejimoshi\Mediator\src\Colleague.java
23shejimoshi\Mediator\src\ColleagueA.java
23shejimoshi\Mediator\src\ColleagueB.java
23shejimoshi\Mediator\src\ColleagueC.java
23shejimoshi\Mediator\src\ConcreteMediator.java
23shejimoshi\Mediator\src\Mediator.java
23shejimoshi\Mediator\src\Test.java
23shejimoshi\Mediator\Mediator.jpr
23shejimoshi\Memento\classes\CaretakerTest.class
23shejimoshi\Memento\classes\connections.xml
23shejimoshi\Memento\classes\Memento.cdi
23shejimoshi\Memento\classes\TextMemento.class
23shejimoshi\Memento\classes\TextOriginator.class
23shejimoshi\Memento\src\CaretakerTest.java
23shejimoshi\Memento\src\TextOriginator.java
23shejimoshi\Memento\Memento.jpr
23shejimoshi\Observer\classes\ConcreteSubject.class
23shejimoshi\Observer\classes\connections.xml
23shejimoshi\Observer\classes\Observer.cdi
23shejimoshi\Observer\classes\Observer.class
23shejimoshi\Observer\classes\ObserverA.class
23shejimoshi\Observer\classes\ObserverB.class
23shejimoshi\Observer\classes\Subject.class
23shejimoshi\Observer\classes\Test.class
23shejimoshi\Observer\src\ConcreteSubject.java
23shejimoshi\Observer\src\Observer.java
23shejimoshi\Observer\src\ObserverA.java
23shejimoshi\Observer\src\ObserverB.java
23shejimoshi\Observer\src\Subject.java
23shejimoshi\Observer\src\Test.java
23shejimoshi\Observer\Observer.jpr
23shejimoshi\patterns\abstract_factory\classes\AbstractFactory.cdi
23shejimoshi\patterns\abstract_factory\classes\BedRoom.class
23shejimoshi\patterns\abstract_factory\classes\BedRoomDoor.class
23shejimoshi\patterns\abstract_factory\classes\BedRoomWall.class
23shejimoshi\patterns\abstract_factory\classes\connections.xml
23shejimoshi\patterns\abstract_factory\classes\Door.class
23shejimoshi\patterns\abstract_factory\classes\LivingRoom.class
23shejimoshi\patterns\abstract_factory\classes\LivingRoomDoor.class
23shejimoshi\patterns\abstract_factory\classes\LivingRoomWall.class
23shejimoshi\patterns\abstract_factory\classes\Room.class
23shejimoshi\patterns\abstract_factory\classes\RoomMaker.class
23shejimoshi\patterns\abstract_factory\classes\Wall.class
23shejimoshi\patterns\abstract_factory\src\BedRoom.java
23shejimoshi\patterns\abstract_factory\src\BedRoomDoor.java
23shejimoshi\patterns\abstract_factory\src\BedRoomWall.java
23shejimoshi\patterns\abstract_factory\src\Door.java
23shejimoshi\patterns\abstract_factory\src\LivingRoom.java
23shejimoshi\patterns\abstract_factory\src\LivingRoomDoor.java
23shejimoshi\patterns\abstract_factory\src\LivingRoomWall.java
23shejimoshi\patterns\abstract_factory\src\Room.java
23shejimoshi\patterns\abstract_factory\src\RoomMaker.java
23shejimoshi\patterns\abstract_factory\src\Wall.java
23shejimoshi\patterns\abstract_factory\AbstractFactory.jpr
23shejimoshi\Prototype\classes\connections.xml
23shejimoshi\Prototype\classes\Graphic.class
23shejimoshi\Prototype\classes\GraphicTool.class
23shejimoshi\Prototype\classes\IGraphic.class
23shejimoshi\Prototype\classes\LineSymbol.class
23shejimoshi\Prototype\classes\NoteSymbol.class
23shejimoshi\Prototype\classes\prototype.cdi
23shejimoshi\Prototype\classes\SymbolLoader.class
23shejimoshi\Prototype\src\mypackage\Graphic.java
23shejimoshi\Prototype\src\mypackage\IGraphic.java
23shejimoshi\Prototype\src\GraphicTool.java
23shejimoshi\Prototype\src\LineSymbol.java
23shejimoshi\Prototype\src\NoteSymbol.java
23shejimoshi\Prototype\src\SymbolLoader.java
23shejimoshi\Prototype\prototype.jpr
23shejimoshi\Proxy\classes\connections.xml
23shejimoshi\Proxy\classes\Graphic.class
23shejimoshi\Proxy\classes\ImageProxy.class
23shejimoshi\Proxy\classes\JxFrame$1.class
23shejimoshi\Proxy\classes\JxFrame.class
23shejimoshi\Proxy\classes\PageProxy.class
23shejimoshi\Proxy\classes\Proxy.cdi
23shejimoshi\Proxy\classes\ProxyDisplay.class
23shejimoshi\Proxy\classes\Test.class
23shejimoshi\Proxy\src\elliott.jpg
23shejimoshi\Proxy\src\Graphic.java
23shejimoshi\Proxy\src\ImageA.java
23shejimoshi\Proxy\src\JxFrame.java
23shejimoshi\Proxy\src\PageProxy.java
23shejimoshi\Proxy\src\ProxyDisplay.java
23shejimoshi\Proxy\src\Test.java
23shejimoshi\Proxy\Proxy.jpr
23shejimoshi\Singleton\classes\connections.xml
23shejimoshi\Singleton\classes\Singleton.cdi
23shejimoshi\Singleton\classes\SingletonA.class
23shejimoshi\Singleton\classes\SingletonB.class
23shejimoshi\Singleton\classes\SingletonException.class
23shejimoshi\Singleton\classes\SingletonExecption.class
23shejimoshi\Singleton\classes\SubSingletonB.class
23shejimoshi\Singleton\classes\TestA.class
23shejimoshi\Singleton\classes\TestB.class
23shejimoshi\Singleton\src\mypackage\SingletonA.java
23shejimoshi\Singleton\src\SingletonB.java
23shejimoshi\Singleton\src\SingletonException.java
23shejimoshi\Singleton\src\SubSingletonB.java
23shejimoshi\Singleton\src\TestA.java
23shejimoshi\Singleton\src\TestB.java
23shejimoshi\Singleton\Singleton.jpr
23shejimoshi\State\classes\connections.xml
23shejimoshi\State\classes\GenerateBill.class
23shejimoshi\State\classes\IShopState.class
23shejimoshi\State\classes\Pay.class
23shejimoshi\State\classes\Shop.class
23shejimoshi\State\classes\ShopContext.class
23shejimoshi\State\classes\ShopState.class
23shejimoshi\State\classes\State.cdi
23shejimoshi\State\classes\Test.class
23shejimoshi\State\src\GenerateBill.java
23shejimoshi\State\src\IShopState.java
23shejimoshi\State\src\Pay.java
23shejimoshi\State\src\Shop.java
23shejimoshi\State\src\ShopContext.java
23shejimoshi\State\src\ShopState.java
23shejimoshi\State\src\Test.java
23shejimoshi\State\State.jpr
23shejimoshi\Strategy\classes\connections.xml
23shejimoshi\Strategy\classes\Context.class
23shejimoshi\Strategy\classes\Strategy.cdi
23shejimoshi\Strategy\classes\Strategy.class
23shejimoshi\Strategy\classes\StrategyA.class
23shejimoshi\Strategy\classes\StrategyB.class
23shejimoshi\Strategy\classes\Test.class
23shejimoshi\Strategy\src\Context.java
23shejimoshi\Strategy\src\Strategy.java
23shejimoshi\Strategy\src\StrategyA.java
23shejimoshi\Strategy\src\StrategyB.java
23shejimoshi\Strategy\src\Test.java
23shejimoshi\Strategy\Strategy.jpr
23shejimoshi\TemplateMethod\classes\AbstractRead.class
23shejimoshi\TemplateMethod\classes\connections.xml
23shejimoshi\TemplateMethod\classes\ReadFile.class
23shejimoshi\TemplateMethod\classes\ReadHtml.class
23shejimoshi\TemplateMethod\classes\TemplateMethod.cdi
23shejimoshi\TemplateMethod\classes\Test.class
23shejimoshi\TemplateMethod\src\AbstractRead.java
23shejimoshi\TemplateMethod\src\ReadFile.java
23shejimoshi\TemplateMethod\src\ReadHtml.java
23shejimoshi\TemplateMethod\src\Test.java
23shejimoshi\TemplateMethod\src\test.txt
23shejimoshi\TemplateMethod\TemplateMethod.jpr
23shejimoshi\Visitor\classes\awtList.class
23shejimoshi\Visitor\classes\Boss.class
23shejimoshi\Visitor\classes\bVacationVisitor.class
23shejimoshi\Visitor\classes\connections.xml
23shejimoshi\Visitor\classes\Employee.class
23shejimoshi\Visitor\classes\JawtList.class
23shejimoshi\Visitor\classes\JListData.class
23shejimoshi\Visitor\classes\JxFrame$1.class
23shejimoshi\Visitor\classes\JxFrame.class
23shejimoshi\Visitor\classes\VacationDisplay.class
23shejimoshi\Visitor\classes\VacationVisitor.class
23shejimoshi\Visitor\classes\Visitor.cdi
23shejimoshi\Visitor\classes\Visitor.class
23shejimoshi\Visitor\src\awtList.java
23shejimoshi\Visitor\src\Boss.java
23shejimoshi\Visitor\src\bVacationVisitor.java
23shejimoshi\Visitor\src\Employee.java
23shejimoshi\Visitor\src\JawtList.java
23shejimoshi\Visitor\src\JxFrame.java
23shejimoshi\Visitor\src\VacationDisplay.java
23shejimoshi\Visitor\src\VacationVisitor.java
23shejimoshi\Visitor\src\Visitor.java
23shejimoshi\Visitor\Visitor.jpr
23shejimoshi\MyJavaWorks.jws
23shejimoshi\Readme.txt
.....




页: [1]
查看完整版本: 23种设计模式(代码)