LinkedHashMap<K, V> interface
Hash map version of the Map interface that preserves insertion order.
interface LinkedHashMap<K, V> extends HashMap<K, V> default LinkedHashMapImplementation<K, V> { /** * Creates a map with the default implementation. */ LinkedHashMap(); /** * Creates a [LinkedHashMap] that contains all key value pairs of [other]. */ LinkedHashMap.from(Map<K, V> other); }
Default class
LinkedHashMapImplementation<K, V>
Extends
Implemented by
LinkedHashMapImplementation<K, V>
Constructors
new LinkedHashMap() #
Creates a map with the default implementation.
LinkedHashMap();
new LinkedHashMap.from(Map<K, V> other) #
Creates a LinkedHashMap that contains all key value pairs of other.
LinkedHashMap.from(Map<K, V> other);
Properties
Operators
Methods
bool containsKey(K key) #
Returns whether this map contains the given key.
bool containsKey(K key);
bool containsValue(V value) #
Returns whether this map contains the given value.
bool containsValue(V value);
void forEach(void f(K key, V value)) #
Applies f to each {key, value} pair of the map.
void forEach(void f(K key, V value));
Collection<K> getKeys() #
Returns a collection containing all the keys in the map.
Collection<K> getKeys();
Collection<V> getValues() #
Returns a collection containing all the values in the map.
Collection<V> getValues();
bool isEmpty() #
Returns true if there is no {key, value} pair in the map.
bool isEmpty();