Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chywx/JavaSE-chy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

171 Commits

Repository files navigation

JavaSE_chy

java基础汇集,各种demo测试,基于jdk1.8

  • basic (java基础)
  • collection (集合)
  • datastructure (数据结构)
  • socket (socket服务)
  • thirdparty (第三方-ocr-ffmpeg)
  • time (日期相关)

设计模式

com.chy.design

  1. 观察者模式其实就是发布订阅模式,发布者发布信息,订阅者获取信息,订阅了就能收到信息,没订阅就收不到信息。
  2. 代理模式
总体来说设计模式分为三大类

创建型模式,共五种:工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式。

结构型模式,共七种:适配器模式、装饰器模式、代理模式、外观模式、桥接模式、组合模式、享元模式。

行为型模式,共十一种:策略模式、模板方法模式、观察者模式、迭代子模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式、中介者模式、解释器模式。

其实还有两类:并发型模式和线程池模式。用一个图片来整体描述一下: avatar

About

java基础汇集

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /