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

top.cutexingluo.tools.common.data.Tuple Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
package top.cutexingluo.tools.common.data;

import java.util.Map;

/**
 * 二元组接口
 * 

继承 {@link Map.Entry} 和 {@link PairEntry}

*

A map entry (key-value pair). like Map.Entry

*

拥有 set 和 get 方法

* * @author XingTian * @version 1.0.0 * @date 2024/7/23 17:50 * @since 1.1.2 */ public interface Tuple extends Map.Entry, PairEntry { /** * @return the key corresponding to this entry */ K getKey(); /** * @return the value corresponding to this entry */ V getValue(); /** * @param key new key to be stored in this entry * @return {@link K } old key corresponding to the entry */ K setKey(K key); /** * @param value new value to be stored in this entry * @return {@link V } old value corresponding to the entry */ V setValue(V value); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy