- 博客(5)
- 资源 (12)
- 收藏
- 关注
翻译 The progress of abstraction (抽象过程)
All programming languages provide abstractions .所有编程语言都提供抽象机制。It can be argued that the complexity of the problems you're able to solve is directly related to the kind and quality of abstraction.
2015-05-14 00:20:28 977
翻译 Thinking in Java -- Introduction to Object
"We cut nature up, organize it into concepts, and ascrible significances as we do, largely because we are parties to an agreement that holds throughout our speech community and is codified in the patt
2015-05-11 23:35:06 568
原创 java.lang.instrument实现aop
在jdk1.5之后引入了instrument包,关于这个包的介绍可以看官方文档http://docs.oracle.com/javase/8/docs/api/java/lang/instrument/package-summary.htmlJVM运行的是二进制文件,我们可以通过instrument包的使用,在JVM运行之前修改JVM本要运行的二进制文件。首先需要编写一个转换器类,它实现j
2015-05-07 22:04:20 1270
原创 替换文中所有以特定字符串开始特定字符串结束的代码实现
这段代码的目的是将htmlString 中所有start开始到end结束的地方,都用newString替换。主要使用String的indexOf方法和subString方法来定位,通过while来做循环,当indexOf方法的返回值为-1,即找不到start或者end时,循环终止。使用StringBuffer、以及它的构造方法和append方法还有toString来构建新的字符串。 pr
2015-05-06 17:48:26 1269
原创 判断用户类型代码实现
在数据库用户表中设置用户类型字段 USER_TYPE_ID INTEGER在DBObject中定义final variable 来表示用户类型,如 public static final int USER_TYPE_NOT_SET = -1; // TYPE NOT SET YET public static final int USER_TYPE_7
2015-05-06 17:39:19 717
jQuery Pagination扩展由浅入深
2015-07-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人