Code example for Joiner.MapJoiner

Methods: join

0
     * @param parameters 
     * @return 
     */ 
    private static String doFormUrlEncode(Multimap<String, Object> parameters) {
        Multimap<String, String> urlEncodeMap = Multimaps.transformValues(parameters, new formUrlEncodeFunc());
        return queryMapJoiner.join(urlEncodeMap.entries());
    } 
 
    /** 
     * @param pojo 
     * @return 
     */ 
    @SuppressWarnings("unchecked") 
    private static Multimap<String, Object> pojoToMultiMap(Object pojo) {
        Map<String, ? extends Object> pojoMap = new BeanMap(pojo);
        Multimap<String, Object> res = HashMultimap.create();
        for (String key : pojoMap.keySet()) {
            if (!"class".equals(key)) {
                Object value = pojoMap.get(key);
                if (value instanceof Map)
Experience pair programming with AI  Get Codota for Java