1234567891011121314151617181920212223242526272829303132 |
- package com.hcks.cmfds.commons.util;
- import java.util.HashMap;
- /**
- * @Author 刘厦(liusha.information@gmail.com)
- * @Date 创建时间:May 16, 2011 11:38:45 PM
- * @Version 0.0.0
- * 类说明: 快速建立命名参数Map
- */
- public class MapHelpler extends HashMap<String, Object>{
-
- private static final long serialVersionUID = 2795245114015599778L;
- private MapHelpler() {
- super(5);
- }
-
- public MapHelpler put(String key,Object value){
- super.put(key, value);
- return this;
- }
-
- public static MapHelpler build(){
- return new MapHelpler();
- }
-
- public static MapHelpler build(String key, Object value) {
- return new MapHelpler().put(key, value);
- }
- }
|