Here you can find the source of transformPropertiesToParams(Map
Parameter | Description |
---|---|
properties | are the properties |
public static Map<String, Object> transformPropertiesToParams(Map<String, String> properties)
//package com.java2s; //License from project: LGPL import java.util.*; public class Main { /**// ww w . j av a 2s. c om * Transform properties to {@link Map} of parameters. * * @param properties are the properties * @return map */ public static Map<String, Object> transformPropertiesToParams(Map<String, String> properties) { Map<String, Object> params = new HashMap<>(); for (Map.Entry<String, String> entry : properties.entrySet()) { params.put(entry.getKey(), entry.getValue()); } return params; } }