Package com.linkedin.davinci.utils
Interface IndexedMap<K,V>
-
- All Superinterfaces:
java.util.Map<K,V>
- All Known Implementing Classes:
IndexedHashMap
public interface IndexedMap<K,V> extends java.util.Map<K,V>
The IndexedMap interface implements Map and several functions for dealing with its content via the index corresponding to their insertion order. The concept is similar to the LinkedHashMap, but affords the user a greater control over how the data is laid out when iterating over it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map.Entry<K,V>
getByIndex(int index)
int
indexOf(K key)
void
moveElement(int originalIndex, int newIndex)
V
putByIndex(K key, V value, int index)
java.util.Map.Entry<K,V>
removeByIndex(int index)
-