is Empty Map - Java java.util

Java examples for java.util:Map Operation

Description

is Empty Map

Demo Code


//package com.java2s;

import java.util.Map;

public class Main {
    public static final boolean isEmptyMap(Map<?, ?> map) {
        if (map == null || map.isEmpty()) {
            return true;
        }/*from  w  w  w  .  j  ava  2 s .  co  m*/

        return false;
    }
}

Related Tutorials