com.cudrania.core.collection.wrapper.MapWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cudrania Show documentation
Show all versions of cudrania Show documentation
support tools for java development
package com.cudrania.core.collection.wrapper;
import java.util.Map;
/**
* 继承自{@link Map}的增强类,支持链式调用
*
* @author skyfalling
*/
public interface MapWrapper extends Map, MapSupplier {
/**
* 代理{@link Map#put(Object, Object)}方法
*
* @param key
* @param value
* @return 返回当前对象
*/
@Delegate("put")
MapWrapper $put(K key, V value);
/**
* 代理{@link Map#remove(Object)}方法
*
* @param key
* @return 返回当前对象
*/
@Delegate("remove")
MapWrapper $remove(K key);
/**
* 代理{@link Map#remove(Object, Object)}方法
*
* @param key
* @return 返回当前对象
*/
@Delegate("remove")
MapWrapper $remove(K key, V value);
/**
* 代理{@link Map#clear()}
*
* @return
*/
@Delegate("clear")
MapWrapper $clear();
}