apache common的一些类
来源:互联网 发布:魏佳庆的淘宝 编辑:程序博客网 时间:2024/05/14 08:59
1、FastHashMap
FastHashMap是java.util.HashMap类的一种自定义实现,以应付多线程环境中大量只读方法而非改变结构的方法的访问。
当以fast模式运行时,只读方法不是线程安全的,而写操作以下面的步骤进行操作:
1)克隆当前的数据集合
2)在克隆对象上进行修改
3)用修改过的克隆对象替换原对象
当FastHashMap被初始化的时候,默认是以slow模式运行,FastHashMap在设定fast=true的情况下才是以fast模式运行的。已fast模式运行时,get方法的效率高。
该类的doc文档建议:如果是以单线程的模式访问hashmap,建议直接使用hashmap而非FastHashMap,以获得最大的性能。
2、DateFormatUtils
DateFormatUtils是日期的格式化工具。其格式化方法format,使用了FastDateFormat类来实现格式化。FastDateFormat is a fast and thread-safe version of java.text.SimpleDateFormat
- apache common的一些类
- apache common包的一些简便类
- apache common包中的一些有用的帮助类 --BooleanUtils
- apache的common中常用工具类
- Apache Common Pool的使用
- apache common-dbutils 的使用
- Apache common FTP 的使用
- apache-common pool的使用
- apache-common pool的使用
- Apache Common Pool的使用
- apache-common pool的使用
- apache-common pool的使用
- apache-common pool 的使用
- Apache Common StringUtils工具类
- [Java]Apache Common Lang包的StringUtils类
- apache-common
- apache common
- Apache Common
- 1
- 字符串转换的两个函数
- VC6应用程序正常初始化(0xc0150002)失败的终极解决方案
- 不通过WEB,如何使用Windows控件应用程序实现登录? (使用C#语言)
- Flex CursorManager
- apache common的一些类
- QPS 与 TPS 简介
- 华为IT总监离职感言
- dragManager
- class"org.apache.commons.dbcp.BasicDataSource"not found解决方案
- 关于MFC的debug和release....附加两个.h互相引用.
- 查找密码
- C++计算大量素数经典方法
- Windows下重叠I/O模型 网络编程