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

com.cudrania.core.collection.wrapper.MapWrapper Maven / Gradle / Ivy

There is a newer version: 1.2.7
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy