Class MapUtils

java.lang.Object
org.aksw.jenax.graphql.sparql.v2.util.MapUtils

public class MapUtils extends Object
  • Constructor Details

    • MapUtils

      public MapUtils()
  • Method Details

    • union

      public static <K, V> Map<K,V> union(Map<K,? extends V> a, Map<K,? extends V> b)
      Returns a view of the union of two maps. For all keys k, if either map contains a value for k, the returned map contains that value. If both maps contain a value for the same key, this map contains the value in the second of the two provided maps.
    • union

      public static <K, V> Map<K,V> union(Map<K,? extends V> a, Map<K,? extends V> b, BinaryOperator<V> conflictHandler)
      Returns a view of the union of two maps. For all keys k, if either map contains a value for k, the returned map contains that value. If both maps contain a value for the same key, the conflict is resolved with the provided function.