Package | Description |
---|---|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
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 hashtable, which maps keys to values.
|
class |
LinkedHashMap<K,V>
Hash table and linked list implementation of the Map interface,
with predictable iteration order.
|
class |
Properties
The
Properties class represents a persistent set of
properties. |
class |
WeakHashMap<K,V>
Hash table based implementation of the Map interface, with
weak keys.
|
Modifier and Type | Method and Description |
---|---|
void |
WeakHashMap.putAll(Map<? extends K,? extends V> m)
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 |
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).
|
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.
|
LinkedHashMap(Map<? extends K,? extends V> m)
Constructs an insertion-ordered LinkedHashMap instance with
the same mappings as the specified map.
|
WeakHashMap(Map<? extends K,? extends V> m)
Constructs a new WeakHashMap with the same mappings as the
specified map.
|
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.