Code Monkey home page Code Monkey logo

enjoy-design-pattern's Introduction

Java μ–Έμ–΄λ‘œ λ°°μš°λŠ” λ””μžμΈ νŒ¨ν„΄ μž…λ¬Έ

Iterator

μˆœμ„œλŒ€λ‘œ μ§€μ •ν•΄μ„œ μ²˜λ¦¬ν•˜κΈ°

Adapter

λ°”κΏ”μ„œ μž¬μ΄μš©ν•˜κΈ°

Template Method

ν•˜μœ„ ν΄λž˜μŠ€μ—μ„œ ꡬ체적으둜 μ²˜λ¦¬ν•˜κΈ°

Factory Method

ν•˜μœ„ ν΄λž˜μŠ€μ—μ„œ μΈμŠ€ν„΄μŠ€ μž‘μ„±ν•˜κΈ°

Singleton

μΈμŠ€ν„΄μŠ€λ₯Ό ν•œ 개만 λ§Œλ“€κΈ°

Prototype

λ³΅μ‚¬ν•΄μ„œ μΈμŠ€ν„΄μŠ€ λ§Œλ“€κΈ°

Builder

λ³΅μž‘ν•œ μΈμŠ€ν„΄μŠ€ μ‘°λ¦½ν•˜κΈ°

Abstract Factory

κ΄€λ ¨ λΆ€ν’ˆμ„ μ‘°ν•©ν•΄μ„œ μ œν’ˆ λ§Œλ“€κΈ°

Bridge

κΈ°λŠ₯ 계측과 κ΅¬ν˜„ 계측 λΆ„λ¦¬ν•˜κΈ°

Strategy

 μ•Œκ³ λ¦¬μ¦˜μ„ λͺ¨λ‘ λ°”κΎΈκΈ°

Composite

그릇과 λ‚΄μš©λ¬Όμ„ λ™μΌμ‹œν•˜κΈ°

Decorator

μž₯식과 λ‚΄μš©λ¬Όμ„ λ™μΌμ‹œν•˜κΈ°

Visitor

데이터 ꡬ쑰λ₯Ό λŒμ•„λ‹€λ‹ˆλ©΄μ„œ μ²˜λ¦¬ν•˜κΈ°

Chain of Responsibility

볡수의 μ˜€λΈŒμ νŠΈκ°€ μ—°κ²°λ˜μ–΄ μžˆλŠ” λ‚΄λΆ€μ˜ μ–΄λ”˜κ°€μ—μ„œ 일을 μˆ˜ν–‰

Facade

λ³΅μž‘ν•˜κ²Œ μ–½νžŒ 클래슀λ₯Ό κ°œλ³„μ μœΌλ‘œ μ œμ–΄ν•˜λŠ” 것이 μ•„λ‹ˆλΌ, 창ꡬ 역할을 ν•˜λŠ” 클래슀λ₯Ό ν•˜λ‚˜ λ°°μΉ˜ν•΄μ„œ μ‹œμŠ€ν…œ μ „μ²΄μ˜ μ‘°μž‘μ„±μ„ μ’‹κ²Œ 함

Mediator

볡수의 ν΄λž˜μŠ€κ°€ μƒν˜Έκ°„μ— 직접 μ˜μ‚¬ μ†Œν†΅μ„ ν•˜λŠ” 것이 μ•„λ‹ˆλΌ, μ€‘κ°œμ—­μ„ ν•˜λŠ” 클래슀λ₯Ό ν•˜λ‚˜ μ€€λΉ„ν•˜κ³ , κ·Έ ν΄λž˜μŠ€ν•˜κ³ λ§Œ μ˜μ‚¬ μ†Œν†΅μ„ ν•˜κ²Œ ν•΄μ„œ ν”„λ‘œκ·Έλž¨μ„ λ‹¨μˆœν•˜κ²Œ λ§Œλ“œλ“¬

Observer

μƒνƒœκ°€ λ³€ν™”ν•˜λŠ” ν΄λž˜μŠ€μ™€ κ·Έ λ³€ν™”λ₯Ό ν†΅μ§€λ°›λŠ” 클래슀λ₯Ό λΆ„λ¦¬ν•΄μ„œ 생각

Memento

ν˜„μž¬μ˜ μƒνƒœλ₯Ό μ €μž₯ν•΄ 두고 ν•„μš”ν•  λ•Œ λ³΅κ·€μ‹œν‚€λŠ” Undo κΈ°λŠ₯을 μ„€μ •

State

μƒνƒœλ₯Ό 클래슀둜 ν‘œν˜„ν•˜κ³  μƒνƒœμ— μ ν•©ν•œ switch 문의 μ‚¬μš©μ„ μ€„μ—¬μ€Œ

Flyweight

볡수의 μž₯μ†Œμ—μ„œ λ™μΌν•œ 것이 λ“±μž₯ν•  λ•Œ 그것듀을 κ³΅μœ ν•΄μ„œ λ‚­λΉ„λ₯Ό μ—†μ•°

Proxy

μ •λ§λ‘œ λͺ©μ ν•œ 것이 ν•„μš”ν•˜κ²Œ 될 λ•ŒκΉŒμ§€ λŒ€λ¦¬μΈμ„ μ‚¬μš©ν•΄μ„œ μ²˜λ¦¬ν•˜λŠ” 진행

Command

μš”κ΅¬λ‚˜ λͺ…령을 ν˜•νƒœλ‘œ λ§Œλ“€μ–΄μ„œ 클래슀둜 ν‘œν˜„

Interpreter

λ¬Έλ²•κ·œμΉ™μ„ 클래슀둜 ν‘œν˜„

enjoy-design-pattern's People

Contributors

csj4032 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.