Class MapUtil

java.lang.Object
org.apache.ibatis.util.MapUtil

public class MapUtil extends Object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <K,V> V
    computeIfAbsent(Map<K,V> map, K key, Function<K,V> mappingFunction)
    A temporary workaround for Java 8 specific performance issue JDK-8161372 .
    This class should be removed once we drop Java 8 support.
    static <K,V> Map.Entry<K,V>
    entry(K key, V value)
    Map.entry(key, value) alternative for Java 8.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MapUtil

      private MapUtil()
  • Method Details

    • computeIfAbsent

      public static <K,V> V computeIfAbsent(Map<K,V> map, K key, Function<K,V> mappingFunction)
      A temporary workaround for Java 8 specific performance issue JDK-8161372 .
      This class should be removed once we drop Java 8 support.
      See Also:
    • entry

      public static <K,V> Map.Entry<K,V> entry(K key, V value)
      Map.entry(key, value) alternative for Java 8.