| Package | Description |
|---|---|
| java.lang | |
| java.util |
| Modifier and Type | Method and Description |
|---|---|
static Map<Thread,StackTraceElement[]> |
Thread.getAllStackTraces()
Returns a map of stack traces for all live threads.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
NavigableMap<K,V>
A
SortedMap extended with navigation methods returning the
closest matches for given search targets. |
interface |
SortedMap<K,V>
A
Map that further provides a total ordering on its keys. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMap<K,V>
This class provides a skeletal implementation of the Map
interface, to minimize the effort required to implement this interface.
|
class |
HashMap<K,V>
Hash table based implementation of the Map interface.
|
class |
Hashtable<K,V>
This class implements a hash table, which maps keys to values.
|
class |
IdentityHashMap<K,V>
This class implements the Map interface with a hash table, using
reference-equality in place of object-equality when comparing keys (and
values).
|
class |
LinkedHashMap<K,V>
Hash table and linked list implementation of the Map interface,
with predictable iteration order.
|
class |
TreeMap<K,V>
A Red-Black tree based
NavigableMap implementation. |
class |
WeakHashMap<K,V>
Hash table based implementation of the Map interface, with
weak keys.
|
| Modifier and Type | Field and Description |
|---|---|
static Map |
Collections.EMPTY_MAP
The empty map (immutable).
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
Collections.emptyMap()
Returns the empty map (immutable).
|
static <K,V> Map<K,V> |
Collections.checkedMap(Map<K,V> m,
Class<K> keyType,
Class<V> valueType)
Returns a dynamically typesafe view of the specified map.
|
static <K,V> Map<K,V> |
Collections.singletonMap(K key,
V value)
Returns an immutable map, mapping only the specified key to the
specified value.
|
static <K,V> Map<K,V> |
Collections.synchronizedMap(Map<K,V> m)
Returns a synchronized (thread-safe) map backed by the specified
map.
|
static <K,V> Map<K,V> |
Collections.unmodifiableMap(Map<? extends K,? extends V> m)
Returns an unmodifiable view of the specified map.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
Collections.checkedMap(Map<K,V> m,
Class<K> keyType,
Class<V> valueType)
Returns a dynamically typesafe view of the specified map.
|
static <E> Set<E> |
Collections.newSetFromMap(Map<E,Boolean> map)
Returns a set backed by the specified map.
|
void |
WeakHashMap.putAll(Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this map.
|
void |
TreeMap.putAll(Map<? extends K,? extends V> map)
Copies all of the mappings from the specified map to this map.
|
void |
Map.putAll(Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this map
(optional operation).
|
void |
IdentityHashMap.putAll(Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this map.
|
void |
Hashtable.putAll(Map<? extends K,? extends V> t)
Copies all of the mappings from the specified map to this hashtable.
|
void |
HashMap.putAll(Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this map.
|
void |
AbstractMap.putAll(Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this map
(optional operation).
|
static <K,V> Map<K,V> |
Collections.synchronizedMap(Map<K,V> m)
Returns a synchronized (thread-safe) map backed by the specified
map.
|
static <K,V> Map<K,V> |
Collections.unmodifiableMap(Map<? extends K,? extends V> m)
Returns an unmodifiable view of the specified map.
|
| Constructor and Description |
|---|
HashMap(Map<? extends K,? extends V> m)
Constructs a new HashMap with the same mappings as the
specified Map.
|
Hashtable(Map<? extends K,? extends V> t)
Constructs a new hashtable with the same mappings as the given
Map.
|
IdentityHashMap(Map<? extends K,? extends V> m)
Constructs a new identity hash map containing the keys-value mappings
in the specified map.
|
LinkedHashMap(Map<? extends K,? extends V> m)
Constructs an insertion-ordered LinkedHashMap instance with
the same mappings as the specified map.
|
TreeMap(Map<? extends K,? extends V> m)
Constructs a new tree map containing the same mappings as the given
map, ordered according to the natural ordering of its keys.
|
WeakHashMap(Map<? extends K,? extends V> m)
Constructs a new WeakHashMap with the same mappings as the
specified map.
|
Copyright © 2013 API Design. All Rights Reserved.