K
- the type of keys maintained by this map
V
- the type of mapped values
Serializable
, Cloneable
, Map<K,V>
, SequencedMap<K,V>
Constructors
Constructs an empty insertion-ordered LinkedHashMap
instance with the default initial capacity (16) and load factor (0.75).
Constructs an empty insertion-ordered LinkedHashMap
instance with the specified initial capacity and a default load factor (0.75).
Constructs an empty insertion-ordered LinkedHashMap
instance with the specified initial capacity and load factor.
LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder)
Constructs an empty LinkedHashMap
instance with the specified initial capacity, load factor and ordering mode.
Constructs an insertion-ordered LinkedHashMap
instance with the same mappings as the specified map.
void
Removes all of the mappings from this map.
boolean
Returns true
if this map maps one or more keys to the specified value.
Returns a
Set
view of the mappings contained in this map.
Returns the value to which the specified key is mapped, or null
if this map contains no mapping for the key.
Returns a
Set
view of the keys contained in this map.
Creates a new, empty, insertion-ordered LinkedHashMap suitable for the expected number of mappings.
Inserts the given mapping into the map if it is not already present, or replaces the value of a mapping if it is already present (optional operation).
Inserts the given mapping into the map if it is not already present, or replaces the value of a mapping if it is already present (optional operation).
protected boolean
Returns true
if this map should remove its eldest entry.
Returns a reverse-ordered
viewof this map.
Returns a
SequencedSet
view of this map's
entrySet
.
Returns a
SequencedSet
view of this map's
keySet
.
Returns a
SequencedCollection
view of this map's
values
collection.
Returns a
Collection
view of the values contained in this map.
Methods declared in class java.util.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, remove, size
Methods declared in interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, containsKey, equals, forEach, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4