Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Map;

public class Main {
    public static <T> boolean isMapNotEmpty(Map<T, T> map) {
        return !isMapEmpty(map);
    }

    public static <T> boolean isMapEmpty(Map<T, T> map) {
        return null == map || map.isEmpty();
    }
}