デザインパターン

Contents

GoF


生成に関するパターン


Factory Method





Abstract Factory





Builder






class HumanClass
{
	HumanClass setName(String name){ this.name = name; return this; }
	HumanClass setAge(int age){ this.age = age; return this; }
}

Prototype






Singleton





構造に関するパターン


Adapter






Bridge






Composite






Decorator






Facade






Flyweight






Proxy






振る舞いに関するパターン


Chain of Responsibility






Command






Interpreter






Iterator






Mediator






Memento






Observer






State






Strategy






Template Method






Visitor





Notice: Trying to get property 'queue' of non-object in /usr/local/wordpress/wp-includes/script-loader.php on line 2876

Warning: Invalid argument supplied for foreach() in /usr/local/wordpress/wp-includes/script-loader.php on line 2876