All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flowyun.cornerstone.web.util.MapUtils Maven / Gradle / Ivy

There is a newer version: 1.1.11
Show newest version
package com.flowyun.cornerstone.web.util;

import java.util.Map;

public class MapUtils {

    /**
     * Null-safe check if the specified map is empty.
     * 

* Null returns true. * * @param map the map to check, may be null * @return true if empty or null * @since 3.2 */ public static boolean isEmpty(final Map map) { return map == null || map.isEmpty(); } /** * Null-safe check if the specified map is not empty. *

* Null returns false. * * @param map the map to check, may be null * @return true if non-null and non-empty * @since 3.2 */ public static boolean isNotEmpty(final Map map) { return !MapUtils.isEmpty(map); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy