Here you can find the source of byteMapToString(Map
public static String byteMapToString(Map<String, byte[]> map)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.Map; public class Main { public static String byteMapToString(Map<String, byte[]> map) { if (map == null) return null; if (map.isEmpty()) { return map.toString(); }/* www . j av a 2s . com*/ String result = "[ "; for (Map.Entry<String, byte[]> entry : map.entrySet()) { result += "{" + entry.getKey() + " : " + Arrays.hashCode(entry.getValue()) + "} "; } return result + "]"; } }