1.开闭原则 》Open Close Principe 2.里氏代换原则 》Liskov Substitution Principle 3.依赖倒置原则 》Dependence Inversion Principle 4.接口隔离原则 》Interface Segregation Principle ...
分类:
其他好文 时间:
2017-07-10 23:35:34
阅读次数:
162
第一章 Java开发中通用的方法和准则 建议1:不要在常量和变量中出现易混淆的字母; (i、l、1;o、0等)。 建议2:莫让常量蜕变成变量; (代码运行工程中不要改变常量值)。 建议3:三元操作符的类型务必一致; (不一致会导致自动类型转换,类型提升int->float->double等)。 建议 ...
分类:
其他好文 时间:
2017-07-10 22:06:45
阅读次数:
341
unit sfContnrs; interface {$DEFINE MULTI_THREAD_QUEUE} //线程安全版本,如果不需要线程安全,请注释掉此行代码 {$IFDEF MULTI_THREAD_QUEUE}uses Windows;{$ENDIF} type TsfQueue=clas ...
分类:
编程语言 时间:
2017-07-10 20:43:44
阅读次数:
546
好久没有更新博客,难得有空,记录一下今天写的一个小工具,供有需要的朋友参考。在移动APP开发中,多版本接口同时存在的情况经常发生,通常接口支持多版本,有一下几种方式: 1.通过不同的路径区分不同版本号 如: http://www.xxx.com/api/v1/product/detail?id=10 ...
分类:
编程语言 时间:
2017-07-10 19:06:01
阅读次数:
266
解决办法: 编码 全局编码设置 File -> Other Settings -> Default Settings Editor -> File Encodings 工程编码设置 File -> Settings Editor -> File Encodings maven解决办法: 查找了资料, ...
分类:
其他好文 时间:
2017-07-10 16:53:28
阅读次数:
213
#import <UIKit/UIKit.h> @interface ViewController : UIViewController<UIPickerViewDelegate,UIPickerViewDataSource>{ NSArray *_nameArray; } @property (s ...
分类:
移动开发 时间:
2017-07-10 14:33:26
阅读次数:
317
AWT概述 GUI全称是Graphical User Interface,即图形用户界面,即应用程序提供给用户操作的图形界面,包括窗口、菜单、按钮、工具栏和其它各种图形界面元素 GUI设计提供了丰富的类库,这些类分别位于java.awt和javax.swing包中,简称为AWT和Swing Swin ...
分类:
其他好文 时间:
2017-07-10 10:16:17
阅读次数:
297
If they are going across the loopback interface, you may have to tell tcpdump to read that interface. On Linux the interface is named lo, so you can u ...
分类:
系统相关 时间:
2017-07-10 10:13:08
阅读次数:
183
Java 接口 接口(英文:Interface),在JAVA编程语言中是一个抽象类型,是抽象方法的集合,接口通常以interface来声明。一个类通过继承接口的方式,从而来继承接口的抽象方法。 接口并不是类,编写接口的方式和类很相似,但是它们属于不同的概念。类描述对象的属性和方法。接口则包含类要实现 ...
分类:
编程语言 时间:
2017-07-10 00:34:06
阅读次数:
211
1. 找到文件并作如下修改: sudo vim /etc/network/interfaces 修改如下部分: auto eth0iface eth0 inet staticaddress 192.168.0.117 netmask 255.255.255.0gateway 192.168.0.1 ...
分类:
系统相关 时间:
2017-07-10 00:33:47
阅读次数:
311