![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
ameryzhu
这个作者很懒,什么都没留下…
展开
-
单例模式
大学里面设计模式放在大四才学,而大四大家都在外面实习,所以这样的课基本等于没上。现在毕业了才回来补以前没学好的内容。class Singleton { private static Singleton instance=null; private Singleton(){} public static Singleton getInstance() { if(i原创 2013-10-03 12:35:48 · 1075 阅读 · 2 评论 -
设计模式:view.post() 责任链模式
今天刚看了一篇文章讲责任链模式的文章。http://www.cnblogs.com/chenssy/p/3332193.html开发的时候,碰到view.post()方法,读源码的过程中感觉很像责任链模式。/** * Causes the Runnable to be added to the message queue. * The runnable will b原创 2013-09-22 19:29:16 · 1116 阅读 · 0 评论 -
RxJava 中observer链是如何形成的?
接着上一篇博客继续分析。Observable.create(new ObservableOnSubscribe<String>() { @Override public void subscribe(ObservableEmitter<String> emitter) throws Exception { ...原创 2018-11-10 16:28:45 · 870 阅读 · 1 评论