Class Maps

java.lang.Object
pascal.taie.util.collection.Maps

public final class Maps extends Object
Static utility methods for various maps, including Map, MultiMap, and TwoKeyMap.
  • Method Details

    • ofLinkedHashMap

      public static <K, V> Map<K,V> ofLinkedHashMap(K k1, V v1, K k2, V v2)
    • newMap

      public static <K, V> Map<K,V> newMap()
    • newMap

      public static <K, V> Map<K,V> newMap(int initialCapacity)
    • newLinkedHashMap

      public static <K, V> Map<K,V> newLinkedHashMap()
    • newOrderedMap

      public static <K extends Comparable<K>, V> Map<K,V> newOrderedMap()
    • newOrderedMap

      public static <K, V> Map<K,V> newOrderedMap(Comparator<? super K> comparator)
    • newSmallMap

      public static <K, V> Map<K,V> newSmallMap()
    • newHybridMap

      public static <K, V> Map<K,V> newHybridMap()
    • newHybridMap

      public static <K, V> Map<K,V> newHybridMap(Map<K,V> map)
    • newConcurrentMap

      public static <K, V> ConcurrentMap<K,V> newConcurrentMap()
    • newConcurrentMap

      public static <K, V> ConcurrentMap<K,V> newConcurrentMap(int initialCapacity)
    • newMultiMap

      public static <K, V> MultiMap<K,V> newMultiMap(Map<K,Set<V>> map, SSupplier<Set<V>> setFactory)
    • newMultiMap

      public static <K, V> MultiMap<K,V> newMultiMap(SSupplier<Set<V>> setFactory)
    • newMultiMap

      public static <K, V> MultiMap<K,V> newMultiMap(Map<K,Set<V>> map)
    • newMultiMap

      public static <K, V> MultiMap<K,V> newMultiMap()
    • newMultiMap

      public static <K, V> MultiMap<K,V> newMultiMap(int initialCapacity)
    • unmodifiableMultiMap

      public static <K, V> MultiMap<K,V> unmodifiableMultiMap(MultiMap<K,V> map)
    • emptyMultiMap

      public static <K, V> MultiMap<K,V> emptyMultiMap()
    • newTwoKeyMap

      public static <K1, K2, V> TwoKeyMap<K1,K2,V> newTwoKeyMap()
    • newTwoKeyMap

      public static <K1, K2, V> TwoKeyMap<K1,K2,V> newTwoKeyMap(Map<K1,Map<K2,V>> map1, SSupplier<Map<K2,V>> map2Factory)
    • newTwoKeyMultiMap

      public static <K1, K2, V> TwoKeyMultiMap<K1,K2,V> newTwoKeyMultiMap()
    • newTwoKeyMultiMap

      public static <K1, K2, V> TwoKeyMultiMap<K1,K2,V> newTwoKeyMultiMap(Map<K1,MultiMap<K2,V>> map, SSupplier<MultiMap<K2,V>> multimapFactory)
    • unmodifiableTwoKeyMultiMap

      public static <K1, K2, V> TwoKeyMultiMap<K1,K2,V> unmodifiableTwoKeyMultiMap(TwoKeyMultiMap<K1,K2,V> map)
    • emptyTwoKeyMultiMap

      public static <K1, K2, V> TwoKeyMultiMap<K1,K2,V> emptyTwoKeyMultiMap()