public class THashMap<K,V> extends TAbstractMap<K,V> implements TCloneable, TSerializable
TAbstractMap.SimpleEntry<K,V>, TAbstractMap.SimpleImmutableEntry<K,V>
TMap.Entry<K1,V1>
Constructor and Description |
---|
THashMap() |
THashMap(int capacity) |
THashMap(int capacity,
float loadFactor)
Constructs a new
HashMap instance with the specified capacity and
load factor. |
THashMap(TMap<? extends K,? extends V> map) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
TObject |
clone0() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
TSet<TMap.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
TSet<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(TMap<? extends K,? extends V> map) |
V |
remove(Object key) |
int |
size() |
TCollection<V> |
values() |
clone, equals, hashCode
equals0, finalize, getClass0, notify0, notifyAll0, toString, wait0, wait0, waitImpl
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, replace, replace
public THashMap()
public THashMap(int capacity)
public THashMap(int capacity, float loadFactor)
HashMap
instance with the specified capacity and
load factor.capacity
- the initial capacity of this hash map.loadFactor
- the initial load factor.IllegalArgumentException
- when the capacity is less than zero or the load factor is
less or equal to zero.public void clear()
public TObject clone0()
public boolean containsKey(Object key)
containsKey
in interface TMap<K,V>
containsKey
in class TAbstractMap<K,V>
public boolean containsValue(Object value)
containsValue
in interface TMap<K,V>
containsValue
in class TAbstractMap<K,V>
public TSet<TMap.Entry<K,V>> entrySet()
public boolean isEmpty()
public int size()
public TCollection<V> values()
Copyright © 2019. All rights reserved.