Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.*;

public class Main {
    public static boolean isCollectionMapOrArray(Class<?> type) {
        if (type.isArray())
            return true;
        if (Collection.class.isAssignableFrom(type))
            return true;
        if (Map.class.isAssignableFrom(type))
            return true;
        return false;
    }
}