All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.http.holder.MapHolder Maven / Gradle / Ivy

package top.jfunc.http.holder;

import java.util.Map;

/**
 * 对{@link Map}的一个封装,方便处理键值对
 * @see RouteParamHolder
 * @see AttributeHolder
 * @author xiongshiyan at 2019/6/3 , contact me with email [email protected] or phone 15208384257
 */
public interface MapHolder{
    /**
     * Map参数
     * @return Map参数
     */
    Map getMap();

    /**
     * 设置Map
     * @param map map
     */
    void setMap(Map map);

    /**
     * 获取某个属性
     * @param key key
     * @return 属性值
     */
    V get(K key);

    /**
     * 添加参数
     * @param key key
     * @param value value
     * @return this
     */
    MapHolder put(K key, V value);

    /**
     * 删除一个参数
     * @param key key
     * @return V
     */
    V remove(K key);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy