Class IListMaps

java.lang.Object
org.javimmutable.collections.IListMaps

public final class IListMaps extends Object
  • Method Details

    • hashed

      @Nonnull public static <K, V> IListMap<K,V> hashed()
      Creates a list map with higher performance but no specific ordering of keys.
    • ordered

      @Nonnull public static <K, V> IListMap<K,V> ordered()
      Creates a list map with keys sorted by order they are inserted.
    • sorted

      @Nonnull public static <K extends Comparable<K>, V> IListMap<K,V> sorted()
      Creates a list map with keys sorted by their natural ordering.
    • sorted

      @Nonnull public static <K, V> IListMap<K,V> sorted(@Nonnull Comparator<K> comparator)
      Creates a list map with keys sorted by the specified Comparator. The Comparator MUST BE IMMUTABLE.