Class SortedIndexableMapWrapper<K,​V>

java.lang.Object
com.illumon.util.datastructures.SortedIndexableMapWrapper<K,​V>
All Implemented Interfaces:
com.fishlib.base.hash.IndexableMap<K,​V>, Map<K,​V>

public class SortedIndexableMapWrapper<K,​V>
extends Object
implements com.fishlib.base.hash.IndexableMap<K,​V>
This is a simple utility class that wraps a map, and presents it as an IndexableMap. The getByIndex() and values() method sort the values according the passed in Comparator. The other access methods (iteration, keySet etc. do not sort the results). Everything that touches the values list should be synchronized.