Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

import java.util.Map;

public class Main {
    @SafeVarargs
    public static <T> boolean isEmpty(T[]... input) {
        return input == null || input.length == 0;
    }

    public static boolean isEmpty(Collection input) {
        return input == null || input.isEmpty();
    }

    public static boolean isEmpty(Map input) {
        return input == null || input.isEmpty();
    }
}