类 TableMap<K,V>
java.lang.Object
com.xiaoTools.core.map.tableMap.TableMap<K,V>
- 所有已实现的接口:
Serializable
,Iterable<Map.Entry<K,V>>
,Map<K,V>
public class TableMap<K,V> extends Object implements Map<K,V>, Iterable<Map.Entry<K,V>>, Serializable
[可重复键和值的Map](Map of repeatable keys and values)
- 从以下版本开始:
- 2021-10-29 20:03:16
- 版本:
- V1.0
- 作者:
- XiaoXunYao
- 另请参阅:
- 序列化表格
-
构造器概要
-
方法概要
修饰符和类型 方法 说明 void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object key)
K
getKey(V value)
[根据value获得对应的key](Obtain the corresponding key according to value)List<K>
getKeys(V value)
[获取指定value对应的所有key](Gets all keys corresponding to the specified value)List<V>
getValues(K key)
[获取指定key对应的所有值](Gets all the values corresponding to the specified key)boolean
isEmpty()
Iterator<Map.Entry<K,V>>
iterator()
Set<K>
keySet()
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
remove(Object key)
int
size()
String
toString()
Collection<V>
values()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 java.lang.Iterable
forEach, spliterator
从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
构造器详细资料
-
TableMap
public TableMap(int size) -
TableMap
-
-
方法详细资料
-
getKey
[根据value获得对应的key](Obtain the corresponding key according to value)- 参数:
value
- 值- 返回:
- K
- 从以下版本开始:
- 2021-10-29 20:07:17
-
getValues
[获取指定key对应的所有值](Gets all the values corresponding to the specified key)- 参数:
key
- 键- 返回:
- java.util.List
- 从以下版本开始:
- 2021-10-29 20:06:32
-
getKeys
[获取指定value对应的所有key](Gets all keys corresponding to the specified value)- 参数:
value
- 值- 返回:
- java.util.List
- 从以下版本开始:
- 2021-10-29 20:05:46
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- 指定者:
containsKey
在接口中Map<K,V>
-
containsValue
- 指定者:
containsValue
在接口中Map<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
iterator
-
toString
-