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 {
    @SuppressWarnings("rawtypes")
    public static boolean isNotBlank(Collection c) {
        return c != null && c.size() > 0;
    }

    @SuppressWarnings("rawtypes")
    public static boolean isNotBlank(Map m) {
        return m != null && m.size() > 0;
    }

    public static boolean isNotBlank(Object[] a) {
        return a != null && a.length > 0;
    }
}