kimsien / java_basic_01 Goto Github PK
View Code? Open in Web Editor NEWhello java
hello java
this pattern is create object of goupe.
not implements this issue.
this pattern is non conflict object.
this pattern is summarize two class into one class.
this pattern is not implements.
becaouse it is easy.
it is easy
it is easy
! point
// 責任のチャーンを構築
hand1.setNext(hand2).setNext(hand3).setNext(hand11);
hand1.request(31);
object A,B,C
A call setNext(B) -> return B <- this B call setNext(C) -> return C ・・・・
call to change return object is throw object.
it is easy
design pattern is general. However , you do not need to use them all 23 patterns
design pattern for gof with 23
1 Iterator - refs #6
2 Adapter - refs #7
3 TemplateMethod - refs #8
4 FactoryMethod - refs #4
5 Singlton - refs #9
6 Prototype - refs #10
7 Builder - refs #5
8 AbstractFactory - refs #11
9 Bridge - refs #12
10 Strategy - refs #13
11 Composit - refs #14
12 Decorator - refs #15
13 Visitor - refs #16
14 ChainOfResponsiblility -refs #17
15 Facade - refs #18
16 Mediator -refs #19
17 observer - refs #20
17 Memento -refs #21
19 State - refs #3
20 Flayweight -refs #22
21 Proxy -refs #23
22 Command -refs #24
23 InterPreter - refs #25
it is easy
!caution
not iterator. it is iterator pattern.
if you use itarator. import java.util.iterator
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.