code: public static <K,V,M extends Map<K,V>> Stream<Map.Entry<K,V>> entriesOf( M map)
      {
      return
        map == null
        ? Stream.empty()
        : map.entrySet().stream();
      }
docs: Returns a stream containing the entries of the given map.