Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Collection;

import java.util.Map;

public class Main {
    public static boolean emptyOrNull(byte[] values) {
        return values == null || values.length == 0;
    }

    public static boolean emptyOrNull(Object[] values) {
        return values == null || values.length == 0;
    }

    public static boolean emptyOrNull(Map<?, ?> values) {
        return values == null || values.isEmpty();
    }

    public static boolean emptyOrNull(Collection<?> values) {
        return values == null || values.isEmpty();
    }
}