K
- V
- public final class HashMapTC<K,V> extends java.util.HashMap<K,V> implements MonitorTC
Constructor and Description |
---|
HashMapTC()
Constructs an empty HashMap with the specified initial
capacity and load factor.
|
HashMapTC(int initialCapacity)
Constructs an empty HashMap with the specified initial
capacity and load factor.
|
HashMapTC(int initialCapacity,
float loadFactor)
Constructs an empty HashMap with the specified initial
capacity and load factor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
clone() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
void |
enter(ThreadCop.ACCESS access) |
java.util.Set |
entrySet() |
V |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.Set |
keySet() |
void |
leave() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map m) |
V |
remove(java.lang.Object key) |
int |
size() |
java.lang.Object |
target() |
java.util.Collection |
values() |
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public HashMapTC(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacityloadFactor
- the load factorjava.lang.IllegalArgumentException
- if the initial capacity is negative
or the load factor is nonpositivepublic HashMapTC(int initialCapacity)
initialCapacity
- the initial capacityjava.lang.IllegalArgumentException
- if the initial capacity is negative
or the load factor is nonpositivepublic HashMapTC()
java.lang.IllegalArgumentException
- if the initial capacity is negative
or the load factor is nonpositivepublic int size()
public boolean isEmpty()
public V get(java.lang.Object key)
public boolean containsKey(java.lang.Object key)
public void putAll(java.util.Map m)
public V remove(java.lang.Object key)
public void clear()
public boolean containsValue(java.lang.Object value)
public java.util.Set keySet()
public java.util.Collection values()
public java.util.Set entrySet()
public void enter(ThreadCop.ACCESS access)
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.