Here you can find the source of putMapBoolean(Map
Parameter | Description |
---|---|
params | a parameter |
key | a parameter |
public static boolean putMapBoolean(Map<String, Object> params, String key)
//package com.java2s; /*// www. j av a 2 s.co m * * ***************************************************************************** * * Copyright ( c ) 2016 Heren Tianjin Inc. All Rights Reserved. * * * * This software is the confidential and proprietary information of Heren Tianjin Inc * * ("Confidential Information"). You shall not disclose such Confidential Information * * and shall use it only in accordance with the terms of the license agreement * * you entered into with Heren Tianjin or a Heren Tianjin authorized * * reseller (the "License Agreement"). * **************************************************************************** * */ import java.util.Map; public class Main { /** * @param params * @param key * @return */ public static boolean putMapBoolean(Map<String, Object> params, String key) { return params.containsKey(key) && !params.get(key).equals(""); } }