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 {
    /**
     * <p>
     * A method to check whether the <tt>map</tt> is empty or not.
     *</p>
     *
     *
     * @param mapToCheck
     *       a <tt>Map</tt> which needs to be checked
     *
     * @return
     *       a boolean value (true/false) indicating the status
     */
    public static boolean isEmptyMap(Map<? extends Object, ? extends Object> mapToCheck) {
        return (mapToCheck.size() <= 0);
    }
}