OrderedMap<K, V> class
Keep your data in-order and indexed at the same time
Constructors
Properties
Methods
-
add(
K key, V value) → void - Adds a key-value pair to the map.
-
clear(
) → void - Clears all key-value pairs from the map.
-
contains(
K key) → bool - Retrieves the value at the specified index.
-
getAt(
int index) → V - Retrieves the value at the specified index.
-
getByKey(
K key) → V - Retrieves the value associated with the specified key.
-
length(
) → int - Returns the number of key-value pairs in the map.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reindex(
) → void - Reindexes the map based on the current order of keys.
-
removeAt(
int index) → void - Removes the key-value pair at the specified index.
-
removeByKey(
String key) → void - Removes the key-value pair with the specified key.
-
sort(
int compare(V a, V b)) → void - Sorts the map based on the provided comparison function.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateByKey(
String key, V value) → void - Updates the value associated with the specified key.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited